View Single Post
Old 09-10-2007, 08:29 AM   #1 (permalink)
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Make Custom Context Menu?

Please Login to Remove!

I would like to make a custom context menu and my problem is with the separator. I use this code:

Code:
protected void makeContextMenu(ContextMenu contextMenu) {
    contextMenu.addItem(feedListScreen);
    contextMenu.addSeparatorInternal();
    contextMenu.addItem(syncScreen);
    contextMenu.addItem(toolsScreen);
    contextMenu.addItem(helpScreen);
  }
I have only a method AddSeparatorInternal(); and it puts the Separator at the bottom of the ContextMenu i.e. above the helpScreen MenuItem object but I would like to put it between feedListScreen MenuItem object and syncScreen MenuItem object. Do u know how? I don't have a method addSeparator() it is only available for Menu class.Thank U!
Offline   Reply With Quote