Babs
Babs

Reputation: 107

How to add bitmapfield at runtime?

Hi developers I am new to Blackberry. The screen contain some buttons.When I click on a button it should add a bitmapfield in specified position in current manager, and it should removed when I click on other button on the screen.How can I implement it?

Upvotes: 0

Views: 222

Answers (1)

Vit Khudenko
Vit Khudenko

Reputation: 28418

Useful info:

How to create a BitmapField tutorial.

ButtonField API (includes sample code).

When I click on a button it should add a bitmapfield in specified position in current manager, and it should removed when I click on other button on the screen.

Well, your screen is a Manager. So you can just use its add(Field field), insert(Field field, int index) or delete(Field field) methods (bearing in mind that your BitmapField is a Field).

Upvotes: 1

Related Questions