Denis

Thanks, that would prob work

mind you shouldn't that be "for f := 0 to Screen.FormCount-1 do"
our were you just testing me :-)

Neven


----- Original Message -----
From: "Dennis Chuah" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 3:21 PM
Subject: Re: [DUG]: PostMessage


>
> HWND_BROADCAST only works with SendMessage.
>
> Try this code instead:
>
> var
>   f: Integer;
> begin
>   for f := 0 to Screen.FormCount do
>     Screen.Forms[f].Perform (WM_APPDATACHANGE, 0, 0);
>
> Dennis.
>
> ----- Original Message -----
> From: "Neven MacEwan" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 18, 2003 10:28 PM
> Subject: [DUG]: PostMessage
>
>
> > Hi all
> >
> > In my app I have a whole lot of forms which are embedded in a page
control
> > of the 'Main Form'
> > If one one these forms wants to notify all other forms in the app of a
> > change, what is the best way to do it?
> >
> > Iv'e tried
> >
> >   PostMessage(HWND_BROADCAST, WM_APPDATACHANGE, 0, 0);
> >
> > but none of the other forms seem to get this message, is this because I
> > really only have 1 form in my app?
> >
> > TIA
> >
> >
> >  Regards Neven
> >  N.K. MacEwan B.E. E&E
> >  Ph 649 621 0001
> >  Fax 649 621 0400
> >  [EMAIL PROTECTED]
> >
>
> --------------------------------------------------------------------------
> -
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> >
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to