moore_it Well-Known Member Licensed User Longtime User Nov 19, 2015 #1 Hi all, i trying to import an image 16*16 into a menu items like this: Dim mPrefs As MenuItem mPrefs.Initialize("Zipping and e-mail preferences","Preferenze") mPrefs.Image.Initialize(File.DirAssets,"quit.png") mFile.MenuItems.Add(mPrefs)
Hi all, i trying to import an image 16*16 into a menu items like this: Dim mPrefs As MenuItem mPrefs.Initialize("Zipping and e-mail preferences","Preferenze") mPrefs.Image.Initialize(File.DirAssets,"quit.png") mFile.MenuItems.Add(mPrefs)
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2015 #2 Why aren't you creating the menu items in the designer? You need to load the image and set it: B4X: mPrefs.Image = fx.LoadImage(...) Upvote 0
Why aren't you creating the menu items in the designer? You need to load the image and set it: B4X: mPrefs.Image = fx.LoadImage(...)
moore_it Well-Known Member Licensed User Longtime User Nov 20, 2015 #3 Thanks Erel, because i prefer build all via code! Upvote 0