02-17-2009 12:32 AM
I am not able to use the proper manager for displaying the fields like below:
Labelname1 : EditField1
Labelname2 : Editfield2
Below is my coding, if any modificaton or suggestion do reply:
final class ManagerScreen extends MainScreen
LabelField lf1 = new LabelField("Search",EditField.FIELD_HCENTER);
LabelField lf2 = new LabelField(" City : ",EditField.FIELD_RIGHT);
EditField ef2 = new EditField("","",6,EditField.NO_NEWLINE);
LabelField lf3 = new LabelField(" Name : ",EditField.FIELD_RIGHT);
EditField ef3 = new EditField("","",6,EditField.NO_NEWLINE);
//HorizontalFieldManager ffm = new HorizontalFieldManager();
FlowFieldManager ffm = new FlowFieldManager();
Solved! Go to Solution.
02-17-2009 01:12 AM
Add EditFields with lable added to the constructor.
BasicEditField eField1 = new BasicEditField("Label1: ","");
BasicEditField eField2 = new BasicEditField("Label2: ","");
02-17-2009 02:33 AM
02-17-2009 02:47 AM
Thanks for you suggestion.
I have tried it by hfm, but it does not show me in proper way. It shows me labelfield and then in the next line Editfield.
When I use FlowFieldManager the same problem repeats. Is there any other way or I have to make custombutton.
There is one more addition to my question, " what if I need an image in same row i.e icon, label, edit field and button."
02-17-2009 03:02 AM
Thanks for your reply.
But the problem that occurs with the setPositionChild() is that it changes with the different screen's height and width so we can't assign fields to particular fixed position, because I am workng on BB 9000 & 8220 simulator. So plz provide me solution regarding FlowFieldManager.
02-17-2009 03:03 AM
Check the accepted solution, modifying a bit in that you can put your LableField, EditField and Button Field.