Hi Rene,
I think it would be maybe better to take similar route as you can see in SampleScripts/UI/MDI/MDI_Test_DialogEdit.tbasic.
When you look at the SelRectBegin, SelRectDraw, SelRectEnd, it gives you idea how to draw rectangle.
You can see the WIN_CreatePen allows to define pen for drawing, for example like:
Maybe it could be what are you looking for...hPen = Win_SelectObject(memDC, Win_CreatePen(%PS_dash, 1, Rgb(255, 0, 0)))
Petr
Bookmarks