Feel free and write the missing FreeBASIC docu. ;-)Coolman wrote:documentation is insufficient ...
Fl_WindowMakeCurrent() select the target for drawing.
Fl_GroupBegin() select the target for new widgets.
If you add new child widgets dynamical you should use Fl_WidgetRedraw(parent) also.
Code: Select all
#include once "fltk-c.bi"
dim as integer count
dim as double t
dim as Fl_Window ptr win = Fl_WindowNew(350,120,"Test")
dim as double t = Fl_Wait2(0.1)
if count < 100 then