Def_Dialog R Dialog_Id[,X,Y,W,H],Title$,Type |
Dialog_Id |
Dialog identification number. |
X |
X-position of the upper left corner of the dialog box. |
Y |
Y-position of the upper left corner of the dialog box. |
W |
Width of the dialog box. |
H |
Height of the dialog box. |
Title$ |
Title of the dialog box. |
Type |
Dialog box type.
Type=0: Non-moveable, modal dialog box.
Type=1: Moveable, modal dialog box.
Type=2: Moveable, non-modal dialog box. |
Starts definition of a dialog box. Do not use Make_Dialog but rather the procedure
Def_Dialog available
starting with EasyGem 4.0, because this one does not contain any superfluous parameters
and the Dialog_Id
is returned already during the start of the definition. Moreover, you can determine
the position and size of the dialog box at the same time.
Note:Dialog
boxes are managed by EasyGem the same way as windows. This means you can apply the
functions of the Window Library to dialog boxes as well by using the dialog identification
number the same as a window identification number. For example, you can change the
dialog box size and position during runtime using Win_Setborder. |
D_Event Dialog_Id,R Object_No[,R
Line_No[,R Entry]] |
Dialog_Id |
Dialog identification number. |
Object_No |
Object number within the line. |
Line_No |
Line number within the dialog box. |
Entry |
Number of the menu item. |
Evaluates an event. EasyGem 4.0 now offers this command with a fourth
parameter, which makes it possible to evaluate menu items as well (e.g., cut, paste,
copy,...) while a modal dialog box is open. |
D_Input Line_No,Txt$[,Input_Len[,Flag]] |
Line_No |
Line number within the dialog box. |
Txt$ |
Text before the actual input field with the variation featuring 3
or 4 parameters.
Starting with version 4.0, EasyGem offers a version of this command with 2 parameters.
In this case you have to use Txt$ to pass a control string as with D_Button. This makes it possible to define more than one input field per line. |
Input_Len |
Length of the input field in letters. |
Flag |
May always be omitted. |
Defines an input line.
The field Dialog_Text$(Line_No[,Object_No],Dialog_Id)will list whatever the user has indicated. |
D_Popup
Line_No,Txt$,Popup_Id |
Line_No |
Line number within the dialog box. |
Txt$ |
Text before the button containing the pop-up menu. |
Popup_Id |
Identification number of the pop-up menu. First, of course, the pop-up
menu has to be defined with Def_Popup. |
Defines a button with pop-up menu. Use the flag field Dialog_Button%F(Line_No,Object_No,Dialog_Id) to specify the default item before the call and determine the selected
item after the call. |
D_Setaction
Dialog_Id,Line_No,Object_No,Act_Fun |
Dialog_Id |
Dialog identification number. |
Line_No |
Line number within the dialog box. |
Object_No |
Object number within the line. |
Act_Fun |
Address of an action function. Three parameters are passed to the
function. The function has to be a long integer type and defined as follows:
DEF FN My_Action(Dialog_Id,Line_No,Object_No)
Act_Fun=&FN My_Action(,,) |
Sets the action function of an object. After the definition, all action
functions are initially set to 0. For example, if you would like that a certain operation
is executed immediately upon clicking on a button (even before exiting the dialog
box with [OK]), you ca use this command to define an individual action function for
each object. The function is called as soon as the user releases the mouse button
over the selected object. |
Easy_Dialog
Dialog_Id
Easy_Dialog Box$,Dialog_Id[,R Object_No[,R Line_No]]
Easy_Dialog Dialog_Id,X,Y,R Object_No,R Line_No]] |
Box$ |
Has no significans but has allways to be included. |
Dialog_Id |
Dialog identification number. |
X |
X-position of the left upper corner. |
Y |
Y-position of the left upper corner. |
Object_No |
Object number within the line. |
Line_No |
Line number within the dialog box. |
Display the dialog box and manage all events. |