--- In [email protected], "theyaleon" <[EMAIL PROTECTED]> wrote:
>
> So, thanks Bruce: I have subj.
> Active buttons I've put to bar called "Bar-Main"
> HookWindowEvents has element with .hook
> Hook.powerpro:
> ; in startup script I put:  global ABCount=0
> ABcountC=cl.getactivebuttons("Bar-Main") ;; how many AB we have
> if (ABcountC) ABcountC=1 ;; if ABcountC is empty yet
> if (ABcount = ABCountC) Quit
>   ; 34 - I have buttons before AB, +500px &#8211; till my info-bar 
at center 
> of the screen
> *Script if (ABcountC != ABCount) do
>     cl.SetWidth("Bar-Main", 2, 500/ABcountC)
>     ABCount=ABcountC
>     cl.Redisplay("Bar-Main")
> endif
> ; PP may not respond for up to 7 sec.
>


The above script has some syntax problems, I believe (eg quit 
statement on same line as if, = used for equality check) so I am not 
sure what you are really running.

But, are just trying to have buttons resized to equal size to take 
the most of the available space, without using "bar size from some of 
buttons".  If so, this is what PowerPro does automatically if you do 
not use the option "last item in command list sets active buttons".

Reply via email to