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
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
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
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
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
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
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
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
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
::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
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
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
12 matches
Mail list logo