Custom-events for TFrame

228 Views Asked by At

Is it possible to have the Event list in the IDE for a frame extended by an event I define in a TFrame descendant:

TYPE
  TFrame1 = CLASS(TFrame)
            ...
            ...
            PRIVATE
              FSomething : TNotifyEvent;
            PUBLISHED
              PROPERTY OnSomething : TNotifyEvent Read FSomething Write FSomething;
            END;

and then have "OnSomething" Visible in the IDE when I select the dropped TFrame on a form?

In a similar vein:

Is it possible to not have the sub-component on a TFrame selectable in the IDE, so that I can expose only the Events for my TFrame and not allow the user to access the events for the sub-components? And is it possible to "suppress" the standard events for a TFrame so that only the events I PUBLISH is visible?

0

There are 0 best solutions below