': This program uses
': InForm - GUI library for QB64 - v1.1
': Fellippe Heitor, 2016-2019 - fellippe@qb64.org - @fellippeheitor
': https://github.com/FellippeHeitor/InForm
'-----------------------------------------------------------
': Controls' IDs: ------------------------------------------------------------------
col2
= _RGBA32(0, 0, 0, 255) 'black'$INCLUDE:'InForm\InForm.ui'
'$INCLUDE:'InForm\xp.uitheme'
'$INCLUDE:'window_test.frm'
': Event procedures: ---------------------------------------------------------------
SUB __UI_BeforeUpdateDisplay
'This event occurs at approximately 30 frames per second.
'You can change the update frequency by calling SetFrameRate DesiredRate%
'If you set __UI_UnloadSignal = False here you can
'cancel the user's request to close.
BeginDraw PictureBox1
IF Caption
(SetAreaBT
) = "Set Area" THEN VIEW (20, 20)-(100, 100), , col
Caption(SetAreaBT) = "RestoreArea"
Caption(SetAreaBT) = "Set Area"
EndDraw PictureBox1
BeginDraw PictureBox1
EndDraw PictureBox1
BeginDraw PictureBox1
LINE (1, 1)-(100, 100), col2
EndDraw PictureBox1
CASE ChangeCohordinatesBT
BeginDraw PictureBox1
IF Caption
(ChangeCohordinatesBT
) = "Change cohordinates" THEN
Caption(ChangeCohordinatesBT) = " Restore Cohor"
Caption(ChangeCohordinatesBT) = "Change cohordinates"
EndDraw PictureBox1
CASE ChangeCohordinatesBT
CASE ChangeCohordinatesBT
CASE ChangeCohordinatesBT
'This event occurs right before a control loses focus.
'To prevent a control from losing focus, set __UI_KeepFocus = True below.
CASE ChangeCohordinatesBT
CASE ChangeCohordinatesBT
CASE ChangeCohordinatesBT
'When this event is fired, __UI_KeyHit will contain the code of the key hit.
'You can change it and even cancel it by making it = 0
CASE ChangeCohordinatesBT