O orhan Member Licensed User May 15, 2008 #1 Hi, I upgraded to version 6.30, and liked the idea to use "Device (Force QVGA)" compilation, and for this I have to use "Optimized Compilation". I have some problems with "Choose Folder" sample I found on forum, and successfully used it without "Optimized Compilation". Can someone have a look to the sample attached and make it work with "Optimized Compilation" ? Thanks! Attachments Test_LoadFile.zip 15.9 KB · Views: 266
Hi, I upgraded to version 6.30, and liked the idea to use "Device (Force QVGA)" compilation, and for this I have to use "Optimized Compilation". I have some problems with "Choose Folder" sample I found on forum, and successfully used it without "Optimized Compilation". Can someone have a look to the sample attached and make it work with "Optimized Compilation" ? Thanks!
agraham Expert Licensed User Longtime User May 15, 2008 #2 Check this thread http://www.b4x.com/forum/questions-help-needed/1987-unable-cast-object-treeview-node.html
Check this thread http://www.b4x.com/forum/questions-help-needed/1987-unable-cast-object-treeview-node.html
Erel B4X founder Staff member Licensed User Longtime User May 15, 2008 #3 You can find an updated version of FolderChooser under: {Basic4ppc Folder}\Samples
O orhan Member Licensed User May 15, 2008 #4 Hi, I made the modification, as Agraham suggested, and also the sample from Erel. But on Device I get the same error. "An error occurred on sub_app_start. An error message cannot be displayed ...." On device I have .Net CF v2.0 installed.
Hi, I made the modification, as Agraham suggested, and also the sample from Erel. But on Device I get the same error. "An error occurred on sub_app_start. An error message cannot be displayed ...." On device I have .Net CF v2.0 installed.
Erel B4X founder Staff member Licensed User Longtime User May 15, 2008 #5 First you should install this optional resource: http://www.b4x.com/forum/questions-help-needed/870-error-messages-device.html (see the 10th post). Now you will get a more descriptive error message. Did you copy the two image files?
First you should install this optional resource: http://www.b4x.com/forum/questions-help-needed/870-error-messages-device.html (see the 10th post). Now you will get a more descriptive error message. Did you copy the two image files?
O orhan Member Licensed User May 15, 2008 #6 My bad, I didn't copy the image files. I supposed that they were embedded in the executable. Thanks!
Erel B4X founder Staff member Licensed User Longtime User May 15, 2008 #7 Currently FolderChooser loads the two files at runtime. If you want you can add an ImageList with the two image files and change: B4X: tree.AddImage1(AppPath & "\folder.bmp") tree.AddImage1(AppPath & "\openFolder.bmp") To: B4X: tree.AddImage1(ImageList1.Item(0)) tree.AddImage1(ImageList1.Item(1)) That will cause the images to be embedded in the executable.
Currently FolderChooser loads the two files at runtime. If you want you can add an ImageList with the two image files and change: B4X: tree.AddImage1(AppPath & "\folder.bmp") tree.AddImage1(AppPath & "\openFolder.bmp") To: B4X: tree.AddImage1(ImageList1.Item(0)) tree.AddImage1(ImageList1.Item(1)) That will cause the images to be embedded in the executable.
O orhan Member Licensed User May 15, 2008 #8 Just one more question that is not related with "ChooseFOlder", but about "Optimized Compilation" I get errot CS1002: ; expected datafile = AppPath & "\Database\" VesselName.text & ".csv"
Just one more question that is not related with "ChooseFOlder", but about "Optimized Compilation" I get errot CS1002: ; expected datafile = AppPath & "\Database\" VesselName.text & ".csv"
Erel B4X founder Staff member Licensed User Longtime User May 15, 2008 #9 You are missing an ampersand: B4X: datafile = AppPath & "\Database\" [COLOR=Red][B]&[/B][/COLOR] VesselName.text & ".csv"
You are missing an ampersand: B4X: datafile = AppPath & "\Database\" [COLOR=Red][B]&[/B][/COLOR] VesselName.text & ".csv"
O orhan Member Licensed User May 15, 2008 #10 Too much coffee! I think I need some rest! Thanks again
DaveW Active Member Licensed User Longtime User Nov 5, 2008 #11 Erel said: Currently FolderChooser loads the two files at runtime. If you want you can add an ImageList with the two image files and change: B4X: tree.AddImage1(AppPath & "\folder.bmp") tree.AddImage1(AppPath & "\openFolder.bmp") To: B4X: tree.AddImage1(ImageList1.Item(0)) tree.AddImage1(ImageList1.Item(1)) That will cause the images to be embedded in the executable. Click to expand... Small point, the new lines should be: tree.AddImage2(ImageList1.Item(0)) tree.AddImage2(ImageList1.Item(1))
Erel said: Currently FolderChooser loads the two files at runtime. If you want you can add an ImageList with the two image files and change: B4X: tree.AddImage1(AppPath & "\folder.bmp") tree.AddImage1(AppPath & "\openFolder.bmp") To: B4X: tree.AddImage1(ImageList1.Item(0)) tree.AddImage1(ImageList1.Item(1)) That will cause the images to be embedded in the executable. Click to expand... Small point, the new lines should be: tree.AddImage2(ImageList1.Item(0)) tree.AddImage2(ImageList1.Item(1))