': 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: ------------------------------------------------------------------
': External modules: ---------------------------------------------------------------
'$INCLUDE:'InForm\InForm.ui'
'$INCLUDE:'InForm\xp.uitheme'
'$INCLUDE:'Template.frm'
': Event procedures: ---------------------------------------------------------------
'here you can write all you need Before Initialization of Inform system
'Here you can write all settings that are permanent at starting /and during the execution of program
' and also all resources that you need to pre-load before your program starts
SUB __UI_BeforeUpdateDisplay
'This event occurs at approximately 30 frames per second.
'You can change the update frequency by calling SetFrameRate DesiredRate%
'here you can write all those actions that must be repeated in loop with 30 fps speed
'If you set __UI_UnloadSignal = False here you can
'cancel the user's request to close.
' here you can FREE memory from data /images/sound etc OR perform emergency saving
'Here you can manage the click event
' the pre_built Select Case let you distinguish among the different objects
Text(InputTB) = ""
Caption(OutputLB) = Text(InputTB)
'This event occurs right before a control loses focus.
'To prevent a control from losing focus, set __UI_KeepFocus = True below.
Text(InputTB) = ""
Caption(OutputLB) = Text(InputTB)
'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