April 25, 2024, 09:59:21 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


@button text

Started by billhsln, December 20, 2012, 11:19:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

I would like to Left justify the text on an @button, but it seems to always center.  I have added spaces to make it look right, but was wondering if there was a way to tell it to left justify or right justify.  I have looked into the help, but found nothing.

Thanks,
Bill
When all else fails, get a bigger hammer.

LarryMc

The @button uses a custom drawing routine to draw the button so it does not use the standard windows styles.
So the way you are doing it is the only way to adjust it.

If you switch to @SYSBUTTON that does use the regular drawing routines then you can use a style of 0x100 to shift the text to the left.

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library