Update RingLibUI - Sample: extensions/ringlibui/test.ring
load "libui.ring"
oWindow = uiNewWindow( "Hello, World", 400, 400, True)
+uiWindowOnClosing(oWindow,"closeApp()")
btn1 = uiNewButton("SayHello")
uiButtonOnClicked(btn1,"sayHello()")
@@ -12,10 +13,7 @@ g = uiNewGrid() uiGridSetPadded(g, 1) uiWindowSetChild(oWindow, g)
uiGridAppend(g, btn1, 0, 0, 2, 1, 1, uiAlignFill, 0, uiAlignFill)
uiGridAppend(g, btn2, 0, 1, 1, 1, 1, uiAlignFill, 0, uiAlignFill)
-uiWindowOnClosing(oWindow,"closeApp()")
-
uiControlShow( oWindow )
-
uiMain()
func sayHello
@@ -24,4 +22,3 @@ func sayHello
func closeApp
uiControlDestroy(oWindow)
shutdown(0)
-
