Re: Restore a Window

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
dcole said...

I there a way to restore a window to it's original size (the one used in createEx(}) if the size is changed (not minimized}. Without using getRect/setRect?

I assume you mean by "if the size is changed" that the user manually changes the window size by using the mouse.

No, I'm changing the size with setRect.

DerekParnell said...

Why do you want to avoid using setRect()?

Because I thoght I saw somewhere that you could do it with one command. Rather than:

sequence s 
s=getRect(Window1}--get the original size 
 
setRect(Window1.10,10,1100,1100,1}--change  the size of the window here with setRect() 
setRect(Window1, s[1],s[2], s[3]-s[1], s[4]-s[2],1)}--restore to original size 

But I can't find that procedure anymore. It might have been showWindow(Window1,SW_RESTORE). But that only works if one uses SW_MINIMIZE to change the window size.

What I'm trying to do is blowup a window and it's EditTexts and the EditTexts' fontsize. Then restore them back to their original sizes. Is there an easier way of doing this?

Don Cole

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu