1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 11:59:34 +00:00

Adds 'docs/undo file format.txt' and updates 'docs/frmbin format.txt'

This commit is contained in:
FellippeHeitor 2018-05-25 10:48:08 -03:00
parent 3f2aa11afa
commit 2781858d23
2 changed files with 30 additions and 0 deletions

View file

@ -6,6 +6,11 @@ Below is the binary format for exchange of controls data. It is
used for UiEditorPreview.frmbin, which is read/written to by both
UiEditor and UiEditorPreview, as well as for clipboard exchange.
This format is used in UiEditor and UiEditorPreview's methods:
- LoadPreview
- SavePreview
-----------------------------------------------------------
InForm + CHR(1)
LONG UBOUND(Control)
FOR EACH CONTROL (FORM INCLUDED):

View file

@ -0,0 +1,25 @@
InForm - GUI library for QB64
Fellippe Heitor, 2016-2018 - fellippe@qb64.org - @fellippeheitor
https://github.com/FellippeHeitor/InForm
-----------------------------------------------------------
Below is the binary format for undo/redo data saved to file
'InForm/UiEditorUndo.dat'. Each time a new control is created or
a new property is changed, the preview saves the current state to
this file and adjusts 'total undo images' and sets 'undo pointer'
accordingly.
This format is used in UiEditorPreview's methods:
- SaveUndoImage
- RestoreUndoImage
- RestoreRedoImage
-----------------------------------------------------------
MAX UNDO ENTRIES: 100
offset data description
1 INTEGER undo pointer
3 INTEGER total undo images
Directory
entry size: 8 bytes
LONG size&
size& backup form data