It's look fine becouse of lightweight, and many examples included.
This code creates button based on window dimensions and allow to resize group.
Code: Select all
#include once "fltk-c.bi"
var Win = Fl_WindowNew(320,200, "Fl_Window")
Fl_WindowBegin win
Fl_ButtonNew 0,0,Fl_WidgetGetW(win),Fl_WidgetGetH(win),"Hello, World!"
Fl_WindowEnd win
'------------this looks shorter and cleaner but not work -----------
'Fl_ButtonNew 1,1,win.w,win.h,"Hello, World!"
'-------------------------------------------------------------------------
Fl_GroupSetResizable win,win
Fl_WindowShow Win
Fl_Run