--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm attempting to rewrite part of one of my scripts to use the new CL
> plugin-like syntax.
>
> My script sets some icons according to whether or not certain PowerPro
> bars are visible on the screen�Ԥ��ä� the first icon is displayed if the=
> bar is visible and the second is displayed if not.
>
> This is what I was using to accomplish the task (all one line):
>
> *Format Item List "Menu: Bars" Item 1 IconFile Glyphs\Checkmarks.icl
IconNum &(1 - AnyWindow("ColourSpy"))
>
> (This is followed by a *Menu Show command.)
>
> This appears to be the correct CL equivalent (again, all one line):
>
> CL.SetIcon("Menu: Bars", 0, PProFolder ++ "Glyphs\\Checkmarks.icl",
1 - AnyWindow("ColourSpy"))
>
> However, when this is shown as a menu, the icon is not displayed.
> Instead, a generic Windows unassociated file icon is displayed.
>
> Here's the glitch: the command is indeed working properly, because if
> I follow the command with CL.SavePCF() and then open configuration,
> the correct icon index is shown on the Edit List Item dialogue.
>
> Is there any particular reason why this icon should not be displaying
> on my menu? Restarting Windows has had no effect.
>
> If I have not explained myself very well, I'm more than willing to
> provide screenshots. Please let me know if you'd like some!
What is the icon size, 16x16 or 32x32?
BTW, you may use the relative path for the icon files, i.e., just
"Glyphs/Checkmarks.icl" without pprofolder would be enough.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
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/