| View previous topic :: View next topic |
| Author |
Message |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Dec 14, 2005 12:17 am Post subject: Restore size and position after minimizing to tray? |
|
|
I've got minimize to tray working perfectly. And I've got resizing working perfectly - including all possible font sizes etc.
But I've just noticed my application does not remember the size or position it was at before it was minimized to tray. It reverts back to the last size and position it was at when it was last closed.
Is it possible to write the size and postion registry key before it minimizes to tray  _________________ cheers
Dave |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Dec 14, 2005 12:48 am Post subject: |
|
|
use @WINPOS() to get the coordinates of your window, save it to the registry or ini file and use WINDOW POSITION to set the window to the new dimension when opened from the system tray
from memory, i usually use DIALOG SETPOS to resize the dialog window
serge _________________
|
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Dec 14, 2005 2:23 pm Post subject: |
|
|
Thanks Serge,
I ended up using @dlgpos(, TLWH) and WINDOW POSITION. @winpos was giving strange values like "-32000|-32000|160|31" _________________ cheers
Dave |
|
| Back to top |
|
 |
|