02-19-2010 01:07 PM
Thanks for your explanation
I tried using Manager.VERTICAL_SCROLLBAR, but still I am not seeing any Scroll bar.
Thanks
Siva
02-21-2010 12:47 PM
Hi
Can any one please help on having vertical scroll bar in the said Multiline Editor.
Thanks
Siva
02-27-2010 04:19 PM
Did you try implenting the vertical scroll bar in a field other than Manager? Also, do you need the scroll bars if the field will scroll on its own?
03-04-2010 01:19 AM
Hi
I want to have a scroll bar inside my Multiline Text Editor. Can you please send the code for the same.
Thanks
Siva
03-04-2010 01:32 AM
I think following KB article will be useful to you
03-04-2010 04:29 AM
for u r note pad thing try the below code. create a CAutoTextBox.java file and paste the below code and in your code where u want this note pad just create a variable of AutoTextEditField txt; and
txt = new CAutoTextBox("",AutoTextEditField.FIELD_HCENTER);
import net.rim.device.api.ui.component.*;
public class CAutoTextBox extends AutoTextEditField {
public CTextBox() { }
public CTextBox(String text,long Style)
{
super("","",400,Style);
}
protected void paintBackground(Graphics g)
{
g.drawRect(1,0,315,this.getHeight());
g.setColor(Color.BLACK);
}
}
03-04-2010 04:30 AM
was it usefulyy for u in any means....
03-04-2010 12:28 PM
Zany
I use the same code mentioned by your Link and end up in a Rectangular Edit Field which is scrollable, but there is NO SCROLL BAR on right side.
I want to have SCROLL BAR on the right side of the editor.
Belberry
Your solution is same as using AutoTextEditField
03-05-2010 12:07 AM
It is not possible to show scroll bar for Edit Field. One of the features of Edit Field is auto grow, ie., once the text entered is going behind its height, it will start growing vertically automatically, so vertical scroll bar will not be shown any time since it is keep on growing. If it is mandatory to have scroll bar, then you have add your own scroll bar. But i think, it will be hard to handle it
11-14-2012 04:46 AM
Thank you for the code @SivaR, it helped me out to get solution to similar problem I had.