Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

KeyPress event behaviour

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2009, 03:44 PM
Junior Member
 
Join Date: Aug 2007
Posts: 13
Default KeyPress event behaviour

Hi everybody!

I have a problem with KeyPress event.

I would like to manage the special keys cDownKey and cUpKey but the form react to it only when no one control have the focus.

If i give the focus to a control, the form can't receive the event and the SpecialKeys event is used by the system to navigate on controls. This is ok, but when the focus falls on a TextBox the navigation stops because that events are used to move the caret, so i need to tap on screen to change focus.

There are a way to change this behaviour? On Delphi i remember a property which gives the events to the back form if they are not recognized, there are something similar in b4p or .NET?

I attach a sample


Many thanks
Claudio
Attached Files
File Type: sbp KeyPress.sbp (1.0 KB, 23 views)
Reply With Quote
  #2 (permalink)  
Old 06-11-2009, 07:26 AM
Junior Member
 
Join Date: Aug 2007
Posts: 13
Default

Quote:
Originally Posted by claudio View Post
If i give the focus to a control, the form can't receive the event and the SpecialKeys event
Solved!

fgControls library contain the fgGetAsyncKeyState object which intercept all keys sent to the form.

Thanks Filippo!

Claudio
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different behaviour with ImageLibEx and FormLib klaus Beta Versions 5 04-29-2009 08:43 AM
Strange Form behaviour at start HARRY Questions (Windows Mobile) 2 12-31-2008 03:50 PM
getting the Pressed Key in the KeyPress event Cableguy Questions (Windows Mobile) 2 09-05-2008 05:17 PM
Keypress ceaser Questions (Windows Mobile) 2 05-28-2008 04:21 AM
Different behaviour DeskTop and Device HARRY Questions (Windows Mobile) 2 02-22-2008 12:36 PM


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0