Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: VCL / WinForms / Controls (https://www.delphipraxis.net/24-library-vcl-winforms-controls/)
-   -   Delphi ComboBox Auf- oder Zuklappen (https://www.delphipraxis.net/6072-combobox-auf-oder-zuklappen.html)

Daniel B 28. Jun 2003 13:58


ComboBox Auf- oder Zuklappen
 
Hallo,

hiermit kann man auf Wunsch eine ComboBox einfach auf- oder zuklappen.
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
//AUF
begin
  SendMessage(ComboBox1.Handle, CB_SHOWDROPDOWN, 1, 0);
end;

procedure TForm1.Button3Click(Sender: TObject);
//ZU
begin
  SendMessage(ComboBox1.Handle, CB_SHOWDROPDOWN, 0, 0);
end;
Grüsse, Daniel :hi:

[edit=Phoenix]Typo in Titel korrigiert. Mfg, Phoenix[/edit]


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz