BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-08-2008, 09:39 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2008
Model: 8800
PIN: N/A
Carrier: simulator
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Editfield with suffix

Please Login to Remove!

hi guys,

is it possible to create one editfield and labelfield (as a suffix) at one row ?

ex.:

_____________.test.com

___ = EditField


Thanks
Offline  
Old 12-09-2008, 02:48 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

sure, use a horizontalfieldmanager and add an editfield and a labelfield. be sure to overwrite the width of the editfield though.
or extend editfield and implement your behaviour in the draw method.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 12-09-2008, 02:58 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2008
Model: 8800
PIN: N/A
Carrier: simulator
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Simon,

i try to do based on your clue, here is the code:

PHP Code:
HorizontalFieldManager gg = new HorizontalFieldManager();
gg.add(new BasicEditField(""""));
gg.add(new LabelField(".test.com"0,0,LabelField.FIELD_RIGHT USE_ALL_WIDTH));
add(gg); 
but it's not working, i only saw the EditField.
Offline  
Old 12-09-2008, 04:35 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

editfield uses all available width, you have to constrain it by overwriting getwidth and/or getpreferredwidth (i think only the fiest one, not sure, i use an absolute layout manager for these things).
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Siemens S7-300 Memory Card 6ES7-8BLF20-0AA0 64Kb
$25.0
Siemens S7-300 Memory Card 6ES7-8BLF20-0AA0 64Kb pictureBMU 64-2 A87L-0001-0016 08F BUBBLE MEMORY BOARD FROM MORI SIEKI MV 35/40
$20.0
BMU 64-2 A87L-0001-0016 08F BUBBLE MEMORY BOARD  FROM MORI SIEKI MV 35/40 pictureALLEN BRADLEY 1772-ME RAM MODULE MEMORY D609846
$25.0
ALLEN BRADLEY 1772-ME RAM MODULE MEMORY D609846 pictureAnritsu ME0312B 2.5G Data Memory
$100.0
Anritsu ME0312B 2.5G Data Memory pictureFlir TG165 Spot Thermal Camera 8GB Memory Card
$284.99
Flir TG165 Spot Thermal Camera 8GB Memory Card picture






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