ciprian Active Member Licensed User Longtime User Oct 3, 2013 #1 Hi there. In my app, i wish to let the user change icons from a file and use it into a list. What is the best way to do it and have something like the image from ahaShareLibrary in here? Thank you.
Hi there. In my app, i wish to let the user change icons from a file and use it into a list. What is the best way to do it and have something like the image from ahaShareLibrary in here? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2013 #2 You can use ContentChooser to let the user choose an image. Upvote 0
ciprian Active Member Licensed User Longtime User Oct 4, 2013 #3 Thank you EREL But how can i choose from file/DirAssets folder? Last edited: Oct 4, 2013 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2013 #4 This cannot be done with ContentChooser. You will need to implement a chooser in your code. You can use CustomListView class and add the icons from File.DirAssets. Upvote 0
This cannot be done with ContentChooser. You will need to implement a chooser in your code. You can use CustomListView class and add the icons from File.DirAssets.
ciprian Active Member Licensed User Longtime User Oct 6, 2013 #5 Ok EREL, thank you. I will try this. Upvote 0
Olaan Expert Licensed User Longtime User Oct 7, 2013 #6 Hi ciprian, If you could succeed it,please share your completely coding. I need to learn this. Thank you in advance. P.S. I would like to ask as same as this,but I don't know how to ask. Upvote 0
Hi ciprian, If you could succeed it,please share your completely coding. I need to learn this. Thank you in advance. P.S. I would like to ask as same as this,but I don't know how to ask.
ciprian Active Member Licensed User Longtime User Oct 7, 2013 #7 No problem man... i will share...but first i have to succeed :d I'm a newbie.... Upvote 0
Olaan Expert Licensed User Longtime User Oct 9, 2013 #8 This cannot be done with ContentChooser. You will need to implement a chooser in your code. You can use CustomListView class and add the icons from File.DirAssets. Click to expand... Could I use AHDashboard library instead of customListView? Upvote 0
This cannot be done with ContentChooser. You will need to implement a chooser in your code. You can use CustomListView class and add the icons from File.DirAssets. Click to expand... Could I use AHDashboard library instead of customListView?
ciprian Active Member Licensed User Longtime User Oct 9, 2013 #10 I think the best way to do it is to create a panel, inside we create some buttons with .png images as button_background. When the user want to choose an icon, we set the pannels visibility = true, and when it click onto a btton, we have a sub...sub_buttonclicked for exemple, and we set the icon .png as icon into our object. I will try a litle exemple when i will have some spare time.... Upvote 0
I think the best way to do it is to create a panel, inside we create some buttons with .png images as button_background. When the user want to choose an icon, we set the pannels visibility = true, and when it click onto a btton, we have a sub...sub_buttonclicked for exemple, and we set the icon .png as icon into our object. I will try a litle exemple when i will have some spare time....
ciprian Active Member Licensed User Longtime User Oct 9, 2013 #11 I found the way to do it. It's quite simple....maybe too simple... Here , you can find an example... i hope that's a good way to do it. Attachments IconChooser.zip IconChooser.zip 35.9 KB · Views: 284 Upvote 0
I found the way to do it. It's quite simple....maybe too simple... Here , you can find an example... i hope that's a good way to do it.
Olaan Expert Licensed User Longtime User Oct 10, 2013 #13 I think that it's very simple strategy. Is there any better strategies? Upvote 0
ciprian Active Member Licensed User Longtime User Oct 10, 2013 #14 Sure there are some better strategies...as EREL said, customlistview....but i have not tried yet. Upvote 0
Olaan Expert Licensed User Longtime User Oct 10, 2013 #15 I think that my post #2 it could do as same as your done. I'm busy to test it. I'm in hospital. Last edited: Oct 10, 2013 Upvote 0