FLTK logo

Re: [fltk.general] Re: HOWTO = ???->show() in a callback function

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: HOWTO = ???->show() in a callback function Greg Ercolano Sep 24, 2022  
 

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/94247bf7-5d11-2c46-688c-5195b48e0eb7%40seriss.com.
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'.