In an effort to better support multiple platforms, tiUtils was segregated with platform dependent code placed in subfolders of \Core in a new tiUtils_Impl.inc file. For Win32, just add [your\tiOPF\path]\Core\Windows to your options library path. You'll find this inc file there. (There's an equivalent one in OSX).
Even so, we want to improve cross-platform support without drowning in {$IFDEF} directives, so further adjustments might be made over time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[DCC Error] tiDataset.pas(488): E2029 $IFEND expected but $ENDIF found [DCC Error] tiDataset.pas(511): E2029 $IFEND expected but $ENDIF found [DCC Error] tiDataset.pas(1472): E2029 $IFEND expected but $ENDIF found [DCC Error] tiDataset.pas(2016): E2029 $IFEND expected but $ENDIF found
I change directive to $IFEND.
I install last VirtualTreeView.
Removed tiVirtualTrees from project tiOPFGUIXE and add tiVirtualTreesNEW.
Compile and get few errors:
[DCC Error] tiVirtualTreesNEW.pas(47): E2137 Method 'GetText' not found in base class [DCC Error] tiVirtualTreesNEW.pas(48): E2137 Method 'SetText' not found in base class [DCC Error] tiVirtualTreesNEW.pas(86): E2137 Method 'PaintNormalText' not found in base class [DCC Error] tiVirtualTreesNEW.pas(87): E2137 Method 'PaintStaticText' not found in base class [DCC Error] tiVirtualTreesNEW.pas(167): E2003 Undeclared identifier: 'ShowError' [DCC Error] tiVirtualTreesNEW.pas(203): E2003 Undeclared identifier: 'ShowError' [DCC Error] tiVirtualTreesNEW.pas(248): E2003 Undeclared identifier: 'ShowError' [DCC Error] tiVirtualTreesNEW.pas(364): E2003 Undeclared identifier: 'InitializeTextProperties' [DCC Error] tiVirtualTreesNEW.pas(391): E2003 Undeclared identifier: 'UnfocusedColor' [DCC Error] tiVirtualTreesNEW.pas(408): E2003 Undeclared identifier: 'FFontChanged' [DCC Error] tiVirtualTreesNEW.pas(417): E2003 Undeclared identifier: 'UnfocusedColor' [DCC Error] tiVirtualTreesNEW.pas(512): E2003 Undeclared identifier: 'UnfocusedColor' [DCC Fatal Error] tiVTListView.pas(306): F2063 Could not compile used unit 'tiVirtualTreesNEW.pas'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is someone else's change but I have had no problems with it. There were changes in the compiler directives in Delphi from XE onwards.
b) VirtualTreeview
A side effect of making tiVirtualTrees work with the original code is a handful of minor changes. Yes, these have to be applied whenever that code changes but it has not been a problem for me (only updating VT code occasionally).
I have submitted the changes to the new supporter of VT (jam-software).
Good catch. Missing from last update.
It has now been added.
Another error.
[DCC Fatal Error] tiUtils.pas(729): F1026 File not found: 'tiUtils_Impl.inc'
I tryed compile in win32.
In an effort to better support multiple platforms, tiUtils was segregated with platform dependent code placed in subfolders of \Core in a new tiUtils_Impl.inc file. For Win32, just add [your\tiOPF\path]\Core\Windows to your options library path. You'll find this inc file there. (There's an equivalent one in OSX).
Even so, we want to improve cross-platform support without drowning in {$IFDEF} directives, so further adjustments might be made over time.
OK but equivalent of tiUtils_Impl.inc for Win32 missing too in git.
Grrr. Apologies. We'll get this right eventually. There now.
[DCC Error] tiDataset.pas(488): E2029 $IFEND expected but $ENDIF found
[DCC Error] tiDataset.pas(511): E2029 $IFEND expected but $ENDIF found
[DCC Error] tiDataset.pas(1472): E2029 $IFEND expected but $ENDIF found
[DCC Error] tiDataset.pas(2016): E2029 $IFEND expected but $ENDIF found
I change directive to $IFEND.
I install last VirtualTreeView.
Removed tiVirtualTrees from project tiOPFGUIXE and add tiVirtualTreesNEW.
Compile and get few errors:
[DCC Error] tiVirtualTreesNEW.pas(47): E2137 Method 'GetText' not found in base class
[DCC Error] tiVirtualTreesNEW.pas(48): E2137 Method 'SetText' not found in base class
[DCC Error] tiVirtualTreesNEW.pas(86): E2137 Method 'PaintNormalText' not found in base class
[DCC Error] tiVirtualTreesNEW.pas(87): E2137 Method 'PaintStaticText' not found in base class
[DCC Error] tiVirtualTreesNEW.pas(167): E2003 Undeclared identifier: 'ShowError'
[DCC Error] tiVirtualTreesNEW.pas(203): E2003 Undeclared identifier: 'ShowError'
[DCC Error] tiVirtualTreesNEW.pas(248): E2003 Undeclared identifier: 'ShowError'
[DCC Error] tiVirtualTreesNEW.pas(364): E2003 Undeclared identifier: 'InitializeTextProperties'
[DCC Error] tiVirtualTreesNEW.pas(391): E2003 Undeclared identifier: 'UnfocusedColor'
[DCC Error] tiVirtualTreesNEW.pas(408): E2003 Undeclared identifier: 'FFontChanged'
[DCC Error] tiVirtualTreesNEW.pas(417): E2003 Undeclared identifier: 'UnfocusedColor'
[DCC Error] tiVirtualTreesNEW.pas(512): E2003 Undeclared identifier: 'UnfocusedColor'
[DCC Fatal Error] tiVTListView.pas(306): F2063 Could not compile used unit 'tiVirtualTreesNEW.pas'
a) $IFEND vs $ENDIF
This is someone else's change but I have had no problems with it. There were changes in the compiler directives in Delphi from XE onwards.
b) VirtualTreeview
A side effect of making tiVirtualTrees work with the original code is a handful of minor changes. Yes, these have to be applied whenever that code changes but it has not been a problem for me (only updating VT code occasionally).
I have submitted the changes to the new supporter of VT (jam-software).
Check the issue here:
https://code.google.com/p/virtual-treeview/issues/detail?id=438
and the various attachments. The .patch file should be all you need to get it going.