Re: How do I center text?
- Posted by DerekParnell (admin) Jun 24, 2009
- 871 views
constant ET = create(EditText, "", MainWin, 20, 20, 300, 40, ES_CENTER)
However, is this a control in which the user can enter text or is it just a display-control?
If you just need to display centered text, you can use the CText control. eg.
constant CT = create(CText, "", MainWin, 20, 20, 300, 40, WS_BORDER) setBackground(CT, 0, BrightWhite) setTextColor(CT, BrightBlue) setText(CT, "ABC")