Hi !
bmax give me an error at the 'flip' line. Should be a relation with SetGraphics CanvasGraphics(cavCanvas0) ! Could you help me ?
Thanks !!!
bmax give me an error at the 'flip' line. Should be a relation with SetGraphics CanvasGraphics(cavCanvas0) ! Could you help me ?
Thanks !!!
Global Win0:TGadget Global btnButton0:TGadget Global cavCanvas0:TGadget Win0=CreateWindow("title",(GadgetWidth(Desktop())-358)/2,(GadgetHeight(Desktop())-260)/2,358,260,Desktop(),WINDOW_TITLEBAR|WINDOW_HIDDEN) btnButton0=CreateButton("Lauch game ",176,200,160,24,Win0,BUTTON_PUSH) cavCanvas0=CreateCanvas(10,10,330,90,Win0) '-mainloop-------------------------------------------------------------- Global paintTimer:TTimer=CreateTimer(60) ShowGadget Win0 Repeat Select WaitEvent() Case EVENT_GADGETACTION Select EventSource() Case btnButton0 Exit End Select Case EVENT_TIMERTICK SetGraphics CanvasGraphics(cavCanvas0) Cls SetColor 255,255,255 DrawText "test",0,0 Flip Case EVENT_WINDOWCLOSE End End Select Forever HideGadget Win0 SetGraphicsDriver D3D7Max2DDriver() Graphics 1024 , 768 , 32 , 75 Cls DrawText "kikou" , 0 , 0 Flip WaitKey()