| Author |
Message |
|
|
Post subject: virtual keyboard in qnx
Posted: Feb 01, 2010 - 09:53 AM
|
|
Active Member
Joined: Feb 11, 2009
Posts: 59
Location: India
|
|
hi all
does QNX provides a virtual keyboard, wherein a standard keyboard is simulated in an application and works when no actual keyboard is attached to the system.
If QNX doesn't, can any one guide me on how to make one?
Thanks in Advance. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: virtual keyboard in qnx
Posted: Feb 01, 2010 - 05:46 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1606
|
|
I love the way Microsoft now has everyone trained to misunderstand what an OS is.
The answer is no, not in Photon either, but it would be relatively easy to create one. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: virtual keyboard in qnx
Posted: Feb 01, 2010 - 10:06 PM
|
|
Active Member
Joined: Jan 22, 2003
Posts: 61
Location: Bendigo, Australia
|
|
| Yes. Have a look in the photon examples on the QNX site. There is a software keyboard application. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: virtual keyboard in qnx
Posted: Feb 02, 2010 - 05:08 AM
|
|
Active Member
Joined: Feb 11, 2009
Posts: 59
Location: India
|
|
|
ianc wrote:
Yes. Have a look in the photon examples on the QNX site. There is a software keyboard application.
thanks ianc. can you please provide this link. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: virtual keyboard in qnx
Posted: Feb 02, 2010 - 05:09 AM
|
|
Active Member
Joined: Feb 11, 2009
Posts: 59
Location: India
|
|
|
maschoen wrote:
I love the way Microsoft now has everyone trained to misunderstand what an OS is.
The answer is no, not in Photon either, but it would be relatively easy to create one.
well the truth is they have created some expectations in the masses.
Yeah...can u give me some pointers where to start this relatively easy task.  |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: virtual keyboard in qnx
Posted: Feb 02, 2010 - 04:31 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1606
|
|
Yeah...can u give me some pointers where to start this relatively easy task.
Have you developed a simple Photon Application before? That would be a good place to start. Once you have that under your belt the following would be a good place to start.
1) Method 1, the keyboard is applicable if you want the keyboard to function with and as part of a single application
Create a dialog with a keyboard made up of buttons. You might want a toggle button on the application to go between the real keyboard if it is there and the virtual one. You will have to setup all your text widgets to check this toggle when they get focus. If they get focus, they bring up the dialog and collect text. When entry is complete, the data gets transferred into the text widget by the application.
2) Method 2, you want a generic virtual keyboard that replaces the real keyboard.
In this application, the keyboard is a window. When you press a keyboard button with the mouse or via a touch screen, this application will have to emit a key-press event. Any application beneath this event may capture it. There is one complication that I don't know the answer to which will be interesting to figure out. Most Photon events have a X,Y coordinates. Keyboard events are unique in that they do not have an X,Y location initially, but obtain one on the way through Photon space. This is why you can have two windows with text widgets up, but only one gets the event. You can read about this in the architecture manual. The tricky part is that the keyboard application will be active when you are pressing buttons, but you want there to be some other active application that receives the events. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: virtual keyboard in qnx
Posted: Feb 03, 2010 - 02:34 AM
|
|
Active Member
Joined: Jan 22, 2003
Posts: 61
Location: Bendigo, Australia
|
|
|
|
|
 |
|
|
Post subject: Re: RE: virtual keyboard in qnx
Posted: Feb 04, 2010 - 07:27 PM
|
|
Senior Member
Joined: Nov 05, 2003
Posts: 125
Location: Texas
|
|
|
maschoen wrote:
...it would be relatively easy to create one.
I made a popup keypad, just the number keys. It was a royal PITA. I would HATE to have to do the full keyboard. VERY tedious.
-James Ingraham
Sage Automation, Inc. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: virtual keyboard in qnx
Posted: Feb 04, 2010 - 07:39 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1606
|
|
| I'm guessing you built it with the AppBuilder. This is one case where it might be smarter to assemble the keyboard in code. That would also make it possible to have different key maps fairly easily. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: virtual keyboard in qnx
Posted: Feb 05, 2010 - 04:52 AM
|
|
Active Member
Joined: Feb 11, 2009
Posts: 59
Location: India
|
|
|
|
|
 |
|
|