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


KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier picture

KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier

$289.99



Portable Voice Amplifier Wireless & Wired Headset Microphone Speaker Mini Lig... picture

Portable Voice Amplifier Wireless & Wired Headset Microphone Speaker Mini Lig...

$102.58



Biamp Tesira AMP-450BP AVB/TSN Enabled 4 Channel Amplifier w/ PoE+ (G155) picture

Biamp Tesira AMP-450BP AVB/TSN Enabled 4 Channel Amplifier w/ PoE+ (G155)

$250.00



Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker picture

Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker

$14.99



Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan... picture

Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan...

$296.32



Rechargeable Voice Amplifier Microphone Headset Speaker Teacher Meeting Speech picture

Rechargeable Voice Amplifier Microphone Headset Speaker Teacher Meeting Speech

$16.14







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