forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Restore size and position after minimizing to tray?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Dec 14, 2005 12:17 am    Post subject: Restore size and position after minimizing to tray? Reply with quote

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 Question

_________________
cheers

Dave
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Dec 14, 2005 12:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Dec 14, 2005 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group