Re: How do I center text?

new topic     » goto parent     » topic index » view thread      » older message » newer message
doncole2009 said...

How does one center text in a EditText or ComboBox?

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") 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu