1
1
Fork 0
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:
FellippeHeitor 2018-06-14 10:41:23 -03:00
parent 38919c59e3
commit 127ddaf94f

View file

@ -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