BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-28-2011, 01:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2011
Model: 8520
PIN: N/A
Carrier: airtel
Posts: 17
Post Thanks: 1
Thanked 0 Times in 0 Posts
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-11-2011, 11:04 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2011
Model: 9300
PIN: N/A
Carrier: XL
Posts: 24
Post Thanks: 3
Thanked 1 Time in 1 Post
Default Re: Problem with bitmapfield - touch event not working

Did you create the BitmapField with FOCUSABLE?
Offline  
Old 12-22-2011, 04:24 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2011
Model: 8520
PIN: N/A
Carrier: airtel
Posts: 17
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Problem with bitmapfield - touch event not working

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

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
HTC Touch (P3450) - BB Connect melvince BlackBerry On Non-RIM Hardware 11 08-14-2007 02:05 PM





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