Correct script for a property change?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Correct script for a property change?

Post by melristau » Wed Aug 17, 2016 6:18 pm

Need basic help with changing the "Select group controls" property - Please and Thanks!

not working:

Code: Select all

set the "select grouped controls" of grp "x59" to false
rebuilding visual programming app originally created in 1993 as Hypercard stack

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Correct script for a property change?

Post by Klaus » Wed Aug 17, 2016 6:46 pm

Hi Mel,

"selectgroupedcontrols" is a global property and no property of a group!
...
set the selectgroupedcontrols to TRUE
...
If in doubt, always check the dictionary, it is really better than its reputation! 8)


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Correct script for a property change?

Post by FourthWorld » Wed Aug 17, 2016 8:27 pm

Klaus wrote:"selectgroupedcontrols" is a global property and no property of a group!
Respectfully, as of v4.x and later it is both.

The global property works as you described, and the group property overrides that for the group where that property is false, allowing custom controls like the DataGrid to maintain their interactions with the pointer tool as though they're a single object.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Correct script for a property change?

Post by Klaus » Wed Aug 17, 2016 8:30 pm

Ouch, got me! I should read the complete entry in the dictionary. :oops:

Sorry, Mel, apologies, my fault!

Post Reply