Marquee Controls in Browse Mode?

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
cmhjon
Posts: 191
Joined: Tue Aug 04, 2015 11:55 am

Marquee Controls in Browse Mode?

Post by cmhjon » Thu Jul 24, 2025 8:04 pm

Hi everyone,

While in browse mode, i’d like to be able to marquee several controls like one can when in edit mode. After releasing the mouse, the marquee’d controls would need to somehow show that they are selected. In addition, upon releasing the mouse, it would need to be noted in a text field which controls are selected.

To add a bit of difficulty (sorry - but maybe it won’t matter?), the controls are in a group.

Any ideas/code examples on how to achieve this?

Thank you,
Jon :-)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4166
Joined: Sun Jan 07, 2007 9:12 pm

Re: Marquee Controls in Browse Mode?

Post by bn » Fri Jul 25, 2025 9:04 am

Hi Jon,

I made a stack that does what I think you want.

The script is in the group "myGroup" and the group needs something (in this case a graphic "grcBack") to catch mouseDown etc. as the lowest (first) layer of the group.

Click in the group and move the mouse to select controls, on mouseUp the selected controls have the outerglow set and the selected control names are put into a field.

Kind regards
Bernd
Attachments
selectControlsInBrowseMode.livecode.zip
(1.59 KiB) Downloaded 7 times

Post Reply