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??
|