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
Setting proper values to layer of a control in a group
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 77
- Joined: Thu Jan 15, 2015 6:51 pm
- Location: Warsaw
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Setting proper values to layer of a control in a group
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
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
-
- Posts: 77
- Joined: Thu Jan 15, 2015 6:51 pm
- Location: Warsaw
Re: Setting proper values to layer of a control in a group
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
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
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
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
-
- Posts: 77
- Joined: Thu Jan 15, 2015 6:51 pm
- Location: Warsaw
Re: Setting proper values to layer of a control in a group
Dear all
Thanks for the help. I finally reordered the controls via code using commands like
Drag and drop of controls in project browser is buggy in my case - LiveCode 8.1.2
best,
greg falda
Thanks for the help. I finally reordered the controls via code using commands like
Code: Select all
set the layer of ...
best,
greg falda