BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-29-2009, 12:53 PM   #1
misty83
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 7100T
PIN: N/A
Carrier: -
Posts: 73
Question console

Please Login to Remove!

hi,
is there such a thing as console in bb? i would like to put there messages for user in my application. or there is only textField?

regards
Offline  
Old 01-29-2009, 01:33 PM   #2
RLord321
Knows Where the Search Button Is
 
Join Date: Sep 2007
Location: Delaware
Model: 8310
Carrier: AT&T
Posts: 23
Default

Why would you need something specifically called a "console?" You can create a "console" type look and feel from a textField or a richTextField. What -- you want to make the background black and the text white or green or something?
Offline  
Old 01-29-2009, 03:22 PM   #3
misty83
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 7100T
PIN: N/A
Carrier: -
Posts: 73
Default

i would like (for example) to have a black frame, white inside and text black. and with TextField isn't it like that-that every time i want to print text it overwrites the previous text?
Offline  
Old 01-29-2009, 10:07 PM   #4
RLord321
Knows Where the Search Button Is
 
Join Date: Sep 2007
Location: Delaware
Model: 8310
Carrier: AT&T
Posts: 23
Default

I see... so use the RichTextField class. Below is sample code to override the paint method so you can change what the control looks like. Below just changes the font color to green. I know the colors are not what you wanted, but this is a nice place to start:

RichTextField console = new RichTextField("This is some console text", RichTextField.FIELD_HCENTER)
{
// Override the paint method to set Font and Color.
public void paint(Graphics graphics)
{
graphics.setColor(Color.GREEN);
super.paint(graphics);
}
};
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


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



93C86 Microchip MSOP-8 EEPROM IC USA Seller 🇺🇸 picture

93C86 Microchip MSOP-8 EEPROM IC USA Seller 🇺🇸

$8.00



REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB) picture

REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB)

$139.00



REVELPROG-IS (ICSP FLASH SPI BIOS PROGRAMMER) + SOIC-8 200mil + SOIC-8 CLIP picture

REVELPROG-IS (ICSP FLASH SPI BIOS PROGRAMMER) + SOIC-8 200mil + SOIC-8 CLIP

$190.00



New In Box SIEMENS 6ES5 375-0LC41 EEPROM Memory Module Unit picture

New In Box SIEMENS 6ES5 375-0LC41 EEPROM Memory Module Unit

$212.91







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