#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
LOCAL oSay, oBru
DEFINE BRUSH oBru STYLE BORLAND
DEFINE WINDOW oWnd BRUSH oBru
ACTIVATE WINDOW oWnd;
ON PAINT oWnd:Say( 100, 100, "This is a test", CLR_RED, , , .T., .T. )
RETURN NIL
TimStone wrote:When I put together code, its preferably in order, so the say would be one line, and the get right below it. It makes it easier to remember what each get is for, and it makes it easier to make quick formatting changes ( moving a say and get around on the window ).
Here I could have to put a group of say commands all into an activate statement ...
ACTIVATE WINDOW oWnd;
ON PAINT MYPAINT()
STATIC FUNCTION MYPAINT()
oWnd:Say( 100, 100, "This is a test 1", CLR_RED, , , .T., .T. )
oWnd:Say( 120, 100, "This is a test 2", CLR_RED, , , .T., .T. )
RETURN NIL
TimStone wrote:I really don't see why we would want the say framed in a white background anyway ( or any color for that matter ).
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 65 guests