forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

clearwin and %eb structure

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
BILLDOWS



Joined: 22 Jul 2005
Posts: 86
Location: Swansea, UK

PostPosted: Fri Jul 22, 2005 9:14 am    Post subject: clearwin and %eb structure Reply with quote

For some time I have used the %eb format to successfully display material and detect both the double click of the left mouse and mouse right click.

I note that the edit_info structure also includes at offsets 10 and 11 some link to the keyboard, but this is not described anywhere?

I would like to detect whether (say) shift is depressed at the point when a double click has been detected. I have set vk_key (i.e. array element 10) = 10 (for shift - MS site) - or should this be 16 -, but there appears to be no change in offset 11 (the shift state) when holding down shift and double clicking? Could anyone provide further information on how this might be done and whether I have interpreted the edit_info parameters correctly?

Many Thanks

Bill Dowsland.
Back to top
View user's profile Send private message Visit poster's website
Martin



Joined: 09 Sep 2004
Posts: 43

PostPosted: Fri Jul 22, 2005 10:12 am    Post subject: clearwin and %eb structure Reply with quote

I don't think the vk_shift variable is used any more (I'm not sure it has ever been used) and the vk_key variable is only used for the KEY_DOWN callback.

You may be able to check the status of the shift key from within your callback routine using the GetKeyState Windows API routine, i.e. GetKeyState(VK_SHIFT). You will need to include the usual windows headers (or use the modules).

For more information on GetKeyState see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getkeystate.asp

Martin
Back to top
View user's profile Send private message
BILLDOWS



Joined: 22 Jul 2005
Posts: 86
Location: Swansea, UK

PostPosted: Fri Jul 22, 2005 10:33 am    Post subject: clearwin and %eb structure Reply with quote


Many thanks Martin for a VERY quick response.

Calling GetKeyState(16) - for Shift - works fine and enables me to provide an alternate action on double click when Shift is held down.

Thanks again, Bill
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
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, 2005 phpBB Group