Class: Combo_Mixin
Class Hierarchy:
cObject

Mixin


Combo_MixinClass Definition
Properties
Integer
Allow_Blank_State
Integer
Combo_Sort_State
Integer
Default_Combo_Item
-1 means top
Integer
Deferred_State
Integer
ListRowCount
how many drop-down rows are required (0 = use size to determine number of rows)
Integer
ListWidth
width of dropped-down list (0=default width of edit)
boolean
pbPrivateAddingFocus
private, used by add_focus w/ set value
Functions and Procedures
Integer
Add_Focus(Handle hoParent)

Add_Form_To_List()

Combo_Add_Item(string sValue)
Integer
Combo_Current_Item()
get/set Combo_current_item serve no purpose as this deals with the
DF list of values (and not the windows position). There just isn't anything
you can do with this.

Combo_Delete_Data()

Combo_Delete_Item(Integer iItem)

Combo_Edit_Changed()

Combo_Fill_List()

combo_initialize_list()

Combo_Insert_Item(Integer iItem string sValue)

Combo_Item_Changed()
Integer
Combo_Item_Count()
Integer
Combo_Item_Matching(String sText)
String
Combo_Value(Integer item#)

Command(integer i1 integer i2)
Import_Class_Protocol Standard_Form_Mixin

Define_Combo_Mixin()

DoSetListWidth()

DoSetSize()

End_Define_Combo_Mixin()
integer
Key(integer iKy)
augment to check for keys pressed in dropped state. Most likely, when dropped
we will trap esc and return and pass all others through

OnCloseUp()
cancelled

OnDropDown()
cancelled
boolean
OnDropKey(integer iVKey boolean bIsAccelerator)
The following three messages are designed to handle accelerator key
handling when a list is dropped down. When a list is dropped, we want all
accelerator keys to be ignored. In addition, we want the return and enter
keys to roll the list up, if return is pressed the value should be updated
Called by key and Process_Accelerator when a list is dropped down and a
key is pressed. We pass the virtual key (not the df key) and a flag telling
us if this is an accelerator key (Tells us where it was called from)
Return: True if you, want to stop any other actions.
Currently this looks for return and escape.

Process_Accelerator(integer i1 integer i2)
note that we must test for both process_accelerator and Key because we
don't know if a key (e.g. esc=kCancel) has been assigned to on On_key or
not. If an on_key, process_accelerator is called, else Key is called
augment to check for keys pressed in dropped state. Most likely, when dropped
we will trap esc and return and ignore all others

Set(integer iTo)

Set(Integer item# String sValue)

Set(integer iTo)

Set(Integer iItem String sValue)
integer
Validate_Combo_Value()

WinCombo_Add_Insert_Value(integer mode integer iItem String sValue)
Internal: Send it the wrong values and watch the smoke!
Integer
WinCombo_Current_Item()
Integer
WinCombo_Item_Matching(String sText)
Perform the item match in the window's control
String
WinCombo_Value(Integer item#)