04-07-2009 11:13 AM
Hi!, someone knows how to remove a ShowKeyboard/HideKeyboard menu items of the MainScreen?. I need to catch the event click on the ShowKeyboard/HideKeyboard menu items and then Show or Hide an HorizontalFieldManager in the screen, but I can't catch this event, so I can make my custom ShowKeyboard/HideKeyboard menu item and within this method I can Show or Hide the HorizontalFieldManager.
I want to remove only this item menu and show the Switch application and Close menu items, but if I initialize my MainScreen with the NO_SYSTEM_MENU_ITEMS parameter, it removes the SwitchApplication menu item.
04-07-2009 11:22 AM
You can delete a specific menu item from menu by calling delete(index) method on menu object.
04-08-2009 10:08 AM
I can't delete that item as you said, because this is a item of ContextMenu not from Menu. This item change automatically, i.e. when the VirtualKeyboard is on screen, the item display "Hide Keyboard", and when the VirtualKeyboard is not on screen the item on the menu display "Show Keyboard". If I write: menu.delete(index) -> (index = any number), this delete one of my custom menu item and I want to delete only this ContextMenu item.
Thanks for your help, Rajat.
04-08-2009 10:19 AM