New topic: Clicking Canvas1 Exit Application?
<http://forums.realsoftware.com/viewtopic.php?t=38206> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message Koopa Post subject: Clicking Canvas1 Exit Application?Posted: Sat Mar 19, 2011 6:34 am Joined: Sat Mar 19, 2011 5:57 am Posts: 9 How is it possible? I know in VB you do it with a "Label" and put a picture in the label instead of text. Thanks in advance, ~KooPa Top mjh Post subject: Re: Clicking Canvas1 Exit Application?Posted: Sat Mar 19, 2011 6:48 am Joined: Sun Feb 19, 2006 3:10 pm Posts: 1151 Location: Hamburg, Germany Koopa wrote:How is it possible? You mean how to quit the application when the user clicks on a certain Canvas? Just call Quit in the MouseDown event handler of the Canvas. Or return true from the MouseDown event handler and call Quit from the MouseUp event. Koopa wrote:I know in VB you do it with a "Label" and put a picture in the label instead of text. In RB a Label is text-only. (No idea how that relates to your question about exiting the application.) _________________ Michael J. HuÃmann http://digicam-experts.de Top eddy2099 Post subject: Re: Clicking Canvas1 Exit Application?Posted: Sat Mar 19, 2011 7:05 am Joined: Sun Jan 23, 2011 11:59 am Posts: 109 Like what Michael Said, the Label is just for text. If you want to add a picture, you could use the ImageWell or better still the BevelButton. With the Label or ImageWell, you could simulate a click through the "MouseDown" event. For the BevelButton, you do so with Action event. The command to quit the app is "Quit" _________________ RealStudio 2011R1 â¡ Macbook Pro Mac OS X 10.6.6 http://www.batchimage.com http://www.completemagic.com Top Koopa Post subject: Re: Clicking Canvas1 Exit Application?Posted: Sun Mar 20, 2011 6:45 am Joined: Sat Mar 19, 2011 5:57 am Posts: 9 Thanks for the help guys. Can someone close this please? I've gotten my answer. (: Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
