Hi !
Try the following code, i've an 'invalid blitz2d buffer Handle' error message. Could you explain why ?
Perhaps have you another idea to center the text into the label ?
Thanks !
Try the following code, i've an 'invalid blitz2d buffer Handle' error message. Could you explain why ?
Perhaps have you another idea to center the text into the label ?
Thanks !
Function Show_info_window(Message$) f = LoadFont ("arial",14) x = (GadgetWidth(Desktop())- 300) / 2 y = (GadgetHeight(Desktop())- 50) / 2 Win3 = CreateWindow("Hubitron",x,y,300,50,Desktop(),17) SetFont f w = StringWidth(Message$) ; <- ERROR : invalid blitz2d buffer Handle Lbl = CreateLabel("",(300-w)/2,10,w,20,Win3,0) SetGadgetFont lbl, f SetGadgetText Lbl, Message$ End Function Show_info_window("test")