New topic: pushbutton not firing on mouseclick
<http://forums.realsoftware.com/viewtopic.php?t=41291> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message Art Post subject: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 9:33 am Joined: Mon Sep 25, 2006 3:25 pm Posts: 331 I have a pushbutton whose action event doesn't fire when I click it with a mouse. What its function is is to copy the text from a listbox's active cell on the same window into a separate window. I know the code works. I have a menuitem that will push the button, and the window pops up. I've tried putting return true into the mousedown event with no effect. It also works on Mac with no problem. Suggestions? Top Jason_Adams Post subject: Re: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 9:56 am Joined: Fri Nov 10, 2006 4:10 pm Posts: 1012 Location: Michigan, USA If you return true in the MouseDown event it will not fire the Action event, as you're notifying the control not to handle the mouse click. Otherwise it's a Push Button and the Action event isn't firing? _________________ Windows 7 Ultimate x64 Windows XP Pro SP3 Ubuntu 11.04 via Virtual Box RS Enterprise 2011r3 "Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton Top Art Post subject: Re: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 10:34 am Joined: Mon Sep 25, 2006 3:25 pm Posts: 331 Thanks. Now it works on the 2nd click. Top Art Post subject: Re: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 10:44 am Joined: Mon Sep 25, 2006 3:25 pm Posts: 331 Just in it wasn't clear, it should open on the first click. Top timhare Post subject: Re: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 12:07 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 10372 Location: Portland, OR USA Art wrote:Thanks. Now it works on the 2nd click. It's likely that the action event is firing on the first click, but the environment isn't what you expect it to be, so you're not getting the result you expect. Have you put a breakpoint in the action event to check it? Top Art Post subject: Re: pushbutton not firing on mouseclickPosted: Thu Nov 03, 2011 1:43 pm Joined: Mon Sep 25, 2006 3:25 pm Posts: 331 I guess that wasn't obvious by my post. Yes. Definitely a breakpoint at the start Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 6 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]
