change font for FXTreeItem

  • Thread starter martinankerl at eml dot cc
  • Start date
M

martinankerl at eml dot cc

An FXRuby question: Is it possible to change the font of single
FXTreeItem? I want to have several items in a TreeList that have a bold
font, and, if possible, a different background color.

Martin
 
L

Lyle Johnson

An FXRuby question: Is it possible to change the font of single
FXTreeItem?

Not, not easily. You'd need to subclass FXTreeItem and override one or
more of its drawing methods to use an item-specific font. It might
also require subclassing the FXTreeList class itself; not sure what
assumptions that FXTreeList makes about the sizes of the tree items.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,834
Members
47,382
Latest member
MichaleStr

Latest Threads

Top