
05-19-2011, 07:33 AM
|
| CrackBerry User | | Join Date: May 2011 Posts: 20 Likes Received: 1
Thanked 12 Times in 2 Posts
| |
Probably i'm doing wrong, but my solution is:
create function that draws buttons, something like
void drawbuttons(long Style)
{
horizonalFieldManager.add(new ButtonField("name", Style))
}
function that deletes buttons:
void deletebuttons()
{
horizaontalFieldManager.deleteAll();
}
Status could be the following
Status = Field.FOCUSABLE
Status = Field.NON_FOCUSABLE
So if i want to change button status, i'm deleting buttons using deletebuttons(), then change Status varuable, and then call drawbuttons(Status);
Somethink like that. I could be wrong, but it works.
|