> ; The button index is zero-based, so the first button on the bar has > ; an index of zero; the next has an index of 1; etc. > > If(Volume == 0) Do > CL.SetTextColor(BarName, ButtonIndex, 255, 0, 0) .... > You do of course need to change the values of the BarName and > ButtonIndex variables accordingly.
With 4.1, you can assign an id text string to any item in a command list, using either .ini files or using the gui interface. Then you can refer to that id string as the second parameter in cl functions which reference a command list item. This way, you are not stuck with having to reference hard-coded indexes for buttons which change if you re-arrange the list. See help, cl functions overview, which contains this paragraph: Many of the cl services require you to specify the item in the list that you wish to access. You have two choices to specify an item's location: you can specify the zero-based index of the item in the list as a number, or you can specify the id of the item. The id is a text label for an item used solely by the cl functions. You can specify the id using id= in text configuration files. You can also specify it on the PowerPro Configuration GUI by putting <id=xxxx> at the end of the item name (the id is not displayed). The id cannot consist solely of digits; it must have at least one alphabetic. ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/
