From 05ce0dbd6c6b1e688e2196899f70e35906e2d3fe Mon Sep 17 00:00:00 2001 From: graemeg Date: Wed, 13 Feb 2008 21:43:46 +0000 Subject: * Treeview example should now fix the image paths at runtime, using the correct directory separators. --- examples/gui/treeviewtest/treeviewtest.lpr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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); -- cgit v1.2.3-70-g09d2