Code: Alles auswählen
OpenWindow(0,100,100,200,100,"Wie lang ist dieser Text?")
hdc.l=GetDC_(WindowID(0))
Lang.l=GetWindowTextLength_(WindowID(0))
lpRect.RECT
lpRect\left=0
lpRect\top=40
lpRect\right=200
lpRect\bottom=300
DrawText_(hdc,"Der Text ist :"+Str(Lang)+" Zeichen lang",30,lpRect,#DT_CENTER )
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
ReleaseDC_(WindowID(0),hdc)