21#include <FL/fl_draw.H>
23#include <FL/Fl_Group.H>
24#include <FL/Fl_Menu_Window.H>
25#include <FL/Fl_Tooltip.H>
26#include <FL/Fl_Button.H>
43 bgcolor = fl_color_cube(FL_NUM_RED - 1, FL_NUM_GREEN - 1, FL_NUM_BLUE - 2);
53 draw_box(FL_BORDER_BOX, 0, 0, w(), h(),
bgcolor);
55 fl_font(labelfont(), labelsize());
56 fl_draw(
tip, 3, 3, w() - 6, h() - 6,
58 Fl_Align(FL_ALIGN_LEFT));
63 snprintf(
tip,
sizeof(
tip) - 1,
"%s", s);
64 fl_font(labelfont(), labelsize());
67 fl_measure(
tip, W,
H, 0);
100 Fl_Group *save = Fl_Group::current();
103 Fl_Group::current(save);
110 int scr_x, scr_y, scr_w, scr_h;
111 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h);
112 int ty = Fl::event_y_root() + 20;
114 ty = Fl::event_y_root() - 20 -
my_tipwin()->h();
117 my_tipwin()->position(Fl::event_x_root(), ty);
133 Fl_Button(x, y, w, h, l)
159 return (Fl_Button::handle(e));
187 }
else if (e == FL_LEAVE || e == FL_RELEASE || e == FL_HIDE) {
191 }
else if (e == FL_DEACTIVATE && color() !=
norm_color) {
237 return (Fl_Input::handle(e));
void value(const char *s)
void recent_tooltip(int val)
TipWin()
Custom tooltip window.
char * dStrdup(const char *s)
DilloPrefs prefs
Global Data.
#define PREFS_UI_BUTTON_HIGHLIGHT_COLOR
static void recent_timeout(void *)
static void show_timeout(void *)