> I have tried  to change from left align  to right align 
> for.fl_float input
> 
> 
> 
> But it is not changing.

The Fl_Input_ derived widgets don't honour alignment requests, IIRC.



> Fl_Float_input  *out = new 
> Fl_Float_input(10,30,400-20,300-80,"Welcome");
> out->align(FL_RIGHT_ALIGN);

I assume that's just a typo and you meant FL_ALIGN_RIGHT... 

> Is there anything else to do along with this function?

You need to make a subclass to handle this - there was a thread on this
subject a while back, called "Re: position about Fl_Input' text"

This old post shows a simple subclass that more or less does the right
thing:

http://www.fltk.org/newsgroups.php?gfltk.general+v:18741




SELEX Sensors and Airborne Systems Limited
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