BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bypassing startup sequence

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Tom de Neef
Guest





PostPosted: Thu Feb 02, 2006 6:21 pm    Post subject: Bypassing startup sequence Reply with quote



I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last exit). I
thought that holding down Shift would be a convenient way. But how do I trap
that ? I have experimented with OnKeyDown but it is triggered only sometimes
and I do not understand the conditions under which the key down will be
checked.

Can anybody pls help.
Kind regards,
Tom


Back to top
Rob Kennedy
Guest





PostPosted: Thu Feb 02, 2006 6:46 pm    Post subject: Re: Bypassing startup sequence Reply with quote



Tom de Neef wrote:
Quote:
I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last exit). I
thought that holding down Shift would be a convenient way. But how do I trap
that ? I have experimented with OnKeyDown but it is triggered only sometimes
and I do not understand the conditions under which the key down will be
checked.

Call GetAsyncKeyState to find out the state of any key. (GetKeyState
will tell you the state the key was in when the currently handled
message was retreived, which isn't useful since your program probably
isn't handling messages yet.)

--
Rob

Back to top
Tom de Neef
Guest





PostPosted: Thu Feb 02, 2006 7:12 pm    Post subject: Re: Bypassing startup sequence Reply with quote



"Rob Kennedy" <me3 (AT) privacy (DOT) net> schreef in bericht
news:44f2ckF1sctuU1 (AT) individual (DOT) net...
Quote:
Tom de Neef wrote:
I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last
exit). I thought that holding down Shift would be a convenient way. But
how do I trap that ? I have experimented with OnKeyDown but it is
triggered only sometimes and I do not understand the conditions under
which the key down will be checked.

Call GetAsyncKeyState to find out the state of any key. (GetKeyState will
tell you the state the key was in when the currently handled message was
retreived, which isn't useful since your program probably isn't handling
messages yet.)


YES !
Thank you Rob.
Tom



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.