Page 1 of 1

Setting proper values to layer of a control in a group

Posted: Thu Feb 09, 2017 12:41 pm
by greg falda
Could you tell me how to set a requested value to the layer of a control in a group and especially in the row template? When I set the layer in the inspector (bottom of tab: position), the layer resets to some other value and hance I cannot control which controls are on the front and which are hidden be them.

Thanks in advance

greg falda

Re: Setting proper values to layer of a control in a group

Posted: Thu Feb 09, 2017 5:33 pm
by dunbarx
Are you talking about a dataGrid? ("...row template"?)

If not, setting either the number of a control or its layer should be straightforward. You may run into a snag if the controls you are working with are grouped or groups themselves, because changing layers can move that control out of a group, and a group itself acts like a single control.

Check out the "relayerGroupedControls" property and the "layer" property in the dictionary.

Do some experimenting with overlapping controls.

Craig Newman

Re: Setting proper values to layer of a control in a group

Posted: Fri Feb 10, 2017 9:05 am
by greg falda
Dear Craig

Yes, this is a data grid with a scrolling list.

The group represents each row in the list, but is defined as "form", so I can place controls freely in the row (the other option, which I do not use is called "grid" - as far as I remember - and leads to a grid like in a spreadhseet)

I'll try your hints and let you know

Thanks

greg falda

Re: Setting proper values to layer of a control in a group

Posted: Fri Feb 10, 2017 2:05 pm
by Klaus
Hi Greg,

be sure to do all your modifications in the group "ROW TEMPLATE" inthe "Datagrid xxxxxxxxx template" stack!
Click "row template" in the inspector for your datagrid then select the "row template" group at teh top of the
"template" stack and select "Edit group" in menu "Object".


Best

Klaus

Re: Setting proper values to layer of a control in a group

Posted: Sun Feb 19, 2017 4:11 pm
by greg falda
Dear all

Thanks for the help. I finally reordered the controls via code using commands like

Code: Select all

set the layer of ...
Drag and drop of controls in project browser is buggy in my case - LiveCode 8.1.2

best,
greg falda