BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-23-2009, 10:28 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8130
PIN: N/A
Carrier: don't know
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Behavior of graphics' clipping

Please Login to Remove!

Hi,

I have a problem with graphics' clipping region. Below is my code snippet:

class MyManager extends VerticalFieldManager {

public MyManager() {
super(Manager.USE_ALL_WIDTH);
}

protected void sublayout(int maxWidth, int maxHeight) {
super.sublayout(150, maxHeight);
setExtent(150, maxHeight);
}
protected void paint(Graphics graphics) {
super.paint(graphics);
// Did custom things
}
}

I am adding two fields in MyManager. now when i navigate through fields, i am not getting the clipping region same as manager's width and height as i sat in setExtent(). It is giving me child's width and height in a graphics' clipping region.

Does any one have an idea how to solve this??
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

1 NEW SIEMENS MEMORY CARTRIDGE 1P 6ES7 291-8GC00-0XA0, 8KX8, SIMATIC S7-200, NEW
$54.99
1 NEW SIEMENS MEMORY CARTRIDGE 1P 6ES7 291-8GC00-0XA0, 8KX8, SIMATIC S7-200, NEW pictureABB 3HAB5957-1 16meg memory board 60 Day Warranty
$1475.0
ABB                   3HAB5957-1           16meg memory board  60 Day Warranty pictureHP Agilent Keysight N2913A 8Mb Memory Upgrade For 500MHz-1GHz 6000 Series
$479.0
HP Agilent Keysight N2913A 8Mb Memory Upgrade For 500MHz-1GHz 6000 Series pictureTektronix TLA 7AB4 with Option 2S = (64MB MEMORY DEPTH AND 450MHz STATE SPEED)
$1300.0
Tektronix TLA 7AB4 with Option 2S = (64MB MEMORY DEPTH AND 450MHz STATE SPEED) pictureHP Agilent Keysight E2485A Memory Expansion Interface
$50.0
HP Agilent Keysight E2485A  Memory Expansion Interface picture






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