Note that there are some explanatory texts on larger screens.

plurals
  1. POproblem in displaying BitmapFields in HorizontalFieldManager in a row in Blackberry Storm
    primarykey
    data
    text
    <p>I had created a HorizontalFieldManager &amp; added BitmapFields in that. </p> <p>In Blackberry Storm, Display.getWidth() is 480. In that I want to use first 450 to add some BitmapFields at LHS of screen which I m creating at runtime &amp; add 2 BitmapFields at start at RHS of Screen. </p> <p>2 BimapFields which I want to show at start r added in Constructor &amp; other BitmapFields which I m creating at run time r added afterwords like..</p> <pre><code>class MyCanvas extends MainScreen { MyCanvas() { hfm_BitmapField = new HorizontalFieldManager(){ protected void sublayout(int maxWidth, int maxHeight) { super.sublayout(maxWidth, maxHeight); setExtent(Display.getWidth()-30, 60); } }; startBitmap = Bitmap.getBitmapResource("start.png"); startBitmapField = new BitmapField(startBitmap, BitmapField.ACTION_INVOKE | BitmapField.FIELD_HCENTER | BitmapField.FIELD_RIGHT); hfm_BitmapField.add(startBitmapField); endBitmap = Bitmap.getBitmapResource("end.png"); endBitmapField = new BitmapField(endBitmap, BitmapField.ACTION_INVOKE | BitmapField.FIELD_HCENTER | BitmapField.FIELD_RIGHT); hfm_BitmapField.add(endBitmapField); drawBitmap(); } public void drawBitmap() { bitmap[i] = new Bitmap(50, 50); Graphics g = new Graphics(bitmap[i]); g.drawLine(5,5,25,25); bitmapField[i] = new BitmapField(bitmap[i]); synchronized(UiApplication.getEventLock()) { hfm.add(bitmapField[i]); } } </code></pre> <p>I want startBitmapField &amp; endBitmapField at RHS &amp; bitmapField[i] which I m creating at runtime at LHS of HorizontalFieldManagers. </p> <p>I m thinking to add 2 HorizontalFieldManagers. 1 for bitmapField[i] &amp; 1 for startBitmapField &amp; endBitmapField. But how to add 2 HorizontalFieldManagers or any other FieldManagers in a row?</p> <p>Any solution? How to do it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload