9.0
110
[User Dialog Item]...
End
Dialog
Group
User Dialog
Description
Define a UserDialog type to be used later in a Dim As UserDialog statement.
Parameter Description
X This numeric value is the distance from the left ed
g
e of the screen to the left ed
g
e o
f
the dialog box. It is measured in 1/8ths of the average character width for the
dialog's font. If this is omitted then the dialog will be centered.
Y This numeric value is the distance from the to
p
ed
g
e of the screen to the to
p
ed
g
e o
f
the dialog box. It is measured in 1/12ths of the average character width for the
dialog's font. If this is omitted then the dialog will be centered.
DX This number value is the width. It is measured in 1/8ths of the average character
width for the dialog's font.
DY This number value is the hei
g
ht. It is measured in 1/12ths of the character hei
g
ht fo
r
the dialog's font.
Title$ This string value is the title of the user dialo
g
. If this is omitted then there is no title.
dialogfunc This is the function name that implements the DialogFunc for this UserDialog. If this
is omitted then the UserDialog doesn't have a dialogfunc.
User Dialog Item
One of: CancelButton, CheckBox, ComboBox, DropListBox, GroupBox, ListBox, MultiListBox, OKButton,
OptionButton
, OptionGroup, PushButton, Text, TextBox.
See Also: Dim As UserDialog.
Example
Sub Main
Begin Dialog
UserDialog 200,120
Text
10,10,180,15,"Please push the OK button"
OKButton
80,90,40,20
End
Dialog
Dim
dlg As UserDialog
Dialog
dlg ' show dialog (wait for ok)
End
Sub
Big-endian definition
Multiple byte data values (not strings) are stored with the highest order byte first. For example, the long integer
&H01020304 is stored as this sequence of four bytes: &H01, &H02, &H03 and &H04. A Binary or Random file
written using Put
uses little-endian format so that it can be read using Get on any machine. (Big-endian machines,
like the Power-PC, reverse the bytes as they are read by Get
or written by Put.)
See Also: Dir( )
, GetAttr( ), SetAttr( ).










