brucexs wrote:

> 
> 
> --- In [email protected], sgp
> acs322000 <[EMAIL PROTECTED]> wrote:
>> Run the attached script as [EMAIL PROTECTED](20)
>> I expected to see a 40 pixel high button at the bottom of the 
> screen
>> then the same button shrinking down to a 20 pixel height _and_ the 
> bar 
>> shrinking too. Instead I end up with a 20 pixel high button housed 
> in a 40 
>> pixel high bar. Is this correct?
> 
> 
>>> cl.addproperties(cl,"Format1=Height: "++size)
> 
> Try cl.setproperties:  above adds to what already there which may be 
> confusing the config routines.
> 

when I use cl.setproperties the bar doesn't change height at all.
revised script below
I expected to see bar/button label "40" 40px tall followed by "20" 20px 
tall. Instead I see "40" and "20" both < 20px tall

@test
local cl="cl"
local pos="BottomEdgeCurrentSize"
if(not cl.exists(cl))do
  cl.create(cl)
  cl.insert(cl,0)
endif
local size=arg(1)+20
if(visiblewindow(cl))do
  wait.for(1000)
  bar.close(cl)
endif
cl.setlabel(cl,0,size)
cl.setproperties(cl,"Format1=Height: "++size)
cl.setproperties(cl,"Format1=Position: "++pos)
wait.for(1000)
bar.show(cl)
wait.for(1000)
bar.close(cl)
wait.for(1000)
size=arg(1)
cl.setlabel(cl,0,size)
cl.setproperties(cl,"Format1=Height: "++size)
cl.setproperties(cl,"Format1=Position: "++pos)
wait.for(1000)
bar.show(cl)
quit



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