DoDisplayCheckBox - DataList
Displays the appropriate checkbox bitmap in the passed iItm
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| iItm | Integer | The item number |
| bSt | Integer | Checked state- If true, item is checked |
Syntax
Procedure DoDisplayCheckBox Integer iItm Integer bSt
Call Example
Send DoDisplayCheckBox iItm bSt
Description
The DoDisplayCheckbox message displays the appropriate checkbox bitmap in the passed iItm. One of four checkboxes is displayed based on the values of bSt and the item's item_select_state.
| Data Value | Appearance | Bitmap Name |
|---|---|---|
| bSt=True Item_select_state=True | A red check mark inside a light grey (disabled) border ChkOnD.bmp | |
| bSt=False Item_select_state=True | An empty light grey (disabled) checkbox ChkOffD.bmp | |
| bSt=True Item_select_state=False | A red check mark inside a checkbox with a dark (enabled) border ChkOnE.bmp | |
| bSt=False Item_select_state=False | An empty checkbox with a dark (enabled) border ChkOffE.bmp |
This message will normally be sent from within entry_display and is used to display checkbox bitmaps for an item.
Begin_Row
Entry_Item Customer.Number
Entry_Item Customer.Cust_Name
Entry_Item ("") // we will place our bitmap here
End_Row
:
Procedure Entry_Display integer i1 integer i2
integer iBase
integer bIsOver
Forward send entry_display i1 i2 // normal display
Move (Customer.Balance >Customer.Credit_Limit) to bIsOver
Get base_item to iBase // Item value of first column
Send DoDisplayCheckBox (iBase +2) bIsOver
End_Procedure