Integrated Application Platform › Forums › General › Newb Window Canvas Question › Re: Re: Newb Window Canvas Question
Still just a little lost… I run my function to create the window (w = MyFunc) and it returns the pointer to the window (window object) as w beautifully. There’s my Window, my Menu, My canvas. Everything is wonderful. now I get the pointer to my canvas (oc = w.FindControl(‘Canvas’)) and there it is, big and beautiful as life…My Canvas. Now, silly me, I want to put an image on my canvas so I try to create an image object with oi = Image(“MyFile.jpg”) so that I can add it (oc.AddItem) to my canvas. No joy in Mudville. Image(“MyFile.jpg”) just appears to return a string that says “Image (“MyFile.jpg”)” and not an object that I can manipulate or add to the canvas. I’m trying all this from the workspace, 1 line at a time so I can see what I’m getting. What did I do wrong THIS time?
Oh, and is there something simple I can specify in my Window creation function that will start the window maximized? Thanks so much and sorry to be such a bother.