![]() |
VirtualTrees - Wo stellt man denn die Delphiversion ein?
Wo stellt man denn beim VST die Delphiversion ein? :oops:
[dcc32 Fehler] uDirectoryTreeView.pas(72): E2010 Inkompatible Typen: 'string' und 'WideString' // ***
Delphi-Quellcode:
constructor TDirectoryTreeView.Create(AOwner: TComponent);
begin inherited Create(AOwner); FVST := TVirtualStringTree.Create(Self); FVST.Parent := Self; FVST.Top := 0; FVST.Left := 0; FVST.Align := alClient; FVST.AlignWithMargins := true; FVST.Margins.Top := 9; FVST.Margins.Left := 9; FVST.Margins.Bottom := 9; FVST.Margins.Right := 9; FVST.StateImages := ImageList; FVST.OnChange := VSTChange; FVST.OnExpanding := VSTExpanding; FVST.OnGetText := VSTGetText; // **** FVST.OnGetImageIndex := VSTGetImageIndex; FVST.OnKeyPress := VSTKeyPress; FDirectoryTree := TVirtualDirectoryTree.Create(FVST); end; |
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Zitat:
|
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Umgekehrt. Ich hab die V5.3.0: (04 Jan 2014) unter D2007 laufen.
Jetzt aber wollte ich ein Projekt mit der neuen Starter 10 kompilieren. Ich dachte eigentlich, daß das automatisch geht: Das soll ja jetzt nicht mehr ausgeführt werden:
Delphi-Quellcode:
Aber, wo stellt man denn die CompilerVersion ein. Ich finde da keine inc Datei?
{$if CompilerVersion < 20}
type UnicodeString = WideString; RawByteString = AnsiString; PByte = PAnsiChar; {$ifend} |
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
CompilerVersion ist kein Cond. Define sondern eine Konstante, die in System deklariert wird. Eingestellt werden muss da also nichts.
|
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Zitat:
![]() Zitat:
|
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Ok. Dank euch. Dann lad ich mir 5.5 runter.
|
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Zitat:
|
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Lade doch einfach die neuste Version aus dem Repository herunter (am einfachsten mit TortoiseGit).
![]() |
AW: VirtualTrees - Wo stellt man denn die Delphiversion ein?
Zitat:
Delphi-Quellcode:
TDirectoryTreeView.VSTGetText(Sender: TBaseVirtualTree;
Node: PVirtualNode; Column: TColumnIndex; TextType: TVSTTextType; var CellText: UnicodeString); begin CellText := FDirectoryTree.Caption[Node]; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:37 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