by Silvio » Sun Jun 21, 2009 9:33 am
FIRST SIMPLY WINDOW MAIN
STATIC oWndMain,oScrWnd
FUNCTION MAIN()
DEFINE WINDOW oWndMain ;
TITLE "BEACH";
MENU BuildMenu() ;
ICON oIcon
DEFINE BUTTONBAR oBar _3D SIZE 42, 50 OF oWndMain 2007 //36, 40
DEFINE BUTTON OF oBar ;
ACTION BEACH() NOBORDER
ACTIVATE WINDOW oWndMain
RETURN NIL
FUNCTION BEACH
Local oDlg
Local aClient := GetClientRect (oWndMain:hWnd )
DEFINE DIALOG oDlg
oDlg:nTop = oWndMain:oBar:nHeight-1
oDlg:nLeft = 0
oDlg:nBottom = aClient[3] - 1
oDlg:nRight = aClient[4]
oDlg:nStyle = nOR( WS_CHILD, 4 )
oDlg:nStyle:= NOR( oApp():oDlg:nStyle, WS_VSCROLL )
oDlg:nStyle:= NOR( oApp():oDlg:nStyle, WS_HSCROLL )
oDlg:SetColor(0,RGB(143,172,230))
oWndMain:oClient := oDlg
ACTIVATE DIALOG oDlg ;
ON INIT oScrWnd:=TScrWnd():New(oDlg,1,900,1,100+950)
Best Regards, Saludos
Falconi Silvio