> measure_label() works after set, but I'd like to know before > setting, without knowing the font/size used. fl_measure > didn't work for me, weird values, plus requires knowning font > and font size, that's why having one that can just be called > with NULL/0 as font and/or size would use defaults. Also > would like to be able to set the size that will be used for > wrapping width as an option.
What you are asking for makes no sense, really. There is (strictly speaking) no concept of a default font in fltk (though many widgets default to FL_HELVETICA at 14-pixel size, it is not strictly a default) so until you set a face/size for the measure functions to utilise, there is nothing to measure... Did you read the docs for fl_meaure? It describes how setting the "w" param before calling it is used to set the wrap width - this sounds like exactly what you are asking for, so I don't see what the problem is...? 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-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev