lookupcombobox automatic dropdown upon entering component

lookupcombobox automatic dropdown upon entering component

I would like the lookupcombobox to automatically drop down showing the values, and highlighting the first entry when the cursor moves into the component. Doable?
Sign in to comment on this post

Thank you for your message. To accomplish this task, set TcxGridColumn's Properties.ImmediateDropDownWhenActivated property to True. Please refer to the "TcxCustomDropDownEditProperties.ImmediateDropDownWhenActivated" help topic for additional information.
If you wish to invoke the drop-down window immediately for stand-alone editors, handle their OnEnter event as follows:

Delphi
procedure Enter(Sender: TObject);
begin
TcxLookupComboBox(Sender).DroppedDown := true;
end;

posted @ 2024-08-28 15:55  汉学  阅读(11)  评论(0)    收藏  举报