Label - Change OnLeftClick without Recycle Thread last updated on 2003-06-12 22:47:00

Posted by member 2112 on 2003-06-11 21:39:55

Is it possible to change the function of mouse clicking a label without recycling the theme?

For example I have a label that when you click on it, it displays the Theme Popup. Now without recycling I want to be able to change it so when you click on it activates a different bang.

Hope that makes sense.

Posted by member 7 on 2003-06-12 02:08:47 link

I assume you're using textedit or something like that to change the LabelOnLeftClick line in step.rc. After that do something like !execute [!reload][!labelrefresh] - !reload tells the litestep core to reload step.rc. !labelrefresh makes the label reread its (updated) configuration.
If you want a purely !bang driven solution (ie. without textedit) I suppose there could be a !changeclick !bang added to subclass.dll.

Posted by member 37809 on 2003-06-12 21:14:25 link

use mzscript's !varrun (varname). then somewhere you !varset bar !dothis and !varset bar !nowdothis.
then you have LabelOnLeftClick !foo, and perhaps either a *script start to set bar, or have bar in a varfile.

Posted by member 37809 on 2003-06-12 21:17:11 link

err, !foo would be a bang to !varrun bar. not the only way to do it, of course.

Posted by member 2112 on 2003-06-12 22:47:00 link

Thanks for the answers. I went with the !reload option as reload was already a part of this script. I don't know why I didn't spot this answer to begin with.