Hi!

FLTK: 1.1.9

I have the following problem: I have an seveals Fl_Input fields which 
are thought to enter IP, Netmask, etc. As soon as I press on such an 
input field a keyboard on the screen appears, which can be used by 
touching the screen.

For this i had to modify Fl_Input_.cxx a bit. The push on the input 
field causes a callback and I can check for FL_PUSH in the callback. 
Then I start another process which displays the mentioned keyboard.

So far, so good. If I entered the IP and want to change the netmask for 
example I click on the netmask field and the keyboard stays on the 
screen. If I press "enter" the keyboard dissapears.

What I want to implement now, is that if the keyboard is shown and I am 
editing a input field and I press somewhere(even on buttons, or just on 
background of window) on the main window then a callback should be 
triggered so that I can hide the keyboard again.

But I have no idea how to implement this. Because to trigger on UNFOCUS 
doesn't work, because if I press on Backgroud of the main window, then 
the input field doesn't lose the keyboard focus....

Appreciate every hint!
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to