Hi, Maarten!.... Hi, everyone! Apologize, bad question. I didn't make the explanation correctly
I don't want to fire the event from the outside, really desire to intercept that event inside a window or another object, for that reason I said: to declare "withevents" like we make in VB (Delphi has its way to make it, but also makes it). I know how to make it when we use a subclase that inherits of a control (Control, RectControl or other), but not when the object inherits of a "Pure" class, that is to say, when the object is created from a class whose Super is nothing. An example: I have a Class with name MyClass (Super is nothing, isn't visual, isn't a control), in that class an event whose name is MyEvent On the other hand In a window "X" I have created a property MyProperty As MyClass.... How I can intercept inside the window "X" the event called "MyEvent"? take look at how I had made with VB inside a window Private MyProperty Withevents As MyClass Private Funtion MyOwnFunction ........ Code End Function Private Sub Form_Load() ........... Code End Sub Private Sub MyProperty_MyEvent(param1, param2,......, param n) Msgbox "The event was fired" End Sub Warmest Regards Juan. ----- Original Message ----- From: "Maarten de Vries" <[EMAIL PROTECTED]> To: "REALbasic NUG" <[email protected]> Sent: Monday, July 10, 2006 3:49 PM Subject: Re: to Fire classes' events. Is it possible? > If you want to fire an event from the outside, you need to make a method > that fires the event (you fire an event just like you call a private > method). For example, you make an event "Fired", and a method "Fire" (I > belive you can actually call it the same as the event, but I'm not sure). In > the method, you put "Fired" and then you call the method. > > Maarten > > > On 09/07/06, Jvan C0rt3s Cv3sta <[EMAIL PROTECTED]> wrote: > > > > I have looked for in RealBasic's help files and I don't find the way to > > fire > > an event that there is in a class designed by me. > > I have not found anything about "classes' events" topic > > I know how to make it with a control, but I don't know if RealBasic allows > > to make the same thing that VB, that's to say, to declare a object's > > variable "withevents" and uses them inside another object (for example a > > window). > > > > Sometimes it's better to use classes than controls in our code, because of > > many things.... > > > > Also, I am looking for something to RB (similar to crystal Report) in > > order > > to make reports of stored data > > maybe, I could use the ActiveX libraries for Windows , but, and if it was > > linux? besides, I believe that Crystal Reports doesn't have support for > > RealSoftware Database Format.... > > > > Do you see it?... I'm moving on to RealBasic :-) > > > > some idea, please > > > > Warmest regards > > > > Juan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > Unsubscribe or switch delivery mode: > > <http://www.realsoftware.com/support/listmanager/> > > > > Search the archives of this list here: > > <http://support.realsoftware.com/listarchives/lists.html> > > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
