FLTK logo

[fltk.general] Customizing the look of Fl_Scroll

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Customizing the look of Fl_Scroll Eric Sokolowsky 12:40 Aug 25  
 
Hello,

I'm constructing a new application that runs primarily under Linux/X11, but this question is not platform-specific. I'm designing it to have a custom look and feel with a black background and round buttons to make it more touch-screen friendly. I've been able to override some of the classes to implement my look and feel using the draw() function, such as Fl_Toggle_Button, Fl_Button, Fl_Slider, FL_Table, and others derived from Fl_Group with good success. However, I'm now trying to figure out how to derive from Fl_Scroll so I can have a scrolling list that is too large for a single screen. The problem is the scrollbars that are instanced within Fl_Scroll. If they were pointers, I could remove the default instances and replace them with my own, but since they are not pointers, I cannot override their default drawing behavior (at least how to do so is not immediately obvious to me). Does anyone have suggestions on how I might make a scrolling box with a custom look without having to reimplement everything already in Fl_Scroll? If it helps, I plan on only using a vertical scroll bar and not a horizontal scroll bar.

Thanks in advance for any advice.

Eric

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/6a3bea58-9b56-47cf-9167-f7a5cb6f2398n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.