Peekay Active Member Licensed User Longtime User Jul 11, 2020 #1 I have two icons on my action bar created by .AddMenuItem3. One is: settings: Activity.AddMenuItem3("Settings", "settings", LoadBitmap(File.DirAssets,"settings.png"), True) When I press the settings bitmap, I wish to create an event to open the settings panel. How would I do that? Thanks PK
I have two icons on my action bar created by .AddMenuItem3. One is: settings: Activity.AddMenuItem3("Settings", "settings", LoadBitmap(File.DirAssets,"settings.png"), True) When I press the settings bitmap, I wish to create an event to open the settings panel. How would I do that? Thanks PK
toby Well-Known Member Licensed User Longtime User Jul 11, 2020 #2 B4X: Sub Settings_Click 'put your code here to open the panel End Sub Upvote 0
Peekay Active Member Licensed User Longtime User Jul 12, 2020 #3 toby said: Sub Settings_Click 'put your code here to open the panel End Sub Click to expand... I could not raise such an event by clicking on the bitmap. When I used .AddMenuItem witohut a bitmap, I could not raise the event when I clicked on the menu item. PK Upvote 0
toby said: Sub Settings_Click 'put your code here to open the panel End Sub Click to expand... I could not raise such an event by clicking on the bitmap. When I used .AddMenuItem witohut a bitmap, I could not raise the event when I clicked on the menu item. PK
toby Well-Known Member Licensed User Longtime User Jul 12, 2020 #4 A demo app to show the problem would help others help you. Upvote 0
Peekay Active Member Licensed User Longtime User Jul 13, 2020 #5 I got it to work, thanks. PK Upvote 0