Hi Guys,
When I create an Edit Box I call a function that goes and sets a bunch of properties of that newly created Edit Box.
I want to align the text in some of the Edit Boxes to Left, some to the Right, and the rest to the CENTER.
I cant find out how to pass ENUM's for the TextAlign property. Is someone able to help?
Thanks
Steve
//---- Set all of the properties for the Edit box
void SetPropertiesEb( CEdit &object, color bg_colour, color border_colour, color text_colour, string button_text)
{
object.Font("Tahoma");
object.FontSize(8);
object.TextAlign( ALIGN_CENTER );
object.ColorBackground( bg_colour );
object.ColorBorder( border_colour );
object.Color( text_colour);
object.Text( button_text );
}
When I create an Edit Box I call a function that goes and sets a bunch of properties of that newly created Edit Box.
I want to align the text in some of the Edit Boxes to Left, some to the Right, and the rest to the CENTER.
I cant find out how to pass ENUM's for the TextAlign property. Is someone able to help?
Thanks
Steve
//---- Set all of the properties for the Edit box
void SetPropertiesEb( CEdit &object, color bg_colour, color border_colour, color text_colour, string button_text)
{
object.Font("Tahoma");
object.FontSize(8);
object.TextAlign( ALIGN_CENTER );
object.ColorBackground( bg_colour );
object.ColorBorder( border_colour );
object.Color( text_colour);
object.Text( button_text );
}