![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
See this post: D-Pad Navigation Sample (?)
Instead of "If specialKey = ..." you should use Code:
Select SpeicalKey Case cUpKey ... Case cLeftKey ... Case cRightKey ... Case cDownKey ... End Select |
|
||||
|
Them use the keyPress event and use/look for the ASCII key value....
For instance, chr13 is the enter key... Google a bit and you will find a complete reference to the ASCII key map...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
Ok for the keypressed event and the ascii table.
But what object must I choose for the keypressed event ? I tried with the whole form, but with a form, I only have the "special keys" of the device. Thank you Pascal.
__________________
Pascal |
|
||||
|
The only two standart control in B4PPc that suport "keyPress Event" are the Button and the Textbox.
Other controls have similar events... You can change the default event triggered by adding an event... For instance you want the same code to de used in more than one event, but That would cause too much code lines... so just add an extra event that will overRide the default event of the control: AddEvent("Button1",KeyPress,"MySub") AddEvent("TextBox1",KeyPress,"MySub") This will cause that both keypress events will be "linking" to the same Sub...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trapping Other Keys | Louis | Questions & Help Needed | 3 | 05-10-2008 07:20 AM |
| Using hw keys in MS Smartphone | TomasNM | Questions & Help Needed | 4 | 02-25-2008 03:30 PM |
| Soft Keys on Smart Phones? | Louis | Questions & Help Needed | 1 | 02-21-2008 05:49 AM |
| Capturing the arrow keys on the desktop | Louis | Questions & Help Needed | 1 | 08-31-2007 09:01 PM |
| Menu handling with hardware keys | miklquick | Questions & Help Needed | 8 | 07-13-2007 06:58 PM |