I am not sure who to ask this but I needed to add a PB_SYTLE option to the pushbutton widget so that the text would be left justified. You can do that for canvases but not for buttons.
Its one of those things we would need to remember to do when SellerarisWare gets updated.
I added the following to pushbutton.h
// --------------------------------------------------------------------// This flag was added on 27-April-2012// Allows the text on a rectangular button to be left justified rather than be centered//#define PB_STYLE_TEXT_LEFT 0x00000100// --------------------------------------------------------------------
And I added the following to pushbutton.c
//// Added 27-April-2012 WJB// if (pPush->ulStyle & PB_STYLE_TEXT_LEFT) GrStringDraw(&sCtx, pPush->pcText, -1, sCtx.sClipRegion.sXMin, lY - (GrStringHeightGet(&sCtx)/2), pPush->ulStyle & PB_STYLE_TEXT_OPAQUE); else GrStringDrawCentered(&sCtx, pPush->pcText, -1, lX, lY, /* existing code */ pPush->ulStyle & PB_STYLE_TEXT_OPAQUE); } }}
Thanks
That seems like a reasonable suggestion to me. I'll ask the team to consider it for future releases of GraphicsLib.
Regards,
Christian