News:

*NEW* Current Version on STEAM16.793

Webchat:
Visit the chat



ALIGN

Previous topic - Next topic

MrTAToad

Cant seem to get ALIGN working.  For example :

Code (glbasic) Select
DDgui_pushdialog(0,(options.screenHeight%-32)/2,options.screenWidth%-1,32)
DDgui_set(TEMP$,"ALIGN",0) DDgui_widget(TEMP$,messageText$[MESSAGETEXT_DOWNLOADINGWEBHISCORES%],options.screenWidth%-8,0) DDgui_show(FALSE)


and

Code (glbasic) Select
DDgui_pushdialog(0,(options.screenHeight%-32)/2,options.screenWidth%-1,32)
DDgui_widget(TEMP$,messageText$[MESSAGETEXT_DOWNLOADINGWEBHISCORES%],options.screenWidth%-8,0)
DDgui_set(TEMP$,"ALIGN",0)
DDgui_show(FALSE)


Both produce left-aligned text

Kitty Hello

is TEMP$ <> "" ?

MrTAToad

Oh yes :

Code (glbasic) Select
LOCAL TEMP$="temp"

MrTAToad

Solved the ALIGN problem - the widget size was the full width of the screen, and not just the length of the text, and thus there was nothing to align...