Automatically displaying combo box's drop down list on field entry 
Author Message
 Automatically displaying combo box's drop down list on field entry

I'm using Delphi 1.02 and Infopower 2.02.  However, this question could
apply to Delphi w/o Infopower.

The TwwDBComboBox and TwwDBLookupCombo components have an
AutoDropDown property that displays the drop down list when a keystroke
is entered.  I would like do display the drop down list when the field is
entered.

The field is in a grid.  I've tried using the DropDown method in the
OnEnter event of the combo box, using the DropDown method in the grid's
OnColEnter event based on the value of GetActiveCol, and using
ShowMessage(ComboBox.Handle, CB_SHOWDROPDOWN, Integer(True), 0);
in the grid's OnColEnter event based on the value of GetActiveCol.  None
of these work.

Any ideas?  Thanks,

Jon Robertson
Arkansas CAMA Technology



Tue, 11 May 1999 03:00:00 GMT
 Automatically displaying combo box's drop down list on field entry

i normally use the following code to perform this:

            SendMessage(Ctrl.handle, CB_SHOWDROPDOWN, 1, 0);
            PostMessage(Ctrl.handle, CB_SETCURSEL, 0, 0);

hope it helps



Quote:
> I'm using Delphi 1.02 and Infopower 2.02.  However, this question could
> apply to Delphi w/o Infopower.

> The TwwDBComboBox and TwwDBLookupCombo components have an
> AutoDropDown property that displays the drop down list when a keystroke
> is entered.  I would like do display the drop down list when the field is
> entered.

> The field is in a grid.  I've tried using the DropDown method in the
> OnEnter event of the combo box, using the DropDown method in the grid's
> OnColEnter event based on the value of GetActiveCol, and using
> ShowMessage(ComboBox.Handle, CB_SHOWDROPDOWN, Integer(True), 0);
> in the grid's OnColEnter event based on the value of GetActiveCol.  None
> of these work.

> Any ideas?  Thanks,

> Jon Robertson
> Arkansas CAMA Technology



Fri, 14 May 1999 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Adding a Heading for Combo/List box Drop Down list

2. Help Drop Down a Combo box automatically !!?

3. Thanks for the Help (Combo Box Automatically Drops down)

4. automatically dropping down a combo list

5. Combo-box drop-down + list-items-pairs in v9.1b

6. combo box drop down show 2 fields

7. Data combo drop down automatically?

8. ACCESS Multilevel Combo Drop Down Boxes

9. Drop down combo boxes to control recordset...

10. drop-down combo box

11. OPAL - Combo-box/Drop-down-edit Hijinks

12. Combo Box Drop Down


 
Powered by phpBB® Forum Software