BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-28-2007, 08:04 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Removing Context Menus

Please Login to Remove!

Hi All,

I have a one application on which i have one EditField........

When i enter something in editfield and invoke the menu then default context menus are coming..like Clear Field,select etc.........I want to remove this menus in my application? How?


Any ideas?

Thanks in advance.......
__________________
Regards,
Hitesh
Offline  
Old 09-28-2007, 09:04 AM   #2 (permalink)
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

Well, in the MainScreen you shold override the makeMenu() method like these:

Code:
protected void makeMenu(Menu menu, int instance) {
    ContextMenu contextMenu = ContextMenu.getInstance();
    contextMenu.clear();
    menu.deleteAll();
    menu.add(contextMenu);
}
in this case you will clear all the menus and context menus of all kind of labels, fields etc. as far as i know
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

GE CR122B00022B NEW IN PACK PNEUMATIC TIMER 5-200 SEC 120V COIL SEE PICS #A64
$129.0
GE CR122B00022B NEW IN PACK PNEUMATIC TIMER 5-200 SEC 120V COIL SEE PICS #A64 pictureNEW SQUARE D 9998-L53 Replacement Coil **NOS**
$35.0
NEW SQUARE D 9998-L53 Replacement Coil **NOS** picture Eaton/ Cutler-Hammer C25DNY173 Ser. D1 CONTACTOR 50A 110/120V 50/60HZ COIL
$29.0
 Eaton/ Cutler-Hammer C25DNY173 Ser. D1 CONTACTOR  50A  110/120V 50/60HZ  COIL  pictureHvac Coil Cleaner, Foaming, Non Acid, Gallon
$47.23
Hvac Coil Cleaner, Foaming, Non Acid, Gallon pictureGoodman Evaporator Coil' 2.5 - 3.0 Ton, Full-Cased, Upflow Or Downflow
$410.95
Goodman Evaporator Coil' 2.5 - 3.0 Ton, Full-Cased, Upflow Or Downflow picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.