Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199312.adf » !OmniDesk_OmniDesk » !FormSizer/!Help

!FormSizer/!Help

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199312.adf » !OmniDesk_OmniDesk
Filename: !FormSizer/!Help
Read OK:
File size: 0AF7 bytes
Load address: 0000
Exec address: 0000
File contents
Form Sizer
~~~~~~~~~~

An OmniDesk Utility
by Richard G. Hallas

Form Sizer gives information about template files. When writing desktop
applications, it is useful to know how much memory to reserve for window
definitions, but this information is difficult to work out. However, Form
Sizer tells you exactly how much space is needed for both the windows
themselves and the data they contain.

Dragging a template file into the Form Sizer window (or onto the icon-bar
icon) results in information being displayed on each window in the template
file. This consists of the following:

(1) 'Global template block size' indicates the maximum size needed to hold
any window in the file. Note that this is NOT the size of all the windows
put together: rather, it is the size of the largest window in the file. The
reason for this is that it is not usually necessary to retain window
definitions once they have been created by your program. If you simply
reserve enough space for the largest window definition, you can then use the
same storage area for each window in turn as you create it, which is much
more economical than loading all the windows at once.

(2) 'Total indirected data size' indicates the total size of all indirected
data in all the windows. Note that this IS the total size of all indirected
data in the file, since your program does need to retain this data.

(3) For each window in the file, the following information is displayed in
the white area at the bottom of the window:
    (a) Window identifier;
    (b) Size of the window's definition;
    (c) Size of the window's indirected data;
so you can reserve memory on a window-by-window basis if you prefer.

The 'Dec/Hex' button will switch the Form Sizer display between decimal and
hexadecimal numbers. This also affects the numeric contents of the template
statistics file available from the save window.

Clicking Menu over the Form Sizer window presents the main utility menu:

'Info' leads to a standard information window.

'Clear statistics' will clear out any template file currently loaded, and
release the memory it used.

'Window position' leads to a window which lets you determine where the Form
Sizer window appears on the screen. This corresponds to an invisible grid,
and when you change screen mode the window will snap to this grid. (This
feature can be disabled by clicking Adjust on the small window icon, which
makes it disappear.)

'Save statistics' lets you save out a text file of detailed information
about the loaded templates. This includes all the information shown in the
Form Sizer window, and in addition there is information about the type and
contents of all the icons in each window.

'Save settings' will save the screen location of the Form Sizer window,
along with the state of the 'Dec/Hex' button.
00000000  46 6f 72 6d 20 53 69 7a  65 72 0a 7e 7e 7e 7e 7e  |Form Sizer.~~~~~|
00000010  7e 7e 7e 7e 7e 0a 0a 41  6e 20 4f 6d 6e 69 44 65  |~~~~~..An OmniDe|
00000020  73 6b 20 55 74 69 6c 69  74 79 0a 62 79 20 52 69  |sk Utility.by Ri|
00000030  63 68 61 72 64 20 47 2e  20 48 61 6c 6c 61 73 0a  |chard G. Hallas.|
00000040  0a 46 6f 72 6d 20 53 69  7a 65 72 20 67 69 76 65  |.Form Sizer give|
00000050  73 20 69 6e 66 6f 72 6d  61 74 69 6f 6e 20 61 62  |s information ab|
00000060  6f 75 74 20 74 65 6d 70  6c 61 74 65 20 66 69 6c  |out template fil|
00000070  65 73 2e 20 57 68 65 6e  20 77 72 69 74 69 6e 67  |es. When writing|
00000080  20 64 65 73 6b 74 6f 70  0a 61 70 70 6c 69 63 61  | desktop.applica|
00000090  74 69 6f 6e 73 2c 20 69  74 20 69 73 20 75 73 65  |tions, it is use|
000000a0  66 75 6c 20 74 6f 20 6b  6e 6f 77 20 68 6f 77 20  |ful to know how |
000000b0  6d 75 63 68 20 6d 65 6d  6f 72 79 20 74 6f 20 72  |much memory to r|
000000c0  65 73 65 72 76 65 20 66  6f 72 20 77 69 6e 64 6f  |eserve for windo|
000000d0  77 0a 64 65 66 69 6e 69  74 69 6f 6e 73 2c 20 62  |w.definitions, b|
000000e0  75 74 20 74 68 69 73 20  69 6e 66 6f 72 6d 61 74  |ut this informat|
000000f0  69 6f 6e 20 69 73 20 64  69 66 66 69 63 75 6c 74  |ion is difficult|
00000100  20 74 6f 20 77 6f 72 6b  20 6f 75 74 2e 20 48 6f  | to work out. Ho|
00000110  77 65 76 65 72 2c 20 46  6f 72 6d 0a 53 69 7a 65  |wever, Form.Size|
00000120  72 20 74 65 6c 6c 73 20  79 6f 75 20 65 78 61 63  |r tells you exac|
00000130  74 6c 79 20 68 6f 77 20  6d 75 63 68 20 73 70 61  |tly how much spa|
00000140  63 65 20 69 73 20 6e 65  65 64 65 64 20 66 6f 72  |ce is needed for|
00000150  20 62 6f 74 68 20 74 68  65 20 77 69 6e 64 6f 77  | both the window|
00000160  73 0a 74 68 65 6d 73 65  6c 76 65 73 20 61 6e 64  |s.themselves and|
00000170  20 74 68 65 20 64 61 74  61 20 74 68 65 79 20 63  | the data they c|
00000180  6f 6e 74 61 69 6e 2e 0a  0a 44 72 61 67 67 69 6e  |ontain...Draggin|
00000190  67 20 61 20 74 65 6d 70  6c 61 74 65 20 66 69 6c  |g a template fil|
000001a0  65 20 69 6e 74 6f 20 74  68 65 20 46 6f 72 6d 20  |e into the Form |
000001b0  53 69 7a 65 72 20 77 69  6e 64 6f 77 20 28 6f 72  |Sizer window (or|
000001c0  20 6f 6e 74 6f 20 74 68  65 20 69 63 6f 6e 2d 62  | onto the icon-b|
000001d0  61 72 0a 69 63 6f 6e 29  20 72 65 73 75 6c 74 73  |ar.icon) results|
000001e0  20 69 6e 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 20  | in information |
000001f0  62 65 69 6e 67 20 64 69  73 70 6c 61 79 65 64 20  |being displayed |
00000200  6f 6e 20 65 61 63 68 20  77 69 6e 64 6f 77 20 69  |on each window i|
00000210  6e 20 74 68 65 20 74 65  6d 70 6c 61 74 65 0a 66  |n the template.f|
00000220  69 6c 65 2e 20 54 68 69  73 20 63 6f 6e 73 69 73  |ile. This consis|
00000230  74 73 20 6f 66 20 74 68  65 20 66 6f 6c 6c 6f 77  |ts of the follow|
00000240  69 6e 67 3a 0a 0a 28 31  29 20 27 47 6c 6f 62 61  |ing:..(1) 'Globa|
00000250  6c 20 74 65 6d 70 6c 61  74 65 20 62 6c 6f 63 6b  |l template block|
00000260  20 73 69 7a 65 27 20 69  6e 64 69 63 61 74 65 73  | size' indicates|
00000270  20 74 68 65 20 6d 61 78  69 6d 75 6d 20 73 69 7a  | the maximum siz|
00000280  65 20 6e 65 65 64 65 64  20 74 6f 20 68 6f 6c 64  |e needed to hold|
00000290  0a 61 6e 79 20 77 69 6e  64 6f 77 20 69 6e 20 74  |.any window in t|
000002a0  68 65 20 66 69 6c 65 2e  20 4e 6f 74 65 20 74 68  |he file. Note th|
000002b0  61 74 20 74 68 69 73 20  69 73 20 4e 4f 54 20 74  |at this is NOT t|
000002c0  68 65 20 73 69 7a 65 20  6f 66 20 61 6c 6c 20 74  |he size of all t|
000002d0  68 65 20 77 69 6e 64 6f  77 73 0a 70 75 74 20 74  |he windows.put t|
000002e0  6f 67 65 74 68 65 72 3a  20 72 61 74 68 65 72 2c  |ogether: rather,|
000002f0  20 69 74 20 69 73 20 74  68 65 20 73 69 7a 65 20  | it is the size |
00000300  6f 66 20 74 68 65 20 6c  61 72 67 65 73 74 20 77  |of the largest w|
00000310  69 6e 64 6f 77 20 69 6e  20 74 68 65 20 66 69 6c  |indow in the fil|
00000320  65 2e 20 54 68 65 0a 72  65 61 73 6f 6e 20 66 6f  |e. The.reason fo|
00000330  72 20 74 68 69 73 20 69  73 20 74 68 61 74 20 69  |r this is that i|
00000340  74 20 69 73 20 6e 6f 74  20 75 73 75 61 6c 6c 79  |t is not usually|
00000350  20 6e 65 63 65 73 73 61  72 79 20 74 6f 20 72 65  | necessary to re|
00000360  74 61 69 6e 20 77 69 6e  64 6f 77 0a 64 65 66 69  |tain window.defi|
00000370  6e 69 74 69 6f 6e 73 20  6f 6e 63 65 20 74 68 65  |nitions once the|
00000380  79 20 68 61 76 65 20 62  65 65 6e 20 63 72 65 61  |y have been crea|
00000390  74 65 64 20 62 79 20 79  6f 75 72 20 70 72 6f 67  |ted by your prog|
000003a0  72 61 6d 2e 20 49 66 20  79 6f 75 20 73 69 6d 70  |ram. If you simp|
000003b0  6c 79 0a 72 65 73 65 72  76 65 20 65 6e 6f 75 67  |ly.reserve enoug|
000003c0  68 20 73 70 61 63 65 20  66 6f 72 20 74 68 65 20  |h space for the |
000003d0  6c 61 72 67 65 73 74 20  77 69 6e 64 6f 77 20 64  |largest window d|
000003e0  65 66 69 6e 69 74 69 6f  6e 2c 20 79 6f 75 20 63  |efinition, you c|
000003f0  61 6e 20 74 68 65 6e 20  75 73 65 20 74 68 65 0a  |an then use the.|
00000400  73 61 6d 65 20 73 74 6f  72 61 67 65 20 61 72 65  |same storage are|
00000410  61 20 66 6f 72 20 65 61  63 68 20 77 69 6e 64 6f  |a for each windo|
00000420  77 20 69 6e 20 74 75 72  6e 20 61 73 20 79 6f 75  |w in turn as you|
00000430  20 63 72 65 61 74 65 20  69 74 2c 20 77 68 69 63  | create it, whic|
00000440  68 20 69 73 20 6d 75 63  68 0a 6d 6f 72 65 20 65  |h is much.more e|
00000450  63 6f 6e 6f 6d 69 63 61  6c 20 74 68 61 6e 20 6c  |conomical than l|
00000460  6f 61 64 69 6e 67 20 61  6c 6c 20 74 68 65 20 77  |oading all the w|
00000470  69 6e 64 6f 77 73 20 61  74 20 6f 6e 63 65 2e 0a  |indows at once..|
00000480  0a 28 32 29 20 27 54 6f  74 61 6c 20 69 6e 64 69  |.(2) 'Total indi|
00000490  72 65 63 74 65 64 20 64  61 74 61 20 73 69 7a 65  |rected data size|
000004a0  27 20 69 6e 64 69 63 61  74 65 73 20 74 68 65 20  |' indicates the |
000004b0  74 6f 74 61 6c 20 73 69  7a 65 20 6f 66 20 61 6c  |total size of al|
000004c0  6c 20 69 6e 64 69 72 65  63 74 65 64 0a 64 61 74  |l indirected.dat|
000004d0  61 20 69 6e 20 61 6c 6c  20 74 68 65 20 77 69 6e  |a in all the win|
000004e0  64 6f 77 73 2e 20 4e 6f  74 65 20 74 68 61 74 20  |dows. Note that |
000004f0  74 68 69 73 20 49 53 20  74 68 65 20 74 6f 74 61  |this IS the tota|
00000500  6c 20 73 69 7a 65 20 6f  66 20 61 6c 6c 20 69 6e  |l size of all in|
00000510  64 69 72 65 63 74 65 64  0a 64 61 74 61 20 69 6e  |directed.data in|
00000520  20 74 68 65 20 66 69 6c  65 2c 20 73 69 6e 63 65  | the file, since|
00000530  20 79 6f 75 72 20 70 72  6f 67 72 61 6d 20 64 6f  | your program do|
00000540  65 73 20 6e 65 65 64 20  74 6f 20 72 65 74 61 69  |es need to retai|
00000550  6e 20 74 68 69 73 20 64  61 74 61 2e 0a 0a 28 33  |n this data...(3|
00000560  29 20 46 6f 72 20 65 61  63 68 20 77 69 6e 64 6f  |) For each windo|
00000570  77 20 69 6e 20 74 68 65  20 66 69 6c 65 2c 20 74  |w in the file, t|
00000580  68 65 20 66 6f 6c 6c 6f  77 69 6e 67 20 69 6e 66  |he following inf|
00000590  6f 72 6d 61 74 69 6f 6e  20 69 73 20 64 69 73 70  |ormation is disp|
000005a0  6c 61 79 65 64 20 69 6e  0a 74 68 65 20 77 68 69  |layed in.the whi|
000005b0  74 65 20 61 72 65 61 20  61 74 20 74 68 65 20 62  |te area at the b|
000005c0  6f 74 74 6f 6d 20 6f 66  20 74 68 65 20 77 69 6e  |ottom of the win|
000005d0  64 6f 77 3a 0a 20 20 20  20 28 61 29 20 57 69 6e  |dow:.    (a) Win|
000005e0  64 6f 77 20 69 64 65 6e  74 69 66 69 65 72 3b 0a  |dow identifier;.|
000005f0  20 20 20 20 28 62 29 20  53 69 7a 65 20 6f 66 20  |    (b) Size of |
00000600  74 68 65 20 77 69 6e 64  6f 77 27 73 20 64 65 66  |the window's def|
00000610  69 6e 69 74 69 6f 6e 3b  0a 20 20 20 20 28 63 29  |inition;.    (c)|
00000620  20 53 69 7a 65 20 6f 66  20 74 68 65 20 77 69 6e  | Size of the win|
00000630  64 6f 77 27 73 20 69 6e  64 69 72 65 63 74 65 64  |dow's indirected|
00000640  20 64 61 74 61 3b 0a 73  6f 20 79 6f 75 20 63 61  | data;.so you ca|
00000650  6e 20 72 65 73 65 72 76  65 20 6d 65 6d 6f 72 79  |n reserve memory|
00000660  20 6f 6e 20 61 20 77 69  6e 64 6f 77 2d 62 79 2d  | on a window-by-|
00000670  77 69 6e 64 6f 77 20 62  61 73 69 73 20 69 66 20  |window basis if |
00000680  79 6f 75 20 70 72 65 66  65 72 2e 0a 0a 54 68 65  |you prefer...The|
00000690  20 27 44 65 63 2f 48 65  78 27 20 62 75 74 74 6f  | 'Dec/Hex' butto|
000006a0  6e 20 77 69 6c 6c 20 73  77 69 74 63 68 20 74 68  |n will switch th|
000006b0  65 20 46 6f 72 6d 20 53  69 7a 65 72 20 64 69 73  |e Form Sizer dis|
000006c0  70 6c 61 79 20 62 65 74  77 65 65 6e 20 64 65 63  |play between dec|
000006d0  69 6d 61 6c 20 61 6e 64  0a 68 65 78 61 64 65 63  |imal and.hexadec|
000006e0  69 6d 61 6c 20 6e 75 6d  62 65 72 73 2e 20 54 68  |imal numbers. Th|
000006f0  69 73 20 61 6c 73 6f 20  61 66 66 65 63 74 73 20  |is also affects |
00000700  74 68 65 20 6e 75 6d 65  72 69 63 20 63 6f 6e 74  |the numeric cont|
00000710  65 6e 74 73 20 6f 66 20  74 68 65 20 74 65 6d 70  |ents of the temp|
00000720  6c 61 74 65 0a 73 74 61  74 69 73 74 69 63 73 20  |late.statistics |
00000730  66 69 6c 65 20 61 76 61  69 6c 61 62 6c 65 20 66  |file available f|
00000740  72 6f 6d 20 74 68 65 20  73 61 76 65 20 77 69 6e  |rom the save win|
00000750  64 6f 77 2e 0a 0a 43 6c  69 63 6b 69 6e 67 20 4d  |dow...Clicking M|
00000760  65 6e 75 20 6f 76 65 72  20 74 68 65 20 46 6f 72  |enu over the For|
00000770  6d 20 53 69 7a 65 72 20  77 69 6e 64 6f 77 20 70  |m Sizer window p|
00000780  72 65 73 65 6e 74 73 20  74 68 65 20 6d 61 69 6e  |resents the main|
00000790  20 75 74 69 6c 69 74 79  20 6d 65 6e 75 3a 0a 0a  | utility menu:..|
000007a0  27 49 6e 66 6f 27 20 6c  65 61 64 73 20 74 6f 20  |'Info' leads to |
000007b0  61 20 73 74 61 6e 64 61  72 64 20 69 6e 66 6f 72  |a standard infor|
000007c0  6d 61 74 69 6f 6e 20 77  69 6e 64 6f 77 2e 0a 0a  |mation window...|
000007d0  27 43 6c 65 61 72 20 73  74 61 74 69 73 74 69 63  |'Clear statistic|
000007e0  73 27 20 77 69 6c 6c 20  63 6c 65 61 72 20 6f 75  |s' will clear ou|
000007f0  74 20 61 6e 79 20 74 65  6d 70 6c 61 74 65 20 66  |t any template f|
00000800  69 6c 65 20 63 75 72 72  65 6e 74 6c 79 20 6c 6f  |ile currently lo|
00000810  61 64 65 64 2c 20 61 6e  64 0a 72 65 6c 65 61 73  |aded, and.releas|
00000820  65 20 74 68 65 20 6d 65  6d 6f 72 79 20 69 74 20  |e the memory it |
00000830  75 73 65 64 2e 0a 0a 27  57 69 6e 64 6f 77 20 70  |used...'Window p|
00000840  6f 73 69 74 69 6f 6e 27  20 6c 65 61 64 73 20 74  |osition' leads t|
00000850  6f 20 61 20 77 69 6e 64  6f 77 20 77 68 69 63 68  |o a window which|
00000860  20 6c 65 74 73 20 79 6f  75 20 64 65 74 65 72 6d  | lets you determ|
00000870  69 6e 65 20 77 68 65 72  65 20 74 68 65 20 46 6f  |ine where the Fo|
00000880  72 6d 0a 53 69 7a 65 72  20 77 69 6e 64 6f 77 20  |rm.Sizer window |
00000890  61 70 70 65 61 72 73 20  6f 6e 20 74 68 65 20 73  |appears on the s|
000008a0  63 72 65 65 6e 2e 20 54  68 69 73 20 63 6f 72 72  |creen. This corr|
000008b0  65 73 70 6f 6e 64 73 20  74 6f 20 61 6e 20 69 6e  |esponds to an in|
000008c0  76 69 73 69 62 6c 65 20  67 72 69 64 2c 0a 61 6e  |visible grid,.an|
000008d0  64 20 77 68 65 6e 20 79  6f 75 20 63 68 61 6e 67  |d when you chang|
000008e0  65 20 73 63 72 65 65 6e  20 6d 6f 64 65 20 74 68  |e screen mode th|
000008f0  65 20 77 69 6e 64 6f 77  20 77 69 6c 6c 20 73 6e  |e window will sn|
00000900  61 70 20 74 6f 20 74 68  69 73 20 67 72 69 64 2e  |ap to this grid.|
00000910  20 28 54 68 69 73 0a 66  65 61 74 75 72 65 20 63  | (This.feature c|
00000920  61 6e 20 62 65 20 64 69  73 61 62 6c 65 64 20 62  |an be disabled b|
00000930  79 20 63 6c 69 63 6b 69  6e 67 20 41 64 6a 75 73  |y clicking Adjus|
00000940  74 20 6f 6e 20 74 68 65  20 73 6d 61 6c 6c 20 77  |t on the small w|
00000950  69 6e 64 6f 77 20 69 63  6f 6e 2c 20 77 68 69 63  |indow icon, whic|
00000960  68 0a 6d 61 6b 65 73 20  69 74 20 64 69 73 61 70  |h.makes it disap|
00000970  70 65 61 72 2e 29 0a 0a  27 53 61 76 65 20 73 74  |pear.)..'Save st|
00000980  61 74 69 73 74 69 63 73  27 20 6c 65 74 73 20 79  |atistics' lets y|
00000990  6f 75 20 73 61 76 65 20  6f 75 74 20 61 20 74 65  |ou save out a te|
000009a0  78 74 20 66 69 6c 65 20  6f 66 20 64 65 74 61 69  |xt file of detai|
000009b0  6c 65 64 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 0a  |led information.|
000009c0  61 62 6f 75 74 20 74 68  65 20 6c 6f 61 64 65 64  |about the loaded|
000009d0  20 74 65 6d 70 6c 61 74  65 73 2e 20 54 68 69 73  | templates. This|
000009e0  20 69 6e 63 6c 75 64 65  73 20 61 6c 6c 20 74 68  | includes all th|
000009f0  65 20 69 6e 66 6f 72 6d  61 74 69 6f 6e 20 73 68  |e information sh|
00000a00  6f 77 6e 20 69 6e 20 74  68 65 0a 46 6f 72 6d 20  |own in the.Form |
00000a10  53 69 7a 65 72 20 77 69  6e 64 6f 77 2c 20 61 6e  |Sizer window, an|
00000a20  64 20 69 6e 20 61 64 64  69 74 69 6f 6e 20 74 68  |d in addition th|
00000a30  65 72 65 20 69 73 20 69  6e 66 6f 72 6d 61 74 69  |ere is informati|
00000a40  6f 6e 20 61 62 6f 75 74  20 74 68 65 20 74 79 70  |on about the typ|
00000a50  65 20 61 6e 64 0a 63 6f  6e 74 65 6e 74 73 20 6f  |e and.contents o|
00000a60  66 20 61 6c 6c 20 74 68  65 20 69 63 6f 6e 73 20  |f all the icons |
00000a70  69 6e 20 65 61 63 68 20  77 69 6e 64 6f 77 2e 0a  |in each window..|
00000a80  0a 27 53 61 76 65 20 73  65 74 74 69 6e 67 73 27  |.'Save settings'|
00000a90  20 77 69 6c 6c 20 73 61  76 65 20 74 68 65 20 73  | will save the s|
00000aa0  63 72 65 65 6e 20 6c 6f  63 61 74 69 6f 6e 20 6f  |creen location o|
00000ab0  66 20 74 68 65 20 46 6f  72 6d 20 53 69 7a 65 72  |f the Form Sizer|
00000ac0  20 77 69 6e 64 6f 77 2c  0a 61 6c 6f 6e 67 20 77  | window,.along w|
00000ad0  69 74 68 20 74 68 65 20  73 74 61 74 65 20 6f 66  |ith the state of|
00000ae0  20 74 68 65 20 27 44 65  63 2f 48 65 78 27 20 62  | the 'Dec/Hex' b|
00000af0  75 74 74 6f 6e 2e 0a                              |utton..|
00000af7