Author Topic: ALIGN  (Read 2571 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: 10745
  • 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...