something like this should do it....
Global dx = GadgetWidth(Desktop()) ; get the desktop size Global dy = GadgetHeight(Desktop()) ; get the desktop size Global winMain = CreateWindow("",0,0,dx,dy,0,0) Global Canvas = CreateCanvas(0,0,GadgetWidth(winMain),GadgetHeight(winMain),winMain) btnNext = CreateButton("Hello",200,200,300,300,Canvas) SetBuffer CanvasBuffer(Canvas) ; main loop Repeat id = WaitEvent() Select id Case $103: End End Select Forever