07-11-2010 01:23 PM
hi, complete newbie here.
i have a LabelField and a BitmapField. i want the label to show itself on top of the bitmap. how do i go about doing this?
Solved! Go to Solution.
07-11-2010 02:25 PM
Draw the label after the Bitmap. Drawing occurs on a bottom-to-top manner, so the first thing you draw is on the bottom, the last thing you draw is on the top.
As for Fields itself you can create a custom Manager and position the LabelField in the same area as the BitmapField and, as mentioned above, draw the LabelField after the BitmapField.
07-11-2010 02:30 PM - edited 07-11-2010 02:31 PM
thanks for the reply, rcmaniac. the LayoutManager approach looks really tedious; do you know of any good online resources on this topic?
07-11-2010 03:05 PM
I forgot you can just use Field.setMargin(int, int, int, int), you won't find it in documentation (or at least not in 5.0 docs) but you can actually set those values to negative and overlay Fields on top of one another.
You may find articles on this forum debating if undocumented functions should be used or not but setMargin has even been used in RIM's own examples so I doubt there is any problem with using it.