as example:
Code: Select all
Box(#CENTER, #CENTER, 500, 200)
TextOut(#CENTER + 20, #CENTER+20, "first line of text")
TextOut(#CENTER + 20, #CENTER+70, "second line of text")
TextOut("#CENTER + 20, #CENTER+120, "third line of text")
Code: Select all
Box(#CENTER, #CENTER, 500, 200)
TextOut(#CENTER + 20, #CENTER+20, "first line of text")
TextOut(#CENTER + 20, #CENTER+70, "second line of text")
TextOut("#CENTER + 20, #CENTER+120, "third line of text")
Are you sure? I have never seen that before.
Code: Select all
DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRWIDTH)/2, GetAttribute(#DISPLAY, 1, #ATTRHEIGHT)/2)Code: Select all
Box(#CENTER, #CENTER)
BOX_X = GetBoxCenterValueX()
BOX_Y = GetBoxCenterValueY()
TextOut(BOX_X + 20, BOX_Y + 20)
But you know that this is syntactically not correct? #CENTER is a constant with the value -100000 and this magic number triggers Hollywood's center arithmetic. You can't add numbers to it.
Yes, that would need the return values for TextOut or Box. Or for all functions using #CENTER. Andreas will be thrilled...When in reality it should be something like ...
Code: Select all
ReturnTable = Box(#CENTER, #CENTER, width, height)Code: Select all
TextOut(ReturnTable.x + 20, ReturnTable.y + 20, "first line of text")
TextOut(ReturnTable.x + 20, ReturnTable.y + 70, "second line of text")
Code: Select all
Box(#CENTER, #CENTER, width, height)
TextOut(Box.X + 20, Box.Y+10, "Choose hotkey for:")
DisplayBrush(1, Box.X + 300, Box.Y+10)Actually, you can
Ah, very interesting. Thanks!