Most of the time, when indicators are put inside buttons the problem is that the drawing of the button overrides the indicator drawing. I would suggest making your indicator either surrounding your button area OR outside the button OR make it BLINK (using :B).. this will ensure it's visible when ON...
Other than that, if you're really gonna load it from a file, the easiest thing is to load them with the IMG definition in the .skin file.. then just toggle it on/off as usual.. this would be a 2 button example:
/ Buttons
B1,0,0,100,100,"CMD1||RESETINDS||SETIND;!MYIND1;ON ",""
B2,0,0,200,100,"CMD2||RESETINDS||SETIND;!MYIND2;ON ",""
/ Images (for the indicators)
IMG,120,0,50,50,"LIGHT.GIF",ON
IMG,120,200,50,50,"LIGHT.GIF",ON
/ Indicators
I1,120,0,50,50,"!MYIND1"
I2,120,200,50,50,"!MYIND2"
in ExecTBL (in the skin's folder for instance):
"RESETINDS","SETIND;!MYIND1;OFF||SETIND;!MYIND2;OF F"
Note that I defined the Indicators OUTSIDE the buttons, if you want them inside, then add :B in the quotes for the I1 and I2 definitions (for them to Blink):
I1,120,0,50,50,"!MYIND1:B"
I2,120,200,50,50,"!MYIND2:B"



LinkBack URL
About LinkBacks
Reply With Quote




Bookmarks