FLTK logo

Re: [fltk.general] Re: Does FLTK have a stacked widget?

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

Re: Re: Does FLTK have a stacked widget? Albrecht Schlosser Feb 07, 2023  
 
On  2/7/23 14:53 'Matthias Melcher' via fltk.general wrote:

Yes, Fl_Wizard. Sorry, no link as I am writing this on my phone.

https://www.fltk.org/doc-1.4/classFl__Wizard.html

Fl_Wizard allows "navigation" step by step backward and forward and to the first and last "page" which may or may not be sufficient for the OP.

Fl_Wizard is shown in the test/tabs demo program side by side with the Fl_Tabs widget.

@Mark: if you need to implement your own widget, this shouldn't be too difficult. The basics are as in Fl_Tabs or Fl_Wizard: derive from Fl_Group, add several Fl_Group container widgets in the same place and hide() all but the one you want to show(). Whenever you change the view, call redraw() on the container widget.


Mark schrieb am Dienstag, 7. Februar 2023 um 14:47:04 UTC+1:
I need a widget that manages a collection of one or more other widgets ("pages") just like a Tab widget does: but with no tabs. The reason for no tabs is because this widget is tall and narrow with about 8 "pages", so I want to provide navigation using a combobox (i.e., a Choice widget) above it rather than having tabs.
Thanks.

--
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 on the web visit https://groups.google.com/d/msgid/fltkgeneral/dd2d063f-59f6-00f8-97fd-c9bbcdc1f7f8%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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