Giff Panels - Owen2k6/GoOS GitHub Wiki
A panel groups controls and paints an optional background rectangle. Child coordinates are relative to the panel's (x,y).
Example:
panel sidebar {
x 0; y 0; width 120; height 240; background "#F5F5F5"
label head { x 6; y 6; text "Menu"; textColour black }
button a { x 6; y 32; width 108; height 22; text "Home" }
button b { x 6; y 58; width 108; height 22; text "Settings" }
}
Supported children inside a panel:
-
label,button,input,image,listbox - Panel-level properties:
x,y,width,height,background.
Variables recorded for panel children mirror window ones, prefixed with panel_<panelName>_..., e.g.:
panel_sidebar_button_a_textpanel_sidebar_input_search_textpanel_sidebar_listbox_items_count