View Single Post
Old 12-02-2009, 07:17 AM   #7 (permalink)
clavemartin
New Member
 
Join Date: Aug 2009
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry, not getting exactly what is your explanation. Ok no worries, resolved anyway leave it. I also want to know how can i make the buttons size as same for all? I have three buttons and the code will be something like below..

class MySecondScreen extends MainScreen {

private HorizontalFieldManager horizontalFldManager;

public MySecondScreen ()
{
.................................................. ................
.................................................. .................

horizontalFldManager = new HorizontalFieldManager(Manager.USE_ALL_WIDTH);

ButtonField addButton;
addButton = new ButtonField("Add", ButtonField.CONSUME_CLICK);

ButtonField editButton;
editButton = new ButtonField("Edit", ButtonField.CONSUME_CLICK);

ButtonField deleteButton;
deleteButton = new ButtonField("Delete", ButtonField.CONSUME_CLICK);

horizontalFldManager.add(addButton);
horizontalFldManager.add(editButton);
horizontalFldManager.add(deleteButton);

this.setStatus(horizontalFldManager);

.................................................. ................

.................................................. ................


}
Offline   Reply With Quote