Open Control

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10100
Joined: Fri Feb 19, 2010 10:17 am

Open Control

Post by richmond62 » Sun Aug 03, 2014 8:58 pm

JLG wrote:

"I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack.

The preOpenControl and openControl messages are only sent the first time the shared group is drawn. I need a similar message every time the card changes. I'd rather not put a different copy of the control on every card (which would allow those messages.)

Has anyone dealt with this?"

On the Use-List.

I've attached some rubbish here: look in the cardScript.
Attachments
groopy.livecode.zip
Here's the stack.
(7.31 KiB) Downloaded 174 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Open Control

Post by dunbarx » Sun Aug 03, 2014 10:38 pm

Hi.

Why not use an openCard handler in the stack script? You can reference the control explicitly, and it will never know the difference.

Craig Newman

Post Reply