> 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).

There is no direct equivalent of Withevents in RB but any class can be
placed on a window.

> 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

> In a window "X" I have created a property MyProperty As MyClass....

If you want to access the events from the Window, don't declare MyProperty
as Myclass.

Drag any control onto (or preferably beside) the window and change its
Super to "MyClass" then change its name to "MyProperty" (or preferably
something more appropriate, now it's not a property)

The Window will now have an Event Handler for its "MyEvent"


--
Steve Garman
Using REALbasic 2006r2 Professional on Windows XP Pro


_______________________________________________
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>

Reply via email to