Code: Select all
case #WM_PAINT
text$=getgadgettext(stringid)
beginpaint_(hWnd, @lp.PAINTSTRUCT)
selectobject_(lp\hdc, usefont(1))
TextOut_(lp\hdc,lp\rcPaint\left+5, lp\rcPaint\top + 14, @text$, LEN(text$))
endpaint_(hWnd, @lp)
result = 0
Anyone know how to set the equivalent of a 'top' margin in a single-line string gadget? Reckon I'm overlooking something simple!