Re: Re: HOWTO = ???->show() in a callback function
roger tunnicliffe
Sep 25, 2022
" That's because no tabs were defined in your Fl_Tabs widget, making it effectively 'invisible'."
I did actually have them coded but just did not show that in the code I pasted as I had tried to supply only the relevant information. (obviously that was relevant (lol))
On Sunday, September 25, 2022 at 4:17:03 PM UTC+10 roger tunnicliffe wrote:
Thanks guys, I have found the difference but do not understand it..
I had coded:-
Fl_Tabs *cards = new Fl_Tabs(40,40,300,200);
while your demonstration has coded:-
cards = new Fl_Tabs(40,40,300,200);
Would be very grateful if you could explain the difference
On Sunday, September 25, 2022 at 9:13:25 AM UTC+10 er...@seriss.com wrote:
On 9/24/22 16:04, roger tunnicliffe wrote:
Copy and pasted your working version code and it compiled (after
adding FL/Fl.H) okay but when I stepped thru the program
"cards->show()" did nothing (nothing displayed) ???
That's because no tabs were defined in your Fl_Tabs widget,
making it effectively 'invisible'.
To define tabs in the tab widget, you have to add child
Fl_Groups,
one per tab.
Each child group of Fl_Tabs will be a separate tab; the
group's label name
will be that tab's title, and the contents of the group will be
the contents of the tab.
See the small program I replied with which defines 3 tabs so
that
the tab widget can be seen..
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'.