BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-28-2011, 02:57 AM   #1
saranyassr
Knows Where the Search Button Is
 
Join Date: Jul 2011
Model: 8520
PIN: N/A
Carrier: airtel
Posts: 17
Default Problem with bitmapfield - touch event not working

Please Login to Remove!

Hi all,


I have added custom edit field and bitmapfield to horizontal field manager.
If I type some text in edit field, gave me some suggestions, while selecting it, that text assigned to editfield.But while touching bitmapfield some popup appeared in editfield instead of bitmap gaining focus. need help in solving this issue.It's working fine in nontouch devices,.

Attached screenshot for reference


My code follows.

searchiconContainer=new HorizontalFieldManager(){

};
searchiconContainer.setPadding(4, 0, 2, 2);
space=new SpaceField(5,0);
searchiconContainer.add(space);
searchiconContainer.add(goBmp);
space=new SpaceField(5,0);
searchiconContainer.add(space);

textBoxContainer = new VerticalFieldManager(VerticalFieldManager.FIELD_VC ENTER) {
protected void paintBackground(Graphics graphics) {
graphics.setColor(Color.WHITE);
graphics.setBackgroundColor(0x00ECEBEB);
graphics.clear();
super.paint(graphics);
}

public void paint(Graphics g) {
super.paint(g);
g.setColor(0x00ff8c00);
g.drawRoundRect(0, 1, 272, 27, 10, 10);
}
};

SearchIn = new TextBoxField(272, 27);
SearchIn.setFont(Utility.getInstance().getGujarati Font("rekha", 5));
space=new SpaceField(0,4);
textBoxContainer.add(space);
textBoxContainer.add(SearchIn); // Custom EditField
space=new SpaceField(0,4);
textBoxContainer.add(space);
searchiconContainer.add(textBoxContainer);
space=new SpaceField(6,0);
searchiconContainer.add(space);
searchiconContainer.add(searchBmp); // BitmapField

pls guide

Thanks in advance
Saranya
Attached Images
File Type: jpg ScreenShot2.JPG (51.6 KB, 5 views)
Offline  
Old 12-12-2011, 12:04 AM   #2
shinta
Knows Where the Search Button Is
 
Join Date: Dec 2011
Model: 9300
PIN: N/A
Carrier: XL
Posts: 24
Default Re: Problem with bitmapfield - touch event not working

Did you create the BitmapField with FOCUSABLE?
Offline  
Old 12-22-2011, 05:24 AM   #3
saranyassr
Knows Where the Search Button Is
 
Join Date: Jul 2011
Model: 8520
PIN: N/A
Carrier: airtel
Posts: 17
Default Re: Problem with bitmapfield - touch event not working

yes. Changed images in click and Unclick call back methods too.
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

Similar Threads for: Problem with bitmapfield - touch event not working
Thread Thread Starter Forum Replies Last Post
Display prembabu General 9900 Series Discussion - Bold Touch 22 09-14-2011 11:10 AM
BB Media Sync stops working when I try to launch it from BB Desktop Manager itsphake General 9700 Series Discussion - Bold 2 0 05-16-2010 04:38 PM
BlackBerry Thumb Touch Typist Guide (Typing 60 WPM without looking!) Mark Rejhon General BlackBerry Discussion 34 04-14-2009 12:15 AM
Touch tones (DTMF) not working for conf cal neil111 General Legacy Device Discussion 0 08-20-2007 09:58 AM


Honeywell 30751856 Memory Module picture

Honeywell 30751856 Memory Module

$555.75



Allen-Bradley 1772-MEB Memory Module picture

Allen-Bradley 1772-MEB Memory Module

$266.18



1 Allen-Bradley 1772-ME16 MEMORY MODULE picture

1 Allen-Bradley 1772-ME16 MEMORY MODULE

$2368.34



Gould Modicon AS-506P-008 REV C12 Memory Module picture

Gould Modicon AS-506P-008 REV C12 Memory Module

$971.10



Netstal Memory Board 110-240.8680b picture

Netstal Memory Board 110-240.8680b

$1111.06



Gould Modicon AS-506P-002 Memory Module picture

Gould Modicon AS-506P-002 Memory Module

$964.08







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