IGlass gui for blitzmax

BlitzMax Forums/BlitzMax Programming/IGlass gui for blitzmax

Deux :) this is an example to make a window and a button look this
code he is very simple to learn only 7 line of code for setup gui
and use interface :

' --------------------------
' Init IGL gui ! important !
' --------------------------
IGL_InitGUI(1)
IGL_Background("./IGL_Demos/Background_01.png")

' -----------
' a window
' -----------
Global MyWindow01:IGL_Window
MyWindow01=IGL_Window.Create("Window 01",50,50,610,410)

' ---------
' a button
' ---------
Local MyButton0:IGL_PushButton
MyButton0=IGL_PushButton.Create(MyWindow01,"Path selector",10,325,245)
MyButton0.ToolTip="Open a path selector ..."

' ----------
' one loop
' ----------
' -------------
' The main loop
' -------------
While Not KeyHit(KEY_ESCAPE)
Cls

' -----------------------------
' Refresh IGL gui ! important !
' -----------------------------
IGL_RefreshGui()


If MyButton0.ClickGadget() Then
End
EndIf

' ------------------------
' Swap buffer and flushmem
' ------------------------
bglSwapBuffers()
FlushMem()
Wend