Re: Help Drawing in Wingz/Hyperscript
Posted in 1994
Hi Raymond! > I need help with Wingz 1.1, specifically writing something in Hyperscript. > > I have a dialog box with several buttons in it. Now I need to add an > new customized button what looks like a submarine. Nothing fancy, basically > a simple circle, with a small rectangle on the top and two little triangles > coming off the rectangle to the sides . . . > > I've been programming in Hyperscript now for two years, but I have never > had to do drawing in a dialog box, and I need help. Congratulations!! > Before trying to draw a submarine, I had tried adding arrow heads to some >lines in a dialog box. I created a button, got rid of its border and fill, >and attached the following script to it: ... > Not pretty, but it made a simple filled arrow head for me. I had thought Hmmm... your right about that! > So anyways, am I doing this right? Well... > Help! Please! The commands provided to draw stuff in a dialog box >are not fun! If anyone knows just what I need to do to make the circle, >I will take it from there! This 255 character limit may cause problems. >If all else fails, I could just make the sub out of several small graphics >and put an invisiable button over the whole thing when I am done. I don't >really care how kludgy the whole thing is, looks are more important at >this point - my sanity as well as the code's readability and elegance are not >a priority. > >Thanks! > >raymond.bowers@wdn.com > Well this is the way I would do it. First draw the submarine with your favourite drawing tool and save it as a gif. then do a: read picture "submarine.gif" range a3 and adjust it so its the correct size. I would then draw a colored box and send this to the back of the picture. Then create a button the same size as the picture and fill it with 'N' -neutral colour. (Format-Fill menu). Remove the button name and place this behind the picture. This will create an invisible button sitting behind the picture, so when the user clicks the picture, he is in fact clicking the button. The reason I filled the button with 'N' is so you get visual feedback from the click. If you had set the button to transparent, you wouldn't get the 'push-down' image. I hope I've been of some help.. Regards.. -Vlod (in lovely sunny London, England ! ) ########################################################## Vlod Kalicun. email: vlod@iisc.demon.co.uk Investment Intelligence Systems Corp. Ceybank House, 22 City Rd. London. UK. ##########################################################