BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-02-2006, 09:20 AM   #1
Logan6
New Member
 
Join Date: Feb 2006
Location: Raleigh, NC
Model: 7520
Posts: 2
Question Custom DateField Issue

Please Login to Remove!

I have a custom datefield in my applicaiton.

Code:
public class bbhDateField extends DateField
This was created so that the user could either set the date to "Now" or add time increments of 15,20,30 minutes. While doing this the "Change Option" item in the Context Menu disappeared.

Code:
protected void makeContextMenu(ContextMenu contextMenu) 
{
   if(super.isEditable())
   {
      contextMenu.addItem(addNow);
   }
}
The "Change Option" makes the individual fields in the DateTime field work like a option field where you can scroll thru the numbered values. Does anyone have any clue on how to get that back?

I don't need the copy and paste feature in the DateTime field. Not sure why that is even in there.

Thanks in advance for any help.
Offline  
Old 02-03-2006, 05:19 AM   #2
leoshaw
New Member
 
Join Date: Aug 2005
Model: SK65
Carrier: T-mobile
Posts: 12
Default

Not sure if this will work, but can you call super.makeContextMenu from within your makeContextMenu?

Also, if you haven't already discovered, you can switch to edit mode in an editable field by holding the 'shift' key (bottom-left on the 7290 keyboard).

Hope this helps,

Leo
__________________
Leo Shaw
http://www.leoshaw.co.uk
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print picture

Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print

$14.99



Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101  picture

DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101

$50.00



Vintage DEC PDP11 Option Bulletin KX11-C Real-Time Clock 1981 picture

Vintage DEC PDP11 Option Bulletin KX11-C Real-Time Clock 1981

$4.95



Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00







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