this is my code test
- Code: Select all Expand view RUN
#define OSFONDO "D48.JPG"
static oWnd
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "Test" MDI ;
MENU BuildMenu()
DEFINE BUTTONBAR oBar 3DLOOK BUTTONSIZE 39,39 OF oWnd 2007
SET MESSAGE OF oWnd TO "test image" NOINSET 2007
ACTIVATE WINDOW oWnd
return nil
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "Test"
MENU
MENUITEM "Beach" ACTION Beach()
ENDMENU
oMenu:AddMdi()
ENDMENU
return oMenu
function beach()
LOCAL oWChld
DEFINE WINDOW oWChld OF oWnd MDICHILD ;
TITLE 'Beach Plan'
@0,0 IMAGE oImg FILENAME OSFONDO OF oWChld SIZE oWChld:nWidth, oWChld:nHeight PIXEL ADJUST
cRegistro := "OMBRELLONI : "
cAutore := "Liberi : "
cSyst := "Occupati : "
SET MESSAGE OF oWChld TO "" NOINSET
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cregistro size 150 ACTION nil
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cAutore size 150 ACTION nil
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cSyst size 150 ACTION nil
ACTIVATE WINDOW oWChld MAXIMIZED
return nil
have you an idea ?