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


5/10/50PCS SST27SF512-70-3C-PG SST 27SF512 EEPROMs DIP-28 Programmable Flash IC picture

5/10/50PCS SST27SF512-70-3C-PG SST 27SF512 EEPROMs DIP-28 Programmable Flash IC

$26.98



1pcs Brand new Mitsubishi with box  FX-EEPROM-16 picture

1pcs Brand new Mitsubishi with box FX-EEPROM-16

$92.24



1pcs FX-EEPROM-4 Mitsubishi New quality assurance 100% Brand new ones picture

1pcs FX-EEPROM-4 Mitsubishi New quality assurance 100% Brand new ones

$50.41



1pcs FX-EEPROM-8 Mitsubishi New quality assurance 100% Brand new ones picture

1pcs FX-EEPROM-8 Mitsubishi New quality assurance 100% Brand new ones

$66.42



CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98







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