FLTK logo

Re: [fltk.general] Re: Fl_Tabs

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: Fl_Tabs Greg Ercolano Sep 02, 2021  
 


On 9/2/21 10:49 AM, Albrecht Schlosser wrote:

I do. It's really strange.

    I've been looking at this too, and it seems to me there's some strange
    behavior in the Fl_Tabs::value(Fl_Widget*) method, where somehow during
    the loop, the last widget is somehow becoming visible() before it's set visible.

    Haven't come to conclusions yet, but it sure seems in Fl_Tabs::value(Fl_Widget*)
    during the loop, calling hide() on the first child (Tab A) causes the /last/ child (Tab C)
    to suddenly become visible() for some reason, causing confusion in the loop.

    I'm suspecting the Fl_Group::handle() method code for FL_SHOW/FL_HIDE events
    to be the "culprit".

    I have to run away mid-debug, but that's where I left off.
    Anyone wanting to dig deeper, I suggest use the above to get past that
    first level of obfuscation, as that's a weird trip down the usual event rabbit hole.

--
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/3535c198-647a-5443-a22b-f1c127ecef99%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'.