diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-04-11 08:11:56 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-04-11 08:11:56 +0000 |
| commit | ffd26dfc452b94f631df22497de561791e5ce8d0 (patch) | |
| tree | 369d0b8bf5aa969d829b3216c939effeb9535052 /src/Fl_Widget.cxx | |
| parent | 177e3cd076288531a1bee16374a091aed80e61a6 (diff) | |
I made FL_NORMAL_SIZE into a public int variable. You can now change it
before any widgets are created, in order to change the default size of
the fonts used. The most useful thing that can be done is to set it to
12 so that the default font size matches Win32.
I also fixed the menubar drawing a bit so that a menubar with a FL_FLAT_BOX
draws correctly.
It should also be documented that "Fl::set_color(Fl_Color(15),0,0,128);"
can be used to get Win32-style highlighting of menus and text items. This
is not portable to fltk 2.0.
With these changes it should be easier to get fltk to look just like Win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
| -rw-r--r-- | src/Fl_Widget.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index f1a8a4008..e5d6d805d 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.cxx,v 1.5 1999/01/07 19:17:29 mike Exp $" +// "$Id: Fl_Widget.cxx,v 1.5.2.1 2000/04/11 08:11:54 bill Exp $" // // Base widget class for the Fast Light Tool Kit (FLTK). // @@ -67,6 +67,8 @@ Fl_Widget *Fl::readqueue() { int Fl_Widget::handle(int) {return 0;} +int FL_NORMAL_SIZE = 14; + Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { x_ = X; y_ = Y; w_ = W; h_ = H; @@ -196,5 +198,5 @@ int Fl_Widget::contains(const Fl_Widget *o) const { } // -// End of "$Id: Fl_Widget.cxx,v 1.5 1999/01/07 19:17:29 mike Exp $". +// End of "$Id: Fl_Widget.cxx,v 1.5.2.1 2000/04/11 08:11:54 bill Exp $". // |
