>            I am using choice box in my application. Choice box is
> expanding
> up to the maximum data size. I think this is the general property, which
> seems to be fine. But my resolution is 240*320. So the data in choice box
> is going away out of my display. And even choice box doesn't have
> horizontal and vertical scroll also. Can any body give suggestions, how to
> restrict the extending property of choice box. I am using FLTK1.3 on ARM
> linux platform.


I'm not sure if there's any really graceful "built in" solution... What I did, 
in a similar sort of position, was measure the string before adding it to the 
widget, and if it was going to be too long, I created a suitable sized 
"reduced" version, i.e. "This string is much, much too long!" might be reduced 
to "This string is..." instead.

Not ideal, but... The advantage with "shortening" the strings under program 
control was that I could make some attempt to do something "clever" with the 
reduced string, rather than just truncating it abruptly. Not always great 
though...

Is this on a touchscreen device, BTW?
If so, you might want to think very carefully about what widgets you use - a 
lot of "stock" widget choices don't work all that well in a touch environment, 
and especially on small displays, so you might do better to come up with 
something other than a choice box, since dropdowns and such often don't 
function well in that context...

You could probably use an Fl_Roller (maybe coupled to an Fl_Browser or 
something) to make up a "wheel widget" somewhat like the list scrolling widgets 
that you see on an iPhone, for example... Just a thought...








SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to