[fltk.general] Modal windows in fltk?

2012-11-27 Thread Howard Rubin
I have a class with an fltk window in it. In that class's constructor I call set_modal() for the window. I create an object of that class and then call show(). I'd expect to the call to show() to not return until I close the popped up window, but instead show() returns immediately. I'm used to

[fltk.general] Open a menu with Mouse hover

2013-01-21 Thread Howard Rubin
How can I get a menu item to drop down by hovering the mouse? In this program, clicking on the File menu will drop it down, and then I can just move the mouse over the Edit menu to drop it down. I need the File menu to drop down when I move the mouse over it without the mouse click. #include

[fltk.general] Changing an Fl_Menu_Bar item colors

2013-01-22 Thread Howard Rubin
I have an Fl_Menu_Bar with a few added items that have the FL_MENU_TOGGLE property. This adds checkboxes to the menu. I need to change the visual indication that each menu item has been clicked from the checkbox to toggling menu item foreground (text) and background colors. Obviously I could

Re: [fltk.general] Changing an Fl_Menu_Bar item colors

2013-01-30 Thread Howard Rubin
Thanks for the reply. This code works well for changing the text foreground color. However I also need to change the background color (the gray box behind the text). Any ideas how to change the background color in an Fl_Menu_Bar item? Thanks, Howard Rubin On 28 Jan 2013 05:37:11 -0800, Sanel

[fltk.general] Moving symbol on Fl_Menu_Bar Fl_Menu_Item

2013-02-01 Thread Howard Rubin
I'm adding a symbol to an Fl_Menu_Item on an Fl_Menu_Bar using set_labeltype(). It's mostly working but when the menu is dropped down, the symbol moves to the left by about 12 units. (BTW, this approach solves the Changing an Fl_Menu_Bar item colors question) Why does the symbol move and how

[fltk.general] FL_LEAVE in Fl_Menu_Bar

2013-02-08 Thread Howard Rubin
In this program, I've derived from Fl_Menu_Bar and overridden the handle(int) function. That's because I need the submenu to pop up when the mouse enters the the menu, without the user having to press a mouse button. It seems that pulldown() doesn't return until I press Esc, and

[fltk.general] Which Fl_Menu_Bar submenu is current?

2013-03-01 Thread Howard Rubin
Hello, How can I find out which dropdown menu of an Fl_Menu_Bar is currently dropped down (if any)? I need to know this in an add_timeout()/repeat_timeout() timer. Thanks for any suggestions, Howard Rubin ___ fltk mailing list fltk@easysw.com http

[fltk.general] Caps Lock detection

2013-04-05 Thread Howard Rubin
it's been turned off. Here's the below sample program's output for the transition from Caps Lock on to off. caps lock 7 caps lock 6 caps lock 7 caps lock 8 caps lock 9 caps lock 8 caps lock 10 Howard Rubin #include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Secret_Input.H

Re: [fltk.general] Caps Lock detection

2013-04-05 Thread Howard Rubin
displaying the 'Caps Lock is on' message when the test in the code says it's off. Is there really no alternative? Thanks, Howard Rubin #include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Secret_Input.H #include iostream class myWindow : public Fl_Window { public: myWindow(int x, int y

[fltk.general] Caps Lock detection

2013-04-08 Thread Howard Rubin
::event_state() FL_CAPS_LOCK) correctly changes to nonzero as soon as you press Caps Lock. But it doesn't change back to 0 when you press Caps Lock again until e.g. you move the mouse over the window. Howard Rubin #include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Output.H

Re: [fltk.general] Caps Lock detection

2013-04-09 Thread Howard Rubin
in a future release of FLTK? - Howard Rubin == #include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Output.H #include FL/Fl_Secret_Input.H #include iostream #include X11/XKBlib.h bool isCapsLock() { Display* d = XOpenDisplay(NULL); if (!d) return false

Re: [fltk.general] Caps Lock detection

2013-04-10 Thread Howard Rubin
On Wed, 10 Apr 2013 08:48:35 -0700, Greg Ercolano e...@seriss.com wrote: It's also rare apps try to do anything with the capslock state. I don't agree. Most login screens warn immediately if capslock is on because their password fields don't echo input. Howard Rubin