Ok, so far everything looks good, clean code and I like it. Alot of comments in it, but thats the way I like it. However I ran in a little problem, I tryed to draw 2 canvas and only 1 is drawn.
EDITED,
errr I feel stupid. Canvas is drawn outside the window.. since 640x480... so I have two canvas that are way to big to both fit in the window :o
; ----------------------------------------------------------------------------- ; Practice Exercise (PE) ; ----------------------------------------------------------------------------- AppTitle "Project PE" window=CreateWindow("Practice Exercise",50,50,640,480) ; ----------------------------------------------------------------------------- ; Menu Creation ; ----------------------------------------------------------------------------- menu=WindowMenu(window) file=CreateMenu("File",0,menu) CreateMenu "Open",1,file CreateMenu "",0,file CreateMenu "Quit",3,file ; ----------------------------------------------------------------------------- ; Draw the Canvas ; ----------------------------------------------------------------------------- canny1=CreateCanvas(10,10,512,256,window) canny2=CreateCanvas(10,520,256,128,window) ; ----------------------------------------------------------------------------- ; Update the Window with the gadgets and stuff? ; ----------------------------------------------------------------------------- UpdateWindowMenu window ; ----------------------------------------------------------------------------- ; Main Loop ; ----------------------------------------------------------------------------- Repeat Delay 2 WaitEvent() If EventID()=$803 quit=True ; ; ; event-checks of the rest of the app ; ; Until quit ; ; clean-up things like images, banks etc. *HERE* ; SetBuffer DesktopBuffer() End
EDITED,
errr I feel stupid. Canvas is drawn outside the window.. since 640x480... so I have two canvas that are way to big to both fit in the window :o