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 TListView Group Icons verschwinden beim ausfuehren (https://www.delphipraxis.net/140512-tlistview-group-icons-verschwinden-beim-ausfuehren.html)

Win32.API 19. Sep 2009 16:25


TListView Group Icons verschwinden beim ausfuehren
 
Liste der Anhänge anzeigen (Anzahl: 2)
Hallo,

wenn ich einen TListView mit GroupView erstelle sieht zur Designzeit alles super aus, aber zur Runtime sind die Icons verschwunden.

Hat jemand eine Idee warum?

Delphi-Quellcode:
var
  lv1: TListView;
begin
  lv1 := TListView.Create(Self);
  with lv1_ do
  begin
    Name := 'lv1';
    Parent := Self;
    Left := 13;
    Top := 12;
    Width := 216;
    Height := 176;
    with Columns.Add do begin
      Caption := 'TListView';
      Width := 211;
    end;
    with Groups.Add do begin
      Header := '1';
      GroupID := 0;
      State := [lgsNormal];
      HeaderAlign := taLeftJustify;
      FooterAlign := taLeftJustify;
      TitleImage := 0;
      ExtendedImage := -1;
    end;
    with Groups.Add do begin
      Header := '2';
      GroupID := 1;
      State := [lgsNormal];
      HeaderAlign := taLeftJustify;
      FooterAlign := taLeftJustify;
      TitleImage := 1;
      ExtendedImage := -1;
    end;
//  Items := // please assign
    GroupHeaderImages := il1;
    GroupView := True;
    TabOrder := 0;
    ViewStyle := vsReport;
  end;
Grueße,
Win32


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