Hi Mick.

After some experimentation with the message queue and other 'wild' 
Microsoft stuff, I turned back to this basic approach.
The simplest way it is always the best way!
:)



[EMAIL PROTECTED] wrote:
> Couple of things
> MdiChildren is an indexed list of Child forms and
> MDIChildCount tells you how many there are.
>
> But there is a better way.
> Make a custom childform and then descend all your child
> forms from that. In this custom form put some smarts to
> notify the Mdi form when significant events occur.
>
> Then as you make each form pass it to an Mdi routine that
> loads these Smart events with Mdi Event Handlers.
> I imagine that first you are looking at OnClose so that you
> can remove the tab. OnCreate is already handled by your Mdi
> routine. Later you add Event Handlers for
> OnCloseQuery
> OnActivate
> OnDeactivate
> OnShow
>
> the list is endless.
>
> In my custom forms I store custom menus - show that menu
> when the form 's OnShow Custom print routines and most
> anything else where I need to communicate between Master and
> Child
>
> Mick
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
>   
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to