The ChoiceDialog object is two objects in one. It displays either a single or a dual drop down list. Setting the DualListBox property to vbFalse before calling DoModal displays a single drop down list. Setting the DualListBox property to vbTrue before calling DoModal displays dual drop down list. In a dual drop down list, for every item listed on the left, there is a series of items listed on the right.
Property |
Type |
Read Only/Write |
Description |
---|---|---|---|
DualListBox |
Boolean |
Read Write |
Set to vbTrue to display a dual drop down list. Default value is vbFalse. |
Method |
Return Type |
Parameters |
Description |
---|---|---|---|
AddItem(strValue) |
Int nItemOffset |
String |
Adds a value to the list. Use Chr(164) to separate values in a dual drop down list. The return value can be used when calling SetTextColor() |
GetSelection |
String |
Returns the value that was selected. |
|
ResetContent |
Clears the drop down list |
||
GetCount |
Number |
Returns the number of entries in the drop down list. |
|
SetTextColor |
Int nItemOffset, int nLineNumber, long lColor |
Sets the color for an entry in the drop down list. This only applies to single drop down lists. |
|
SetTitle |
String |
Sets the title for the UserChoice window. |
|
SetFont |
String FontName Int FontSize (12) Int Weight (400) |
Sets the display font for the UserChoice window. |