BASIC

Author Topic: ALIGN  (Read 2316 times)

MrTAToad

  • Guest
ALIGN
« 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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: ALIGN
« Reply #1 on: 2010-Mar-15 »
is TEMP$ <> "" ?

MrTAToad

  • Guest
Re: ALIGN
« Reply #2 on: 2010-Mar-15 »
Oh yes :

Code: GLBasic [Select]
LOCAL TEMP$="temp"

MrTAToad

  • Guest
Re: ALIGN
« Reply #3 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...