Re: Intercepting new card
Originally my menuPick handler was in the stack script, but as I found out, that didn't work so I inserted the stub into the frontScripts to call the custom handler in the stack. The problem with that was that when the custom handler fired it was trying to act on revMenubar, so I had to set the defaultStack to the topStack first. What a wasted morning. I think it all works now. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Intercepting new card
Mikey wrote: Hmm. Well, back in HC, if I wanted to intercept a new card being created, I had an on doMenu handler. When I put in an on menuPick handler in RR and hit ctrl-n, my handler doesn't get hit, and a new card is created. So if this handler should not go in the current stack where should I put it? How is your menupick handler set up? In general, I use only a reference to a handler in the menupick, and then put the actual working handler in the message path (card or stack, depending.) So, I'd have something like this: on menupick pWhich case "New card" doNewCard break case end menupick And then in the card or stack: on doNewCard create card end doNewCard That should work. If it doesn't, then the doNewCard handler isn't in the message path and you'd need to figure out why. Often, if you are testing in the IDE, it is Revolution's menus that will get the message, not yours. Rev will make a new card and your own menupick will never fire. (You can test whether this is the case by setting a breakpoint in your menupick handler. If it doesn't break, your menu isn't getting the command.) To make sure you are really triggering own menus on Mac, set editmenus to false so that your menu bar is in the system menu. Or if editmenus is true, specifically choose the New Card item from your menu using the mouse. On Windows and Linux, use the mouse to make sure you are triggering your own menu and not Rev's. Or you can try suspending the development environment to see how it will work in a standalone. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Intercepting new card
as it turns out, it appears that intercepting newCard isn't what I wanted, either, since I don't get the message until after the card is created. I want to do some work ahead of time. -- Bob Hope - "Middle age is when your age starts to show around your middle." ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Intercepting new card
If I'm not mistaken, you could certainly do it with a front script. Just be sure to pass it, or none of the menus in the IDE will work. So put a menuPick handler in a button or some other object, then "insert the script of into front". On Jul 2, 2008, at 8:35 AM, Mikey wrote: Chris, Thanks for that, but for curiosity sake, what is necessary to intercept the menuPick, or is this one of those cases where you can't because RR is directly executing a RR command? -- Diogenes - "What I like to drink most is wine that belongs to others." ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Intercepting new card
Chris, Thanks for that, but for curiosity sake, what is necessary to intercept the menuPick, or is this one of those cases where you can't because RR is directly executing a RR command? -- Diogenes - "What I like to drink most is wine that belongs to others." ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Intercepting new card
Unless I'm misunderstanding, I believe you want the newCard message, placed in your stack script. On Jul 2, 2008, at 8:12 AM, Mikey wrote: Hmm. Well, back in HC, if I wanted to intercept a new card being created, I had an on doMenu handler. When I put in an on menuPick handler in RR and hit ctrl-n, my handler doesn't get hit, and a new card is created. So if this handler should not go in the current stack where should I put it? -- Ronald Reagan - "Recession is when a neighbour loses his job. Depression is when you lose yours." ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution