summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-13 21:43:46 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-13 21:43:46 +0000
commit05ce0dbd6c6b1e688e2196899f70e35906e2d3fe (patch)
tree717c097b0f8c9f0f189e346e3894cfde87e66da6 /examples
parent7d789a8862bd372d4a6a647cc75a95b7c95979cf (diff)
downloadfpGUI-05ce0dbd6c6b1e688e2196899f70e35906e2d3fe.tar.xz
* Treeview example should now fix the image paths at runtime, using the correct directory separators.
Diffstat (limited to 'examples')
-rw-r--r--examples/gui/treeviewtest/treeviewtest.lpr4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gui/treeviewtest/treeviewtest.lpr b/examples/gui/treeviewtest/treeviewtest.lpr
index f8343fc6..2ef9c974 100644
--- a/examples/gui/treeviewtest/treeviewtest.lpr
+++ b/examples/gui/treeviewtest/treeviewtest.lpr
@@ -58,8 +58,8 @@ begin
// create a image list
imagelist := TfpgImageList.Create;
- imagelist.AddItemFromFile('../../../images/folder_16.bmp', 0);
- imagelist.AddItemFromFile('../../../images/menu_preferences_16.bmp', 1);
+ imagelist.AddItemFromFile(SetDirSeparators('../../../images/folder_16.bmp'), 0);
+ imagelist.AddItemFromFile(SetDirSeparators('../../../images/menu_preferences_16.bmp'), 1);
// create a treeview
tree := TfpgTreeView.Create(self);