> > > If I have a '@' character in file name, it can't be display in the widget. > > Yes it can, but you may need to do some set-up first to make it work... > > > In fltk-2.0, it has a RAW_LABEL flag to set to display this character, so > > I want to know how to display this character in fltk-1.3. Thanks. > > > You need to check out Greg's examples pages, he has worked examples of doin= > g this there, with a number of solutions shown - his specific example was t= > he display of email addresses but that problem is the same as you describe. > > In summary though, you have basically 3 options: > > 1) turn of label expansion directly (see Greg's examples for ways to do tha= > t) > > - or - > > 2) parse the label string and double up any "@" chars to become "@@" should= > work > > - or - > > 3) adjust the label string to prepend "@." at the start of every label; tha= > t will prevent subsequent "@" symbol interpretation for the remainder of th= > e string > > > Depending on how you are processing your strings, one or other of these tec= > hniques should give the desired result. > > > > > > SELEX Galileo Ltd > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS= > 14 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. > ******************************************************************** >
Thanks,MacArthur. I use the first method and it is OK now, thanks to Greg. Best regards, Leo _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk