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
Location: Warsaw

Setting proper values to layer of a control in a group

Post by greg falda » Thu Feb 09, 2017 12:41 pm

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: 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

Post by dunbarx » Thu Feb 09, 2017 5:33 pm

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
Location: Warsaw

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

Post by greg falda » Fri Feb 10, 2017 9:05 am

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: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Fri Feb 10, 2017 2:05 pm

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
Location: Warsaw

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

Post by greg falda » Sun Feb 19, 2017 4:11 pm

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

Return to “Getting Started with LiveCode - Experienced Developers”