OpenQNX :: The QNX Community Portal

Sep 09, 2010 - 02:41 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 21 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rahil
Post subject: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
ianc
Post subject: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
rahil
Post subject: Re: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
rahil
Post subject: Re: RE: virtual keyboard in qnx  PostPosted: 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. Wink
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: Re: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
ianc
Post subject: RE: Re: RE: virtual keyboard in qnx  PostPosted: Feb 03, 2010 - 02:34 AM
Active Member


Joined: Jan 22, 2003
Posts: 61
Location: Bendigo, Australia
try this, I know its for QNX4 but it should still work

http://quics.qnx.com/cgi-bin/dir_find.cgi?/usr/free/qnx4/photon/utils/
 
 View user's profile Send private message  
Reply with quote Back to top
ingraham
Post subject: Re: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Re: RE: virtual keyboard in qnx  PostPosted: 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.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
rahil
Post subject: RE: Re: RE: virtual keyboard in qnx  PostPosted: Feb 05, 2010 - 04:52 AM
Active Member


Joined: Feb 11, 2009
Posts: 59
Location: India
I'm excited.....
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.