Setting proper values to layer of a control in a group

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
greg falda
Posts: 77
Joined: Thu Jan 15, 2015 6:51 pm

Setting proper values to layer of a control in a group

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

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

Post 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
greg falda
Posts: 77
Joined: Thu Jan 15, 2015 6:51 pm

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

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post 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
greg falda
Posts: 77
Joined: Thu Jan 15, 2015 6:51 pm

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

Post 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
Post Reply