--- In [email protected], "aviasd" <[EMAIL PROTECTED]> wrote:

Does anybody know this issue ???
>
> Hi , I've written a small script that resizes my active window on 
> keypress, but , I'm having wierd behaviour with windows resized by 
> that script - their controls are not resized until I resize the 
> window by clicking on the window border (send wm_size event ?)
> 
> anyway , I don't want to get into sending messages and thought 
maybe 
> there's a way to send a real window resize using powerpro but I 
don't 
> know how to...
> 
> Here's the script - to check it send it params 1) "l" or "r" (left 
or 
> right) 2) "u" or "d" or whatever (upper half or lower half or full 
> screen)
> 
> if you run it under the powerpro configutation dialog for example, 
> you could see the wierd behaviour of controls.
> 
> Avi
> 
> 
> local side =    arg(1)
> local quarter = arg(2)
> local workingArea =        win.getworkarea
> local vWorkingArea = vec.createFromWords(workingArea)
> ;left,top,right,bottom
> local bottom = vWorkingArea[3]
> local rectWidth =          xscreen /2
> local rectHeight =         yscreen /2
> local xPosition,yPosition,xPositionEnd,yPositionEnd,xSize,Ysize
> 
> 
> ;win.debug(win.maxxed("active"))
> if (win.maxxed("active")==1) do
>    win.restore("active")
> endif
> ;Left or right
> if (side=="l") do
>    xPosition = 0
>    xPositionEnd = xscreen / 2
> else
>    xPosition = xscreen / 2
>    xPositionEnd = xscreen
> endif
> 
> ;half or full
> if (quarter=="u") do
>    yPosition = 0
>    yPositionEnd = bottom / 2
> elseif (quarter=="d")
>    yPosition    = bottom / 2
>    yPositionEnd = bottom
> else
>    yPosition    = 0
>    yPositionEnd    = bottom
> endif
>      xSize =    xPositionEnd - xPosition
>      ySize =    yPositionEnd - yPosition
> ;win.debug
(xPosition,yPosition,xPositionEnd,yPositionEnd,xSize,ySize)
> local myRect = xPosition ++ " " ++ yPosition ++ " " ++ xPositionEnd 
> ++ " " ++ yPositionEnd
> window.position(myRect,"active")
> wait.for(20)
> win.size("active",xSize,ySize)
>


Reply via email to