mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-14 19:49:33 +00:00
Properly loads PictureBox controls with Stretch = True/False.
This commit is contained in:
parent
8e05b84297
commit
cb5c6cda57
1 changed files with 8 additions and 2 deletions
|
@ -2103,7 +2103,10 @@ SUB LoadPreview (Destination AS _BYTE)
|
|||
__UI_TotalSelectedControls = __UI_TotalSelectedControls + 1
|
||||
IF __UI_TotalSelectedControls = 1 THEN FirstToBeSelected = TempValue
|
||||
END IF
|
||||
IF NewType = __UI_Type_PictureBox THEN Control(TempValue).HasBorder = False
|
||||
IF NewType = __UI_Type_PictureBox THEN
|
||||
Control(TempValue).HasBorder = False
|
||||
Control(TempValue).Stretch = False
|
||||
END IF
|
||||
|
||||
DO 'read properties
|
||||
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
||||
|
@ -2393,7 +2396,10 @@ SUB LoadPreviewText
|
|||
END IF
|
||||
|
||||
TempValue = __UI_NewControl(NewType, NewName, NewWidth, NewHeight, NewLeft, NewTop, __UI_GetID(NewParentID))
|
||||
IF NewType = __UI_Type_PictureBox THEN Control(TempValue).HasBorder = False
|
||||
IF NewType = __UI_Type_PictureBox THEN
|
||||
Control(TempValue).HasBorder = False
|
||||
Control(TempValue).Stretch = False
|
||||
END IF
|
||||
IF NewType = __UI_Type_Label THEN Control(TempValue).VAlign = __UI_Top
|
||||
|
||||
DO 'read properties
|
||||
|
|
Loading…
Reference in a new issue