|
|
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 Cheers Roger
I am using V1.3.4.9 as supplied by
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-21-amd64
Architecture: x86-64
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..
--
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/51f650b1-11cd-4a88-a88b-3dde419772bfn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |