![]() |
Combobox mit horizontaler Scrollbar
Hallo,
ich habe eine Combobox. Der Item-text ist sehr breit, so dass eine horizontale Scrollbar benötigt wird. Wie funktioniert das? :wall: Danke! |
Re: Combobox mit horizontaler Scrollbar
Hallo,
Das scheint ziemlich aufwändig zu sein. Siehe z.B ![]() Wenn du nur die Breite der Dropdown Liste vergrössern möchtest, kannst du so vorgehen: Sende der Combobox eine CB_SETDROPPEDWIDTH Nachricht und gibt die Breite in Pixeln an.
Delphi-Quellcode:
ComboBox1.Perform(CB_SETDROPPEDWIDTH, 300, 0);
|
Re: Combobox mit horizontaler Scrollbar
einfach mal so versucht
Delphi-Quellcode:
geht hier aber nicht,
// falls WS_HSCROLL noch nicht gesetzt ist
SetWindowLong(ComboBox1.Handle, GWL_STYLE, GetWindowLong(ComboBox1.Handle, GWL_STYLE) or WS_HSCROLL); ComboBox1.Perform(CB_SETHORIZONTALEXTENT, 300, 0); wobei dieses och nichts bring:
Delphi-Quellcode:
ComboBox1.Perform(CB_SETDROPPEDWIDTH, 300, 0);
|
Re: Combobox mit horizontaler Scrollbar
Zitat:
Nämlich im OnDropDown |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz