I think to implement it as a general method to be possible to use it in any 
widget. There is almost always a chance it will be needed.
For example somebody wants vertical text on some graphics, someone else wants 
it on vertical tabs...

>
> > OK. Thanks!
> > fl_draw() and Fl_Rotated_Text are good examples.
> > The thing I am trying to do is to create a new method in FLTK=20
> > 2, like label(int angle, char text). But I am not sure what=20
> > would be the best way to implement that functionality, as a=20
> > method or function. By me method way is the best.
>
> Will depend on your exact use-case of course, but I'd suggest deriving
> your own widget from the appropriate existing widget, then adding in the
> necessary methods for the rotated labels and so forth.
>
>
> 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.
> ********************************************************************
>

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

Reply via email to