WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Fltk  (Read 5465 times)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Fltk
« on: September 25, 2009, 11:25:49 PM »
I have choosen very basic colors and gtk+ scheme when I embarked on deploying the fltk toolkit.
It does not have to be this plain. If you wish, change your .Xdefaults line for fltk as follows:

fltk*scheme: gtk+

to

fltk*scheme: plastic
10+ Years Contributing to Linux Open Source Projects.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Fltk
« Reply #1 on: September 26, 2009, 08:35:23 AM »
Full list of supported X resources
I've only used the colors and scheme, so I can't say how well the others work.
Code: [Select]
    * background - The default background color for widgets (color).
    * dndTextOps - The default setting for drag and drop text operations (boolean).
    * foreground - The default foreground (label) color for widgets (color).
    * scheme - The default scheme to use (string).
    * selectBackground - The default selection color for menus, etc. (color).
    * Text.background - The default background color for text fields (color).
    * tooltips - The default setting for tooltips (boolean).
    * visibleFocus - The default setting for visible keyboard focus on non-text widgets (boolean).

Resources associated with the first window's Fl_Window::xclass() string are queried first, or if no class has been specified then the class "fltk" is used (e.g. fltk.background). If no match is found, a global search is done (e.g. *background).

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: Fltk
« Reply #2 on: September 29, 2009, 11:56:44 PM »
roberts already knows this, but for the other readers... you might discover flwm version 1.10 (in TC 2.4rc2) does not support the plastic FLTK scheme very well, at least if you try to set a non-standard titlebar color through the environment variable FLWM_TITLEBAR_COLOR.  
--
Mike Lockmoore