mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 03:49:56 +00:00
Properly resets canvas for controls other than PictureBox. Closes #57
This commit is contained in:
parent
38919c59e3
commit
127ddaf94f
1 changed files with 3 additions and 1 deletions
|
@ -4453,7 +4453,9 @@ SUB LoadImage (This AS __UI_ControlTYPE, File$)
|
|||
ELSE
|
||||
IF File$ = "" THEN
|
||||
'Passing an empty file name can be used to clean the canvas
|
||||
This.HelperCanvas = _NEWIMAGE(This.Width, This.Height, 32)
|
||||
IF This.Type = __UI_Type_PictureBox THEN
|
||||
This.HelperCanvas = _NEWIMAGE(This.Width, This.Height, 32)
|
||||
END IF
|
||||
ELSE
|
||||
ErrorMessage$ = "Missing image file:"
|
||||
END IF
|
||||
|
|
Loading…
Reference in a new issue