mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 11:59:34 +00:00
Restructure: Keep data files inside InForm subfolder. Also:
Unclutter QB64's main folder, keeping only falcon.h and UiEditor.exe. - Move UiEditorPreview binary to InForm subfolder as well. - Minor bug fixes to Open dialog (UiEditor).
This commit is contained in:
parent
dc95038bd7
commit
09a0fda4a1
3 changed files with 46 additions and 38 deletions
|
@ -177,14 +177,14 @@ SUB __UI_Click (id AS LONG)
|
||||||
SaveSettings
|
SaveSettings
|
||||||
CASE "INSERTMENUMENUBAR"
|
CASE "INSERTMENUMENUBAR"
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKI$(__UI_Type_MenuBar)
|
b$ = MKI$(__UI_Type_MenuBar)
|
||||||
PUT #UiEditorFile, OffsetNewControl, b$
|
PUT #UiEditorFile, OffsetNewControl, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
Edited = True
|
Edited = True
|
||||||
CASE "INSERTMENUMENUITEM"
|
CASE "INSERTMENUMENUITEM"
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKI$(__UI_Type_MenuItem)
|
b$ = MKI$(__UI_Type_MenuItem)
|
||||||
PUT #UiEditorFile, OffsetNewControl, b$
|
PUT #UiEditorFile, OffsetNewControl, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
|
@ -208,7 +208,7 @@ SUB __UI_Click (id AS LONG)
|
||||||
"ADDRADIOBUTTON", "ADDLISTBOX", "ADDDROPDOWNLIST", _
|
"ADDRADIOBUTTON", "ADDLISTBOX", "ADDDROPDOWNLIST", _
|
||||||
"ADDTRACKBAR", "ADDPROGRESSBAR", "ADDPICTUREBOX", "ADDFRAME"
|
"ADDTRACKBAR", "ADDPROGRESSBAR", "ADDPICTUREBOX", "ADDFRAME"
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKI$(Dummy)
|
b$ = MKI$(Dummy)
|
||||||
PUT #UiEditorFile, OffsetNewControl, b$
|
PUT #UiEditorFile, OffsetNewControl, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
|
@ -248,9 +248,9 @@ SUB __UI_Click (id AS LONG)
|
||||||
SendData b$, 33
|
SendData b$, 33
|
||||||
CASE "VIEWMENUPREVIEW"
|
CASE "VIEWMENUPREVIEW"
|
||||||
$IF WIN THEN
|
$IF WIN THEN
|
||||||
SHELL _DONTWAIT "UiEditorPreview.exe"
|
SHELL _DONTWAIT "InForm/UiEditorPreview.exe"
|
||||||
$ELSE
|
$ELSE
|
||||||
SHELL _DONTWAIT "./UiEditorPreview"
|
SHELL _DONTWAIT "./InForm/UiEditorPreview"
|
||||||
$END IF
|
$END IF
|
||||||
CASE "VIEWMENULOADEDFONTS"
|
CASE "VIEWMENULOADEDFONTS"
|
||||||
DIM Temp$
|
DIM Temp$
|
||||||
|
@ -367,7 +367,7 @@ SUB __UI_Click (id AS LONG)
|
||||||
|
|
||||||
'Refresh the file list control's contents
|
'Refresh the file list control's contents
|
||||||
DIM TotalFiles%
|
DIM TotalFiles%
|
||||||
CurrentPath$ = _CWD$
|
IF CurrentPath$ = "" THEN CurrentPath$ = _CWD$
|
||||||
Text(FileList) = idezfilelist$(CurrentPath$, 0, TotalFiles%)
|
Text(FileList) = idezfilelist$(CurrentPath$, 0, TotalFiles%)
|
||||||
Control(FileList).Max = TotalFiles%
|
Control(FileList).Max = TotalFiles%
|
||||||
Control(FileList).LastVisibleItem = 0 'Reset it so it's recalculated
|
Control(FileList).LastVisibleItem = 0 'Reset it so it's recalculated
|
||||||
|
@ -376,6 +376,11 @@ SUB __UI_Click (id AS LONG)
|
||||||
Control(OpenFrame).Left = 68: Control(OpenFrame).Top = 70
|
Control(OpenFrame).Left = 68: Control(OpenFrame).Top = 70
|
||||||
OpenDialogOpen = True
|
OpenDialogOpen = True
|
||||||
__UI_Focus = FileNameTextBox
|
__UI_Focus = FileNameTextBox
|
||||||
|
IF LEN(Text(FileNameTextBox)) > 0 THEN
|
||||||
|
Control(FileNameTextBox).SelectionStart = 0
|
||||||
|
Control(FileNameTextBox).Cursor = LEN(Text(FileNameTextBox))
|
||||||
|
Control(FileNameTextBox).TextIsSelected = True
|
||||||
|
END IF
|
||||||
__UI_ForceRedraw = True
|
__UI_ForceRedraw = True
|
||||||
CASE "CANCELBT"
|
CASE "CANCELBT"
|
||||||
Text(FileNameTextBox) = ""
|
Text(FileNameTextBox) = ""
|
||||||
|
@ -393,7 +398,7 @@ SUB __UI_Click (id AS LONG)
|
||||||
FileToOpen$ = CurrentPath$ + PathSep$ + Text(FileNameTextBox)
|
FileToOpen$ = CurrentPath$ + PathSep$ + Text(FileNameTextBox)
|
||||||
IF _FILEEXISTS(FileToOpen$) THEN
|
IF _FILEEXISTS(FileToOpen$) THEN
|
||||||
FreeFileNum = FREEFILE
|
FreeFileNum = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #FreeFileNum
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #FreeFileNum
|
||||||
'Send the data first, then the signal
|
'Send the data first, then the signal
|
||||||
b$ = MKI$(LEN(FileToOpen$)) + FileToOpen$
|
b$ = MKI$(LEN(FileToOpen$)) + FileToOpen$
|
||||||
PUT #FreeFileNum, OffsetPropertyValue, b$
|
PUT #FreeFileNum, OffsetPropertyValue, b$
|
||||||
|
@ -481,7 +486,7 @@ SUB __UI_BeforeUpdateDisplay
|
||||||
IF NOT MidRead THEN
|
IF NOT MidRead THEN
|
||||||
MidRead = True
|
MidRead = True
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
|
|
||||||
LoadPreview
|
LoadPreview
|
||||||
|
|
||||||
|
@ -565,7 +570,7 @@ SUB __UI_BeforeUpdateDisplay
|
||||||
Control(EditMenuRedo).Disabled = True
|
Control(EditMenuRedo).Disabled = True
|
||||||
DIM BinFileNum AS INTEGER, UndoPointer AS INTEGER, TotalUndoImages AS INTEGER
|
DIM BinFileNum AS INTEGER, UndoPointer AS INTEGER, TotalUndoImages AS INTEGER
|
||||||
BinFileNum = FREEFILE
|
BinFileNum = FREEFILE
|
||||||
OPEN "UiEditorUndo.dat" FOR BINARY AS #BinFileNum
|
OPEN "InForm/UiEditorUndo.dat" FOR BINARY AS #BinFileNum
|
||||||
IF LOF(BinFileNum) > 0 THEN
|
IF LOF(BinFileNum) > 0 THEN
|
||||||
b$ = SPACE$(2): GET #BinFileNum, 1, b$: UndoPointer = CVI(b$)
|
b$ = SPACE$(2): GET #BinFileNum, 1, b$: UndoPointer = CVI(b$)
|
||||||
b$ = SPACE$(2): GET #BinFileNum, 3, b$: TotalUndoImages = CVI(b$)
|
b$ = SPACE$(2): GET #BinFileNum, 3, b$: TotalUndoImages = CVI(b$)
|
||||||
|
@ -1018,7 +1023,8 @@ SUB SaveSettings
|
||||||
DIM FreeFileNum AS INTEGER, b$
|
DIM FreeFileNum AS INTEGER, b$
|
||||||
|
|
||||||
FreeFileNum = FREEFILE
|
FreeFileNum = FREEFILE
|
||||||
OPEN "InForm.ini" FOR OUTPUT AS #FreeFileNum
|
IF _DIREXISTS("InForm") = 0 THEN EXIT SUB
|
||||||
|
OPEN "InForm/InForm.ini" FOR OUTPUT AS #FreeFileNum
|
||||||
PRINT #FreeFileNum, "[InForm Settings]"
|
PRINT #FreeFileNum, "[InForm Settings]"
|
||||||
PRINT #FreeFileNum, "'This file will be recreated everytime the editor is closed."
|
PRINT #FreeFileNum, "'This file will be recreated everytime the editor is closed."
|
||||||
|
|
||||||
|
@ -1107,10 +1113,12 @@ SUB __UI_OnLoad
|
||||||
|
|
||||||
DIM FileToOpen$, FreeFileNum AS INTEGER
|
DIM FileToOpen$, FreeFileNum AS INTEGER
|
||||||
|
|
||||||
IF _FILEEXISTS("InForm.ini") THEN
|
IF _DIREXISTS("InForm") = 0 THEN MKDIR "InForm"
|
||||||
|
|
||||||
|
IF _FILEEXISTS("InForm/InForm.ini") THEN
|
||||||
'Load settings
|
'Load settings
|
||||||
FreeFileNum = FREEFILE
|
FreeFileNum = FREEFILE
|
||||||
OPEN "InForm.ini" FOR BINARY AS #FreeFileNum
|
OPEN "InForm/InForm.ini" FOR BINARY AS #FreeFileNum
|
||||||
LINE INPUT #FreeFileNum, b$
|
LINE INPUT #FreeFileNum, b$
|
||||||
IF b$ = "[InForm Settings]" THEN
|
IF b$ = "[InForm Settings]" THEN
|
||||||
DIM EqualSign AS INTEGER, IniProperty$, IniValue$
|
DIM EqualSign AS INTEGER, IniProperty$, IniValue$
|
||||||
|
@ -1136,8 +1144,8 @@ SUB __UI_OnLoad
|
||||||
Control(__UI_GetID("OPTIONSMENUAUTONAME")).Value = AutoNameControls
|
Control(__UI_GetID("OPTIONSMENUAUTONAME")).Value = AutoNameControls
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF _FILEEXISTS("UiEditorPreview.frmbin") THEN KILL "UiEditorPreview.frmbin"
|
IF _FILEEXISTS("InForm/UiEditorPreview.frmbin") THEN KILL "InForm/UiEditorPreview.frmbin"
|
||||||
IF _FILEEXISTS("UiEditorUndo.dat") THEN KILL "UiEditorUndo.dat"
|
IF _FILEEXISTS("InForm/UiEditorUndo.dat") THEN KILL "InForm/UiEditorUndo.dat"
|
||||||
|
|
||||||
IF _FILEEXISTS(COMMAND$) THEN
|
IF _FILEEXISTS(COMMAND$) THEN
|
||||||
SELECT CASE LCASE$(RIGHT$(COMMAND$, 4))
|
SELECT CASE LCASE$(RIGHT$(COMMAND$, 4))
|
||||||
|
@ -1158,46 +1166,46 @@ SUB __UI_OnLoad
|
||||||
GET #FreeFileNum, 1, b$
|
GET #FreeFileNum, 1, b$
|
||||||
CLOSE #FreeFileNum
|
CLOSE #FreeFileNum
|
||||||
|
|
||||||
OPEN "UiEditorPreview.frmbin" FOR BINARY AS #FreeFileNum
|
OPEN "InForm/UiEditorPreview.frmbin" FOR BINARY AS #FreeFileNum
|
||||||
PUT #FreeFileNum, 1, b$
|
PUT #FreeFileNum, 1, b$
|
||||||
CLOSE #FreeFileNum
|
CLOSE #FreeFileNum
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF _FILEEXISTS("UiEditor.dat") THEN KILL "UiEditor.dat"
|
IF _FILEEXISTS("InForm/UiEditor.dat") THEN KILL "InForm/UiEditor.dat"
|
||||||
|
|
||||||
$IF WIN THEN
|
$IF WIN THEN
|
||||||
IF _FILEEXISTS("UiEditorPreview.exe") = 0 THEN
|
IF _FILEEXISTS("InForm/UiEditorPreview.exe") = 0 THEN
|
||||||
IF _FILEEXISTS(".\InForm\UiEditorPreview.bas") = 0 THEN
|
IF _FILEEXISTS("InForm/UiEditorPreview.bas") = 0 THEN
|
||||||
GOTO UiEditorPreviewNotFound
|
GOTO UiEditorPreviewNotFound
|
||||||
ELSE
|
ELSE
|
||||||
b$ = "Compiling Preview component..."
|
b$ = "Compiling Preview component..."
|
||||||
GOSUB ShowMessage
|
GOSUB ShowMessage
|
||||||
SHELL "qb64.exe -x .\InForm\UiEditorPreview.bas -o .\UiEditorPreview.exe"
|
SHELL "qb64.exe -x .\InForm\UiEditorPreview.bas -o .\InForm\UiEditorPreview.exe"
|
||||||
IF _FILEEXISTS("UiEditorPreview.exe") = 0 THEN GOTO UiEditorPreviewNotFound
|
IF _FILEEXISTS("InForm/UiEditorPreview.exe") = 0 THEN GOTO UiEditorPreviewNotFound
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
b$ = "Launching..."
|
b$ = "Launching..."
|
||||||
GOSUB ShowMessage
|
GOSUB ShowMessage
|
||||||
SHELL _DONTWAIT "UiEditorPreview.exe"
|
SHELL _DONTWAIT "InForm/UiEditorPreview.exe"
|
||||||
$ELSE
|
$ELSE
|
||||||
IF _FILEEXISTS("UiEditorPreview") = 0 THEN
|
IF _FILEEXISTS("InForm/UiEditorPreview") = 0 THEN
|
||||||
IF _FILEEXISTS("./InForm/UiEditorPreview.bas") = 0 THEN
|
IF _FILEEXISTS("./InForm/UiEditorPreview.bas") = 0 THEN
|
||||||
GOTO UiEditorPreviewNotFound
|
GOTO UiEditorPreviewNotFound
|
||||||
ELSE
|
ELSE
|
||||||
b$ = "Compiling Preview component..."
|
b$ = "Compiling Preview component..."
|
||||||
GOSUB ShowMessage
|
GOSUB ShowMessage
|
||||||
SHELL "./qb64 -x ./InForm/UiEditorPreview.bas -o ./UiEditorPreview"
|
SHELL "./qb64 -x ./InForm/UiEditorPreview.bas -o ./InForm/UiEditorPreview"
|
||||||
IF _FILEEXISTS("UiEditorPreview") = 0 THEN GOTO UiEditorPreviewNotFound
|
IF _FILEEXISTS("InForm/UiEditorPreview") = 0 THEN GOTO UiEditorPreviewNotFound
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
b$ = "Launching..."
|
b$ = "Launching..."
|
||||||
GOSUB ShowMessage
|
GOSUB ShowMessage
|
||||||
SHELL _DONTWAIT "./UiEditorPreview"
|
SHELL _DONTWAIT "./InForm/UiEditorPreview"
|
||||||
$END IF
|
$END IF
|
||||||
|
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKL$(__UI_GetPID)
|
b$ = MKL$(__UI_GetPID)
|
||||||
PUT #UiEditorFile, OffsetEditorPID, b$
|
PUT #UiEditorFile, OffsetEditorPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
|
@ -1237,7 +1245,7 @@ SUB __UI_KeyPress (id AS LONG)
|
||||||
LastKeyPress = TIMER
|
LastKeyPress = TIMER
|
||||||
SELECT CASE id
|
SELECT CASE id
|
||||||
CASE FileNameTextBox
|
CASE FileNameTextBox
|
||||||
__UI_ListBoxSearchItem Control(FileList)
|
IF Control(FileList).Max > 0 THEN __UI_ListBoxSearchItem Control(FileList)
|
||||||
END SELECT
|
END SELECT
|
||||||
END SUB
|
END SUB
|
||||||
|
|
||||||
|
@ -5079,14 +5087,14 @@ SUB LoadPreview
|
||||||
DIM NewParentID AS STRING, FloatValue AS _FLOAT, Dummy AS LONG
|
DIM NewParentID AS STRING, FloatValue AS _FLOAT, Dummy AS LONG
|
||||||
DIM BinaryFileNum AS INTEGER
|
DIM BinaryFileNum AS INTEGER
|
||||||
|
|
||||||
IF _FILEEXISTS("UiEditorPreview.frmbin") = 0 THEN
|
IF _FILEEXISTS("InForm/UiEditorPreview.frmbin") = 0 THEN
|
||||||
EXIT SUB
|
EXIT SUB
|
||||||
ELSE
|
ELSE
|
||||||
TIMER(__UI_EventsTimer) OFF
|
TIMER(__UI_EventsTimer) OFF
|
||||||
TIMER(__UI_RefreshTimer) OFF
|
TIMER(__UI_RefreshTimer) OFF
|
||||||
|
|
||||||
BinaryFileNum = FREEFILE
|
BinaryFileNum = FREEFILE
|
||||||
OPEN "UiEditorPreview.frmbin" FOR BINARY AS #BinaryFileNum
|
OPEN "InForm/UiEditorPreview.frmbin" FOR BINARY AS #BinaryFileNum
|
||||||
|
|
||||||
b$ = SPACE$(7): GET #BinaryFileNum, 1, b$
|
b$ = SPACE$(7): GET #BinaryFileNum, 1, b$
|
||||||
IF b$ <> "InForm" + CHR$(1) THEN
|
IF b$ <> "InForm" + CHR$(1) THEN
|
||||||
|
@ -5250,7 +5258,7 @@ END SUB
|
||||||
SUB SendData (b$, Property AS INTEGER)
|
SUB SendData (b$, Property AS INTEGER)
|
||||||
DIM FileNum AS INTEGER
|
DIM FileNum AS INTEGER
|
||||||
FileNum = FREEFILE
|
FileNum = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #FileNum
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #FileNum
|
||||||
|
|
||||||
'Send the data first, then the signal
|
'Send the data first, then the signal
|
||||||
PUT #FileNum, OffsetPropertyValue, b$
|
PUT #FileNum, OffsetPropertyValue, b$
|
||||||
|
@ -5263,7 +5271,7 @@ END SUB
|
||||||
SUB SendSignal (Value AS INTEGER)
|
SUB SendSignal (Value AS INTEGER)
|
||||||
DIM FileNum AS INTEGER, b$
|
DIM FileNum AS INTEGER, b$
|
||||||
FileNum = FREEFILE
|
FileNum = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #FileNum
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #FileNum
|
||||||
|
|
||||||
b$ = MKI$(Value): PUT #FileNum, OffsetNewDataFromEditor, b$
|
b$ = MKI$(Value): PUT #FileNum, OffsetNewDataFromEditor, b$
|
||||||
CLOSE #FileNum
|
CLOSE #FileNum
|
||||||
|
@ -5300,7 +5308,7 @@ SUB CheckPreview
|
||||||
IF OpenDialogOpen THEN EXIT SUB
|
IF OpenDialogOpen THEN EXIT SUB
|
||||||
|
|
||||||
UiEditorFile = FREEFILE
|
UiEditorFile = FREEFILE
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = SPACE$(4): GET #UiEditorFile, OffsetPreviewPID, b$
|
b$ = SPACE$(4): GET #UiEditorFile, OffsetPreviewPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
UiPreviewPID = CVL(b$)
|
UiPreviewPID = CVL(b$)
|
||||||
|
@ -5318,15 +5326,15 @@ SUB CheckPreview
|
||||||
TIMER(__UI_EventsTimer) OFF
|
TIMER(__UI_EventsTimer) OFF
|
||||||
Control(__UI_GetID("ViewMenuPreview")).Disabled = False
|
Control(__UI_GetID("ViewMenuPreview")).Disabled = False
|
||||||
__UI_WaitMessage = "Reloading preview window..."
|
__UI_WaitMessage = "Reloading preview window..."
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKL$(0): PUT #UiEditorFile, OffsetPreviewPID, b$
|
b$ = MKL$(0): PUT #UiEditorFile, OffsetPreviewPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
UiPreviewPID = 0
|
UiPreviewPID = 0
|
||||||
SHELL _DONTWAIT "UiEditorPreview.exe"
|
SHELL _DONTWAIT "InForm/UiEditorPreview.exe"
|
||||||
__UI_LastInputReceived = 0 'Make the "Please wait" message show up immediataly
|
__UI_LastInputReceived = 0 'Make the "Please wait" message show up immediataly
|
||||||
DO
|
DO
|
||||||
_LIMIT 10
|
_LIMIT 10
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = SPACE$(4)
|
b$ = SPACE$(4)
|
||||||
GET #UiEditorFile, OffsetPreviewPID, b$
|
GET #UiEditorFile, OffsetPreviewPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
|
@ -5344,15 +5352,15 @@ SUB CheckPreview
|
||||||
TIMER(__UI_EventsTimer) OFF
|
TIMER(__UI_EventsTimer) OFF
|
||||||
Control(__UI_GetID("ViewMenuPreview")).Disabled = False
|
Control(__UI_GetID("ViewMenuPreview")).Disabled = False
|
||||||
__UI_WaitMessage = "Reloading preview window..."
|
__UI_WaitMessage = "Reloading preview window..."
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = MKL$(0): PUT #UiEditorFile, OffsetPreviewPID, b$
|
b$ = MKL$(0): PUT #UiEditorFile, OffsetPreviewPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
UiPreviewPID = 0
|
UiPreviewPID = 0
|
||||||
SHELL _DONTWAIT "./UiEditorPreview"
|
SHELL _DONTWAIT "./InForm/UiEditorPreview"
|
||||||
__UI_LastInputReceived = 0 'Make the "Please wait" message show up immediataly
|
__UI_LastInputReceived = 0 'Make the "Please wait" message show up immediataly
|
||||||
DO
|
DO
|
||||||
_LIMIT 10
|
_LIMIT 10
|
||||||
OPEN "UiEditor.dat" FOR BINARY AS #UiEditorFile
|
OPEN "InForm/UiEditor.dat" FOR BINARY AS #UiEditorFile
|
||||||
b$ = SPACE$(4)
|
b$ = SPACE$(4)
|
||||||
GET #UiEditorFile, OffsetPreviewPID, b$
|
GET #UiEditorFile, OffsetPreviewPID, b$
|
||||||
CLOSE #UiEditorFile
|
CLOSE #UiEditorFile
|
||||||
|
|
Binary file not shown.
BIN
UiEditor.exe
BIN
UiEditor.exe
Binary file not shown.
Loading…
Reference in a new issue