Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 92
Registered: ‎07-19-2010
My Device: 8520

Problem whit draw VFM (SetExten post second part.... omg)

Hi

 

Today i revice help fro resolve a problem whit drae a VFM whit rouand corners.. the solution works fine, but when i add elements to the VFM i find the next problem.,.. (see the image)

 

The problem whas when i make scroll to the VFM whit colo orange.. all elements are add to this field.. any pls?

 

I use this code for draw the VFM (thanks to

 

		contenedormenu = new VerticalFieldManager(FIELD_HCENTER | VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR  ){
			protected void paintBackground(Graphics g) {
				   int width = getWidth();
				   int height = getHeight();
				   int arcRadius = 20;
				   int prevColor = g.getColor();
				   g.setColor(0xeb870e);
				   g.fillRoundRect(0, 0, width, height, arcRadius, arcRadius);
				   g.setColor(Color.WHITE);
				   g.drawRoundRect(0, 0, width, height, arcRadius, arcRadius);
				   g.setColor(prevColor);
				}
		};

 

I set to the MAIN SCREEN super(NO_VERTICAL_SCROLL), when i set that i have the problem..

 

2788iD66A23168321C791

 

 

 

Highlighted
Regular Contributor
Posts: 92
Registered: ‎07-19-2010
My Device: 8520

Re: Problem whit draw VFM (SetExten post second part.... omg)

any?