highlight a button in standalone+.rev app

rev at armbase.com rev at armbase.com
Fri Jul 1 04:56:34 EDT 2005


Hi All

I have a stanalone that clones a stack (in the standalone). The user injects
buttons into it with predetermined function.

Now the number of buttons and windows is getting larger as the functions are
increased.

I'd like to have just one button injector and a system to customise the function
of the button. What I envisage is a drop down list that enters a script into the
button. Is it possible (from an standalone) to highlight the button in the
cloned stack with something like a right click(just like
in the rev IDE), then a prefernces window (which I'll create) pops up with a
popup button with the fnuctions.

Then when I click on OK it enters the script into the highlighted button.

EG click on "OK" and it does something ,like this.

On mouseup
insert on mouseup & cr & dothisaction & cr & end mouseup into the highlighted
button of the last stack open
end mopuseup

I know the scrip is not right but I just wondered how to highlight the button
and in a stack of unknown name. If the unknown name stack is a problem, then
there may be a simple fix by declaring a global gStackToEdit and having the
name of the stack put into gStackToEdit. But is there a simpleer way.

Any hint to send me in the right direction would be appreciated and I can go
hunting and learning.

All the best
Bob




More information about the use-livecode mailing list