Autor Beitrag
Nano-Ware
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 7



BeitragVerfasst: Sa 27.08.11 18:00 
Hey


Wie bekomm ich es so hin wie im Anhang? Es geht nicht um die Einzelheiten. Eigentlich geht es nur um die Größe des Items

Danke
Einloggen, um Attachments anzusehen!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 27.08.11 18:51 
ViewStyle auf vsReport setzen und ne Image List zuweisen. Zusätzlich Spalten unter Columns erzeugen. Dann den ListItems die extra Spalten als Sub-Items zuweisen. HTH.

U.U. kann es nötig sein, sich da nen eigenen OnPaint-Handler zu bauen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Nano-Ware Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 7



BeitragVerfasst: Sa 27.08.11 23:32 
Wie gesagt es geht um die Größe der Items. Ich finde leider keine Möglichkeit die Höhe anzupassen bei mir sind die Items immer nur normalgroß eben so wie bei ner listbox o.ä

Vielleicht gibt es ja noch Möglichkeiten.

Danke
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: So 28.08.11 02:24 
Das ist schon ganz richtig so. Die einfachste Lösung: ändere die Größe der Bilder in der ImageList.
beispiel


Alles Weitere ist dann OwnerDraw:= true und ein paar Ereignishandler.
Einloggen, um Attachments anzusehen!
_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Nano-Ware Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 7



BeitragVerfasst: So 28.08.11 09:14 
Okay, darauf bin ich erst garnicht gekommen. Ich hab aber leider noch nie irgendeinen Ereignishandler geändert. Ich bin mir nämlich noch nicht sicher, ob ich für jedes ListView-Item später ein Bild zur Verfügung habe.
Also vorweg ich habe auch noch nie eine Komponente erstellt.. Wäre es möglich, dass ihr mir erklären könntet, wie das geht?