sgp wrote:
> Hi everyone, there's a question at the end of this message, the first 
> paragraph just sets the context.
> 
> PowerPro has a nice feature that allows one to change the icon that is 
> displayed on active bars for any window. You need to setup a special 
> command list in pproconf.exe>commandlists>setup>speciallists>active
> and add items to this list, where the item name is an caption matching 
> string and the item image is the replacing icon.
> 
> I want to match the running window with an expression =(expr) but when I 
> do, all my buttons change to the new icon. I think it's because I can't 
> figure out how to reference the handle of the window that is associated 
> with the active button. Here's what I have for the name field:
> 
> =(index(win.exepath("=opera").lower,?"\opera\opera.exe"))
> 
> of course, when opera.exe is running, this expression matches any button. 
> Changing it to
> =(index(win.exepath("activebar").lower,?"\opera\opera.exe"))
> 
> again changes all button icons when the opera.exe button is pressed.
> 
> Unless there already is another way to do this, I think that a new 
> function win.xyz is needed to return the window handle of the window whose 
> active bar button PowerPro is currently processing. Then I could do
> 
> =(index(win.exepath(win.xyz).lower,?"\opera\opera.exe"))
> 
> Is there another way to do this? TIA
> 
> --sgp
> 

i must say i have a hard time trying to understand what effect your after.

do you want the opera button to change icon only when the button is pressed?

Reply via email to