Forums Register Login

Fitting ChoiceGroup labels onto the screen

+Pie Number of slices to send: Send
I'm having an issue which I believe I can only solve with a kludge... I'm wondering if anyone has developed such a kludge that they consider reliable across different J2ME implementations.

I have a ChoiceGroup as a part of a form. That ChoiceGroup has a label which is necessarily fairly long. My target phone, the Motorola i730, will only display about 16 characters horizontally in one line on the screen; furthermore, it will not line-wrap the label of a ChoiceGroup. I imagine that different MIDP implementations are similar. However, I unfortunately need the label to be arbitrarily long (I'm not talking paragraphs or anything; the label will be something like "Are you still at Location ABC?")

So my only thought is that I might append a StringItem to the form first, which contains the the text the would have been in the ChoiceGroup's label. A StringItem will typically line-wrap; plus I can set the StringItem to a smaller font (unlike the label of a ChoiceGroup). Then, I would append the ChoiceGroup, but give the ChoiceGroup no label. Thus, it would hopefully appear to the user as if the StringItem is the label for the ChoiceGroup items.

Does anyone know of any problems that different implementations might cause me if I do this? I know there's no guarantee of the layout, but is my approach reasonably reliable? Or is there some better approach that I'm missing?

Thanks in advance!
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1107 times.
Similar Threads
Creating a command prompt is swing
Command buttons display on screen
text wrapping
Can i put all of my action listeners(i will have hundreds) in a seperate class file and then use it?
Alerting a TextField
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:46:12.