New topic: Added Event Definitions for WebContainer.... I'm at a loss
<http://forums.realsoftware.com/viewtopic.php?t=45599> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message anthonyjules Post subject: Added Event Definitions for WebContainer.... I'm at a lossPosted: Sat Oct 13, 2012 12:04 pm Joined: Sat Oct 13, 2012 11:34 am Posts: 1 Hi Everyone, I am a relatively new user to RealStudio. I have already had a number of issues solved by looking at these forums, ... so thank you! My problem is the following: I have created a WebContainer subclass (call it XX) that contains a number of controls. Including a delete button. I create a number of these XX's and put them into a control array inside another WebContainer. I also maintain another array of these for housekeeping reasons. I would like to use the Delete button inside the XX to delete an instance when the user clicks it. I need the parent control to be notified that the user wants to delete one of the XX's so the remaining ones can be moved around etc. I thought the right way to do this would be to create an new Event Definition (call it "DeletePressed") inside the class definition of XX. Then place the following code in the Action event handler for the delete button: RaiseEvent DeletePressed Then in the parent WebContainer (where the new event handler shows up) put code in the "DeletePressed" Event Handler.... The problem is that this never seems to get called. I can Breakpoint the RaiseEvent code in the delete button's Action Event handler and I see execution makes it to there... but the "Delete Pressed" event of the parent never gets called. I hope this all makes sense. Thank you in advance for any help you can give. -Jules BTW: I am running 2012R1 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
