--- In [email protected], "royalmitt" <[EMAIL PROTECTED]> wrote:
>
> Folks, I'm sick and tired of dealing with tiny windows which contain
large
> lists of information, like the msconfig interface.  I don't
understand why
> Microsoft, in all their wisdom, allows only a two by three inch window
> when the data inside requires fiddling with scroll bars just to see
> everything.
> 
> I want to resize such windows.
> 
> Is there any way ppro can help me with this?

Basically it's simple, however, it's very cumbercome to fine-tune the
look. Here is a rough routine to do it:

--------------------- Resize.PowerPro ---------------------------------
local hWnd=win.handle("=msconfig")

local nxZ = 1.5
local nyZ = 2

local pt=dll.create_struct("i[2]")
dll.call("ClientToScreen|ui t*",hWnd,pt)

hWnd.move(hWnd.Left-pt[1],hWnd.Top-pt[2]);;+
.size(ftos(nxZ * hWnd.Width,"%0.0f"),ftos(nyZ * hWnd.Height,"%0.0f"))

local list=hWnd.ChildHandlelist

for(local i=list.word(0);i;i--)
local hCtrl=list.word(i)

hCtrl.move(ftos(nxZ * hCtrl.Left,"%0.0f");;+
,ftos(nyZ * hCtrl.Top,"%0.0f"));;+
.size(ftos(nxZ * hCtrl.Width,"%0.0f");;+
,ftos(nyZ * hCtrl.Height,"%0.0f"))
endfor

hWnd.SetPos10000("s","c","c")
quit
-----------------------------------------------------------------------

Sean

Reply via email to