BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-17-2009, 10:59 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to make BitmapField clickable

Please Login to Remove!

I created big image and put a few small images on top of big one in sublayout of locationFieldManager. When I try clicking on different images only small1 reacts. What is wrong? How to fix this problem?

BTW: When I add images one next to other everything is fine.

VerticalFieldManager locationFieldManager = new VerticalFieldManager()
{
public void sublayout( int width, int height )
{
// I do calculation of X and Y offsets for setting small images
// on top of big Image
setPositionChild( field, xOffset, yOffset );
}
};

BitmapField bigBtn = new BitmapField( _bigImg, BitmapField.FOCUSABLE )
{
protected boolean invokeAction( int action )
{
// some code
return true;
}
};

BitmapField small1 = new BitmapField( _smallImg1, BitmapField.FOCUSABLE )
{
protected boolean invokeAction( int action )
{
// some code
return true;
}
};
// couple more small buttons

locationFieldManager.add( bigBtn );
locationFieldManager.add( small1 );
// I add couple small buttons here
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

Genuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 For 1815dn
$25.0
Genuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 For 1815dn  pictureGenuine OEM Dell 3200MP Osram Replacement Lamp & Housing 310-2328
$79.99
Genuine OEM Dell 3200MP Osram Replacement Lamp & Housing  310-2328 pictureOEM Dell Alienware M17X R2 Video Graphics Card GPU RV546 ATI 5870m 1GB 731MJ
$89.99
OEM Dell Alienware M17X R2 Video Graphics Card GPU RV546 ATI 5870m 1GB 731MJ  pictureGenuine, NEW Dell 3110cn, 3115cn Transfer Belt unit in Box Neo OEM
$199.95
Genuine, NEW Dell 3110cn, 3115cn Transfer Belt unit in Box Neo OEM pictureDell Inspiron N5040 OEM LCD Front Cover Bezel 0mr95c
$17.0
Dell Inspiron N5040 OEM LCD Front Cover Bezel 0mr95c picture






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