Skip to contentSkip to conversation

Matchbox keyboard

DISCUSSION Gary Thomas 2 participants 4 messages Feb 5, 2013

lore
Share & tools
lore
#0 lore raw

Sorry if this isn't the best place to ask...

I have a GUI application running on Poky/Yocto with Sato using only a touch screen. My application window takes up the whole display which is *very* small (320x240). If I try and accept text input, I can see the matchbox keyboard try to pop up, but it immediately ends up behind my application window and thus is of little use :-(

Is there some way to get the keyboard window to sit above my application window while it is active? I've experimented a bit and I can use the terminal window in this environment but its window gets sized very small - probably too small for my application. Is that the only way for the matchbox keyboard and the application that's using it for input to coexist?

Thanks for any ideas or pointers

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 8 lines · Gary Thomas

Sorry if this isn't the best place to ask...

I have a GUI application running on Poky/Yocto with Sato using only a touch screen. My application window takes up the whole display which is *very* small (320x240). If I try and accept text input, I can see the matchbox keyboard try to pop up, but it immediately ends up behind my application window and thus is of little use :-(

This should not be too small, I am pretty sure I have used it on a device of that size, but it assumes the GUI application is well behaved and obeys the window manager -- you have to make it respect the size the WM allocates.

Tomas

Signature · 1 line
http://sleepfive.com
#2 lore raw
Quoted 10 lines · Tomas Frydrych
Quoted 8 lines · Gary Thomas

Sorry if this isn't the best place to ask...

I have a GUI application running on Poky/Yocto with Sato using only a touch screen. My application window takes up the whole display which is *very* small (320x240). If I try and accept text input, I can see the matchbox keyboard try to pop up, but it immediately ends up behind my application window and thus is of little use :-(

Quoted 4 lines

This should not be too small, I am pretty sure I have used it on a device of that size, but it assumes the GUI application is well behaved and obeys the window manager -- you have to make it respect the size the WM allocates.

Does the window manager attempt to resize my window when the keyboard pops up? I have a simple dialog and I don't see it being resized (if that's even possible)

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 11 lines · Gary Thomas
Quoted 10 lines · Tomas Frydrych
Quoted 8 lines · Gary Thomas

Sorry if this isn't the best place to ask...

I have a GUI application running on Poky/Yocto with Sato using only a touch screen. My application window takes up the whole display which is *very* small (320x240). If I try and accept text input, I can see the matchbox keyboard try to pop up, but it immediately ends up behind my application window and thus is of little use :-(

Quoted 8 lines
Quoted 4 lines

This should not be too small, I am pretty sure I have used it on a device of that size, but it assumes the GUI application is well behaved and obeys the window manager -- you have to make it respect the size the WM allocates.

Does the window manager attempt to resize my window when the keyboard pops up? I have a simple dialog and I don't see it being resized (if that's even possible)

In the matchbox case it works through the window stack and works out the size that is taken up by DOCKS and TOOLBARS (the kbd is a toolbar, iirc); whatever is left is then given to the other windows (applications and dialogs). Simplest way to verify if the WM is trying to resize the dialog is to listen for the ConfigureNotify event and see what sizes are coming through there (how you do that would depend on the toolkit).

Tomas

Signature · 1 line
http://sleepfive.com