mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 11:59:34 +00:00
Changes paste routine behavior.
- When you paste controls without a selection, the pasted controls will be placed where they were originally located. If a control is selected, the newly pasted controls will be slightly offset when pasted.
This commit is contained in:
parent
c713f3445e
commit
68a3014268
1 changed files with 8 additions and 2 deletions
|
@ -1533,7 +1533,9 @@ SUB LoadPreview (Destination AS _BYTE)
|
||||||
REDIM __UI_TempTips(1 TO CVL(b$)) AS STRING
|
REDIM __UI_TempTips(1 TO CVL(b$)) AS STRING
|
||||||
REDIM _PRESERVE Control(0 TO CVL(b$)) AS __UI_ControlTYPE
|
REDIM _PRESERVE Control(0 TO CVL(b$)) AS __UI_ControlTYPE
|
||||||
ELSE
|
ELSE
|
||||||
|
DIM ShiftPosition AS _BYTE
|
||||||
FOR i = 1 TO UBOUND(Control)
|
FOR i = 1 TO UBOUND(Control)
|
||||||
|
IF Control(i).ControlIsSelected THEN ShiftPosition = True
|
||||||
Control(i).ControlIsSelected = False
|
Control(i).ControlIsSelected = False
|
||||||
NEXT
|
NEXT
|
||||||
|
|
||||||
|
@ -1581,11 +1583,15 @@ SUB LoadPreview (Destination AS _BYTE)
|
||||||
IF LogFileLoad THEN PRINT #LogFileNum, "HEIGHT:" + STR$(CVI(b$))
|
IF LogFileLoad THEN PRINT #LogFileNum, "HEIGHT:" + STR$(CVI(b$))
|
||||||
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
||||||
NewLeft = CVI(b$)
|
NewLeft = CVI(b$)
|
||||||
IF NOT Disk THEN NewLeft = NewLeft + 20
|
|
||||||
IF LogFileLoad THEN PRINT #LogFileNum, "LEFT:" + STR$(CVI(b$))
|
IF LogFileLoad THEN PRINT #LogFileNum, "LEFT:" + STR$(CVI(b$))
|
||||||
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
||||||
NewTop = CVI(b$)
|
NewTop = CVI(b$)
|
||||||
IF NOT Disk THEN NewTop = NewTop + 20
|
IF NOT Disk THEN
|
||||||
|
IF ShiftPosition THEN
|
||||||
|
NewLeft = NewLeft + 20
|
||||||
|
NewTop = NewTop + 20
|
||||||
|
END IF
|
||||||
|
END IF
|
||||||
IF LogFileLoad THEN PRINT #LogFileNum, "TOP:" + STR$(CVI(b$))
|
IF LogFileLoad THEN PRINT #LogFileNum, "TOP:" + STR$(CVI(b$))
|
||||||
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
IF NOT Disk THEN b$ = ReadSequential$(Clip$, 2) ELSE b$ = SPACE$(2): GET #BinaryFileNum, , b$
|
||||||
IF CVI(b$) > 0 THEN
|
IF CVI(b$) > 0 THEN
|
||||||
|
|
Loading…
Reference in a new issue