Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ComboBoxEx - wie benutze ich die richtig? (https://www.delphipraxis.net/24453-comboboxex-wie-benutze-ich-die-richtig.html)

linacaro 21. Jun 2004 11:26


ComboBoxEx - wie benutze ich die richtig?
 
Hallo zusammen,
hab ne Frage zur TComboBoxEx. Ich will sie mit 4 16x16 Pixel Bildern füllen (kein Text).
Ich habe auch schon eine ImageList angelegt. Wenn ich ihr diese ImageList übergeben will (mit ComboBoxEx1.Image := ...) macht er das zwar, zeigt aber dann nichts an.
Was mach ich falsch?

Grüße

Dax 21. Jun 2004 11:41

Re: ComboBoxEx - wie benutze ich die richtig?
 
Versuch mal, die ImageList zur Designzeit zuzuordnen, ob's dann geht.

linacaro 21. Jun 2004 11:43

Re: ComboBoxEx - wie benutze ich die richtig?
 
hab ich ja gemacht. ich übergeb ihr die list erst zur designzeit :-(

Dax 21. Jun 2004 11:45

Re: ComboBoxEx - wie benutze ich die richtig?
 
[kurzin OH kuckt]

Leider finde ich keinen Fehler von dir...

Muetze1 21. Jun 2004 11:52

Re: ComboBoxEx - wie benutze ich die richtig?
 
Moin!

Hast du auch die Eigenschaft ImageIndex ordentlich gesetzt bei den Items??

MfG
Muetze1

kingsam 6. Jul 2004 22:01

Re: ComboBoxEx - wie benutze ich die richtig?
 
So benutzt Du die ComboBoxEx:
...
ComboboxEx1.Images:=Imagelist1;

procedure FillComboBoxEx1;
var
ExItem: TComboExItem;
I: Integer;
begin
for I:=0 to 5 do
begin
ExItem:=ComboboxEx1.ItemsEx.Add;
ExItem.Caption:='Irgendwas';
ExItem.ImageIndex:=I;
end;
end;

Grüße von Herbert


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:45 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