FLTK logo

Re: [fltk.general] Strange artefacts visible on controls

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: Strange artefacts visible on controls Jck_01 Jul 08, 2022  
 



And this all happens in the context of the main() thread?
For example, it is never safe to call Fl::check(); from any non-main
thread context.

Actually, if this is all happening in the callback, I'd not call
Fl::check(); at all anyway, TBH.

I did another test. I kept the instructions order original, i.e. first  addMessage(), and then  startButton->deactivate(), but after this I called Fl::check() - and this removed the artifacts!
addMessage(gui.getTranslation().Translate(u8"Connected!").c_str());
startButton->deactivate();
Fl::check(); <<<<< THIS HELPED IN REMOVING THE ARTIFACTS



--
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/f6a26880-d29c-4cef-a117-4131250690den%40googlegroups.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'.