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/)
-   -   VirtualStringTree für die CE-11.3 (https://www.delphipraxis.net/213003-virtualstringtree-fuer-die-ce-11-3-a.html)

NoName1 6. Mai 2023 14:29

VirtualStringTree für die CE-11.3
 
Guten Tag,
ich habe eine Unit in der ich die VirtualStringTrees einstelle. In der CE10.4 ist noch alles in Ordnung. In der CE11.3 werden beim Compilieren
nur Fehler geworfen, dass alle Bezüge auf das VST nicht mehr compiliert werden können.

Hat jemand wissen darüber ob für das VirtualStringTree andere Optionen oder sonstige sich geändert hat?

Delphi-Quellcode:
procedure TOVST_Einstellung.Stell_Vst_Ein;
var
  aVST: TVirtualStringTree;
begin
  aVST := FVST;

  aVST.LineStyle := lsSolid; // Fehleranzeige
  aVST.Color := $00D0F8FF;
  with aVST.Colors do // Fehleranzeige
  begin
    HotColor := clFuchsia;
    TreeLineColor := clRed;
    FocusedSelectionColor := clBlack;
    UnfocusedSelectionColor := $0000C0FF;
    UnfocusedSelectionBorderColor := clRed;
  end;
  with aVST.TreeOptions do
  begin
    MiscOptions := MiscOptions + [toEditable, toAcceptOLEDrop, toCheckSupport, toFullRepaintOnResize, toInitOnSave];
    PaintOptions := PaintOptions + [toShowVertGridLines, toShowHorzGridLines, toShowRoot, toUseblendedImages,
    toUseBlendedSelection];
    SelectionOptions := SelectionOptions + [toExtendedFocus, toFullRowSelect, toRightClickSelect];
  end;

  aVST.CheckImageKind := ckSystemDefault;
  aVST.DragMode := dmAutomatic;
  aVST.DragType := dtOLE;
end;

Die aktuelle Version für das VirtualStringTree habe ich bei der JAM-Software herruntergeladen.
Aber auch die Installation aus der CE11.3 über GetIT funktioniert nicht.

Vielen Dank für Eure evtl. Hilfe

Alter Mann 6. Mai 2023 15:18

AW: VirtualStringTree für die CE-11.3
 
Hallo,

bei mir geht's:
Delphi-Quellcode:
uses
   VirtualTrees.Types;

procedure TForm1.Button1Click(Sender: TObject);
begin
  StellVstEin(Vst);
end;

procedure TForm1.StellVstEin(aVST : TVirtualStringTree);
begin
  aVST.LineStyle := lsSolid;
  aVST.Color := $00D0F8FF;
  with aVST.Colors do
  begin
    HotColor := clFuchsia;
    TreeLineColor := clRed;
    FocusedSelectionColor := clBlack;
    UnfocusedSelectionColor := $0000C0FF;
    UnfocusedSelectionBorderColor := clRed;
  end;
  with aVST.TreeOptions do
  begin
    MiscOptions := MiscOptions + [toEditable, toAcceptOLEDrop, toCheckSupport, toFullRepaintOnResize, toInitOnSave];
    PaintOptions:= PaintOptions + [toShowVertGridLines, toShowHorzGridLines, toShowRoot, toUseblendedImages, toUseBlendedSelection];
    SelectionOptions := SelectionOptions + [toExtendedFocus, toFullRowSelect, toRightClickSelect];
  end;

  aVST.CheckImageKind := ckSystemDefault;
  aVST.DragMode := dmAutomatic;
  aVST.DragType := dtOLE;
end;
Zitat:

Aber auch die Installation aus der CE11.3 über GetIT funktioniert nicht.
Was funktioniert nicht? Du musst schon etwas genauer werden.

[Edit] Ich habe 11.3CE und VST über GetIT installiert[/Edit]

mmw 6. Mai 2023 15:42

AW: VirtualStringTree für die CE-11.3
 
Hallo,

bei mir wurden dir *.res Dateien nicht gefunden, obwohl der Pfad mit den Dateien abwechselnd im Suchpfad des Project's bzw. im Biblothekspfad eingetragen waren.

Geholfen hat den '..\Virtual-TreeView\Source\' Pfad einzutragen.

runtergeladen habe ich die Komponente bei JAM bzw. bei GitHub

Gruß

NoName1 6. Mai 2023 16:45

AW: VirtualStringTree für die CE-11.3
 
Zitat:

Alter Mann
Alle Zuweisungen wie zum Bsp.:
aVST.LineStyle := lsSolid;
Alle MiscOptions, Alle PaintOptions usw.

Zitat:

by mmw
Der Pfad ist auch korrekt eingetragen

mmw 6. Mai 2023 17:32

AW: VirtualStringTree für die CE-11.3
 
Hallo,

die Unit 'VirtualTrees.Types' wird beim hinzufuegen des VST nicht automatisch
mit eingebunden.

Nach manuellen hinzufuegen funktioniert's bei mir.

Gruß

NoName1 6. Mai 2023 18:21

AW: VirtualStringTree für die CE-11.3
 
Hallo mmw
mit dem Einbinden von .Types lässt es sich wieder compilieren.
Danke für den Hinweis.


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