> > *Format Item item 8 list "TV menu strip TR" iconfile "C:
> > \WINDOWS\system32\SHELL32.DLL" iconnum 127
> > 
> > which I would change for example to
> > 
> > *Format Item item 8 list "TV menu strip TR" iconfile "C:
> > \WINDOWS\system32\SHELL32.DLL" iconnum 168
> 
> Yes, you will want to use a script that evaluates using an if and 
flag. 

A flag will work fine, but for this type of situation you may also 
want to consider inspecting the current setting with a cl function 
and then flipping it to the other.  This avoids the flag.  In the 
above situation, you could use

local icnum1=127
local icnum2=168
local iconpath = "C:/WINDOWS/system32/SHELL32.DLL"
if (cl.getIconnum("TV menu strip TR", 8)==icnum1) do
cl.setIconnum("TV menu strip TR", 8, iconpath, icnum2)
else
cl.setIconnum("TV menu strip TR", 8, iconpath,icnum1)
endif


BTW,  I also agree with Alex where he notes separately that in this 
particular situation -- using an icon to show the setting of the 
muting -- it is better to check the mute keyword rather than just 
flip the icon from its previous setting.  But I thought it was worth 
showing a different approach to flipping button settings for general 
use.

Finally, if you are going to use cl. functions, I'd also recommended 
avoiding button indexes and using id's instead.  See help.







Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to