'Adjust the Resize Status of this form based on its CanResize property:
IF __UI_DesignMode
= False
THEN IF Control
(__UI_FormID
).CanResize
<> __UI_CurrentResizeStatus
THEN __UI_CurrentResizeStatus = Control(__UI_FormID).CanResize
IF __UI_CurrentResizeStatus
THEN
'Resize event:
'(Triggered either programatically or by directly resizing the form):
IF (CheckResize
AND Control
(__UI_FormID
).CanResize
) OR (CheckResize
AND __UI_DesignMode
) OR __UI_CurrentBackColor
<> Control
(__UI_FormID
).BackColor
OR Control
(__UI_FormID
).
Width <> _WIDTH(0) OR Control
(__UI_FormID
).Height
<> _HEIGHT(0) THEN IF Control
(__UI_FormID
).
Width > 0 AND Control
(__UI_FormID
).Height
> 0 THEN __UI_CurrentBackColor = Control(__UI_FormID).BackColor
__UI_HasResized = 2 'Indicate this process is in the middle
'Recreate the main form's canvas
Control
(__UI_FormID
).Canvas
= _NEWIMAGE(Control
(__UI_FormID
).
Width, Control
(__UI_FormID
).Height
, 32) _DEST Control
(__UI_FormID
).Canvas
COLOR Control
(__UI_FormID
).ForeColor
, Control
(__UI_FormID
).BackColor
IF __UI_HasMenuBar
= True
THEN 'Add menubar div to main form's canvas
_FONT Control
(__UI_FormID
).Font
__UI_MenuBarOffsetV
= falcon_uspacing&
+ (((_FONT = 8) * -1) * __UI_Font8Offset
+ ((_FONT = 16) * -1) * __UI_Font16Offset
) + 5 + 2 LINE (0, __UI_MenuBarOffsetV
- 1)-STEP(Control
(__UI_FormID
).
Width - 1, 0), Darken
(Control
(__UI_FormID
).BackColor
, 80) LINE (0, __UI_MenuBarOffsetV
)-STEP(Control
(__UI_FormID
).
Width - 1, 0), Darken
(Control
(__UI_FormID
).BackColor
, 120) __UI_RefreshMenuBar
__UI_MenuBarOffsetV = 0
__UI_HasResized = True
__UI_HasInput = True