A MENUBAR is a horizontal bar that appears at the top of your dialog just below the title bar. A menu bar contains menu items. Generally, menu items displayed in the menu bar cause drop-down menus to be displayed when selected by the user. WIL Dialogs support both drop down and context menus. The WIL Dialog Menu Editor is now provided with the WIL Dialog Editor to help design the menu structure. Return Value:The MENUBAR control requires a Dialog Callback Procedure to handle the users selections. The easiest way to accomplish this is:
Control Definition:
<dlg-variable>nn =`x, y, width, height, type, control-name`
For Example: MyDialog003=`000,000,000,000,MENUBAR,"Dialog_Bar"`
Event OptionsUse the DialogProcOptions function to control when your User-Defined-Callback procedure is called by its associated dialog. You can also use it to control your dialog's behavior, while your procedure is executing. You usually establish callback events during the first call to the procedure i.e., event 0, but this can be done during any call.
Dialog Callback Procedure Function OptionsDialogControlGet function returns text and state information associated with a control.
DialogControlSet function changes the text or appearance of a control.
DialogControlState function changes a control’s style or gives control input focus.
|
§ Dialog § Defining the Dialog Controls
Control Types § Calendar § Checkbox § Editbox § Groupbox § Itembox § MenuBar § MenuItem § Picture § Spinner § VaryText
|