Forum Replies Created
-
AuthorPosts
-
roundtuit
Participant@amckinlay wrote:
Is there a particular reason you are using Canvas? You’re welcome to use it, but it’s not the normal user interface for Suneido. (We don’t use it in any of our applications.)
Ahh… I see, I chose the chainsaw instead of the hammer to drive the nail, sorry about that and thanks for pointing out the hammer… MUCH better. Canvas looks like a cute control that I could use to do some interesting things, have some fun with and let the user possibly have some fun with as well. Maybe I’ll give them some pens and crayons and they can doodle and color while they wait on the phone, instead of using up the boss’ paper pads. I rarely do anything as mundane as “normal”, life is too short! 😉
roundtuit
ParticipantStill 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.
roundtuit
ParticipantPerfect! Works like a charm and even makes sense to this old brain. Thanks much!!!
roundtuit
ParticipantOK, I turned my nifty little window builder into a function with a
return w
Just prior to the return, from withing the function I tried
w.Vert.Canvas.AddItem( which yielded “uninitialized member: #Vert”
So I tried the same thing external to the function and still got the same error.
roundtuit
ParticipantThat would be spectacular! Thanks!!
roundtuit
ParticipantCongratulations!!! You’ve reached another milestone, but don’t throw your shoulder out patting yourself on the back because, it’s just that, another milestone on an endless road 😉 Long after you have gone to your final reward, you’ll be saying “but just one more little enhancement… little bug fix… little change”. I’m convinced in that place, we will have a desk and that if we were good in life a super computer, otherwise it’s back to 8086 processors and 5 1/4 inch floppies. Don’t deprive yourself of well earned rewards waiting for something to be “finished” because “finished” never happens and you deserve the rewards. Just some life observations from an old code-horse.
So, Congratulations again! By the way, is it available publicly?
roundtuit
ParticipantNo need for more work on your part, it’s fine as it is. Can’t De-Darwin the whole world, we the ignorant just have to learn or perish. I’m trying to keep notes on the gotchas I encounter so maybe when I’m proficient and knowledgeable enough, I can put together “A Complete Guide to Programming Suneido for Complete Morons” (like me, lol) and remember all the little things that need to go into it. Thanks again for this great language. I haven’t had this much fun since Clipper 5.x!
roundtuit
ParticipantA good night’s sleep does wonders! I finally stumbled upon the fact that function names must start with a Capitol letter. 😳
One of the joys of learning a new (to me) language, it’s the little things that will kill you. So far, all the BIG things have been relatively easy to understand and implement and I’m a lot further along than I expected to be! Thanks for this GREAT language! -
AuthorPosts