I will try to update my example to supoort window dragging ASAP!
Here's a little demo code showing how you could handle the string thingy:
Code: Select all
LoadFont(0,"System",10)
OpenWindow(0,0,0,320,240,"RESIZE ME!!",#WS_OVERLAPPEDWINDOW | 1)
SetWindowColor(0,#White)
Title$ = "Lorem ipsum dolor sit amet vater equat quad esperat."
tmpString$ = Title$
Length = Len(Title$)
Repeat
EventID = WaitWindowEvent()
StartDrawing(WindowOutput(0))
DrawingFont(FontID(0))
If TextWidth(Title$) > WindowWidth(0)
For c=0 To Length-1
Result$ = Left(Title$,Length - c)
If TextWidth(Result$) < WindowWidth(0)
tmpString$ = Left(Result$,Len(Result$) - 2) + "..." : Break
EndIf
Next
Else
tmpString$ = Title$
EndIf
Box(0,50,WindowWidth(0),25,#White)
DrawText(0,55,tmpString$,0)
Line(0,50,WindowWidth(0),0)
Line(0,75,WindowWidth(0),0)
StopDrawing()
Until EventID = #WM_CLOSE
It's using windows and it's ugly but is demonstrates the basic method and should be easily adaptable to use in HGE.