BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-24-2009, 02:33 AM   #1
Grinarn
New Member
 
Join Date: Sep 2009
Model: 8330
PIN: N/A
Carrier: No Carrier
Posts: 3
Default Simple white field to draw on

Please Login to Remove!

Hi,



i tried to get a listfield with different sized rows, but this was not possible. so my next idea is, to get a white field and use the paint method to draw the listfield myself, thoughit must not be selectable, there should be no problem with this.

The problem i encountered is, that when the field gets longer than the screen, i am unable to scroll down.

Heres the class of my custom field:
Code:
public class MessageList extends Field {
	
	private Vector messages = null;
	
	public MessageList(Vector mes) {
		super(NON_FOCUSABLE);
		this.messages = mes;
	}

	protected void layout(int width, int height) {
		setExtent(width, height);
	}

	protected void paint(Graphics graphics) {
		for(int i = 0; i < 400; i = i+50) {
			graphics.drawText("blabla" + Integer.toString(i), 15, i, 0, this.getWidth());
		}
	}

}
The field gets added on a simple mainscreen with scrolling enabled.

Maybe anybode has an idea how to get the scrolling working or how to develop a white scrollable field to draw on.



Regards,

Daniel
Offline  
Old 09-29-2009, 04:20 AM   #2
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Default

Why not have a custom field act as a row and populate a verticalfieldmanager with the fields?
Offline  
Old 09-29-2009, 06:59 AM   #3
nirmalsat
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 22
Default

Have you enabled scrolling on ur main manager ??
Offline  
Old 09-29-2009, 07:14 AM   #4
stiz
New Member
 
Join Date: Sep 2009
Model: 7100t
PIN: N/A
Carrier: not sure
Posts: 2
Default

scrolling enabled will sort this
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vacuum Storage Bags Auto Vacuum Bag Pump Rechargeable Portable Electric Vacuum picture

Vacuum Storage Bags Auto Vacuum Bag Pump Rechargeable Portable Electric Vacuum

$14.92



4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4

4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4"ACME inlet

$26.40



1/4HP Vacuum Pump HVAC Field Tool 1 Stage Rotary Vane Fast Deep Vacuum picture

1/4HP Vacuum Pump HVAC Field Tool 1 Stage Rotary Vane Fast Deep Vacuum

$69.56



Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool picture

Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool

$65.08



Oilless Vacuum Pump | Industrial Oil-Free Piston Vacuum Pump W/Filter BEST SELL picture

Oilless Vacuum Pump | Industrial Oil-Free Piston Vacuum Pump W/Filter BEST SELL

$154.03



110V Oilless Vacuum Pump Oil Free Air Compressor Piston Compressor Pump 67 L/min picture

110V Oilless Vacuum Pump Oil Free Air Compressor Piston Compressor Pump 67 L/min

$112.02







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