GLBasic forum

Codesnippets => DD-GUI => Topic started by: MrTAToad on 2010-Mar-13

Title: ALIGN
Post by: MrTAToad on 2010-Mar-13
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
Title: Re: ALIGN
Post by: Kitty Hello on 2010-Mar-15
is TEMP$ <> "" ?
Title: Re: ALIGN
Post by: MrTAToad on 2010-Mar-15
Oh yes :

Code (glbasic) Select
LOCAL TEMP$="temp"
Title: Re: ALIGN
Post by: MrTAToad on 2010-Mar-20
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...