Date Property
Specifies whether a TextBox will be used for entering date data
Syntax:
Date <lValue>
DisabledBackColor Property
Specifies the background color for a disabled\/read-only GUI object
Syntax:
DisabledBackColor <anColor>
Must be specified as a three elements numeric array containing red, green and blue components
DisabledFontColor Property
Specifies the text color for a disabled\/read-only GUI object
Syntax:
DisabledFontColor <anColor> (Control Definition)
<WindowName>.<ControlName>.DisabledFontColor := anColor
<WindowName>.<ControlName>.DisabledFontColor --> anColor
This should be specified as a three element numeric array containing red, green and blue components.
DisplayEdit Property
Specified whether a ComboBox control can be edited
Syntax:
DisplayEdit <lValue>
Sample:
#include "hmg.ch"
Function Main
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
TITLE 'ComboBox Demo' ;
MAIN
DEFINE MAIN MENU
DEFINE POPUP 'Test'
MENUITEM 'Get Value' ACTION MsgInfo(Str(Form_1.Combo_1.Value))
MENUITEM 'Set Value' ACTION Form_1.Combo_1.Value := 1
MENUITEM 'Get DisplayValue' ACTION MsgInfo( Form_1.Combo_1.DisplayValue )
MENUITEM 'Set DisplayValue' ACTION Form_1.Combo_1.DisplayValue := 'New Text'
MENUITEM 'Set Item' ACTION Form_1.Combo_1.Item (3) := 'New Text'
MENUITEM 'Get Item' ACTION MsgInfo ( Form_1.Combo_1.Item (3) )
END POPUP
END MENU
@ 10,10 COMBOBOX Combo_1 ;
ITEMS { 'A' , 'B' , 'C' } ;
VALUE 1 ;
DISPLAYEDIT ;
ON DISPLAYCHANGE PlayBeep()
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
DisplayItems Property
Set data display in Browse Control
Syntax:
DisplayItems <aaValues>
This property allows to control data display in the control. It must be specified as an array \(one element for each browse column\). Each element \(if specified\) must be a two dimensional array. The first column in the array must contain the text to be shown to the user. The second column must contain the ID for each array row. The array will be searched for a corresponding ID in the table to show the right text in each cell. If no correspondence is found, the cell will be blank.
DisplayValue Property Specifies or retrieves the value for the editable part of a ComboBox control
Syntax:
DisplayValue <lValue> (Control Definition)
<ParentWindowName>.<ControlName>.DisplayValue := nCol
<ParentWindowName>.<ControlName>.DisplayValue --> nCol
DragItems Property
Specifies whether the items in a ListBox can be arranged by the user
Syntax:
DragItems <lValue>
DropDown Property
Specifies whether a Toolbar button will be used to open a dropdown menu
Syntax:
DropDown <lValue>
The button will show separate section containing a down arrow to open the menu.
DEFINE TOOLBAR ToolBar_a BUTTONSIZE 30,30 FONT 'Arial' SIZE 8 FLAT
BUTTON Button_1a ;
CAPTION '&Undo' ;
PICTURE 'button4.bmp' ;
ACTION MsgInfo('Undo')
BUTTON Button_3a ;
CAPTION '&Close' ;
PICTURE 'button6.bmp' ;
ACTION MsgInfo('Close') ;
DROPDOWN
DEFINE DROPDOWN MENU BUTTON Button_3a
ITEM 'Menu 1' ACTION MsgInfo('Menu 1')
ITEM 'Menu 2' ACTION MsgInfo('Menu 2')
END MENU
END TOOLBAR
DroppedWidth
Specifies the width of the list dropped when a ComboBox control arrow is clicked
Syntax:
DroppedWidth <lValue>
DynamicBackColor Property
Dynamically Set The Background Color For a Grid Or Browse Cell
Syntax:
DynamicBackColor <abValues>
Specifies a codeblock array (one element per column) evaluated for each cell at any Grid or Browse change to determine the background color.
This.CellRowIndex, This.CellColIndex and This.CellValue variables are available at codeblock evaluation.
Sample:
bColor := { || if ( This.CellRowIndex/2 == int(This.CellRowIndex/2) , ;
{128,128,128} , {192,192,192} ) }
DYNAMICBACKCOLOR { bColor , bColor, bColor, bColor, bColor, bColor }
DynamicDisplay Property
Specifies a code block array containing field dysplay-processing data for a data-bound Grid control.
Syntax:
DynamicDisplay <abValues>
DynamicForeColor Property
Dynamically Set The Foreground Color For a Grid Or Browse Cell
Syntax:
DynamicForeColor <abValues>
Specifies a codeblock array (one element per column) evaluated for each cell at any Grid or Browse change to determine the foreground color.
This.CellRowIndex, This.CellColIndex and This.CellValue variables are available at codeblock evaluation.
Sample:
bColor := { || if ( This.CellRowIndex/2 == int(This.CellRowIndex/2) , ;
{128,128,128} , {192,192,192} ) }
DYNAMICBACKCOLOR { bColor , bColor, bColor, bColor, bColor, bColor