🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4945

Re: Comunication beetween 2 forms

#4945
From: alfred
Date: Thu, 13 Oct 2005 00:04
25 lines
1830 bytes
ok thank you.
I have a main form (Form1) with "fsMDIForm" and 2 form with "fsMDIChild" (Form2 and Form3). 1 Label in each form.

in Form2 :
void __fastcall TForm2::FormMouseDown(TObject *Sender, TMouseButton Button,
      TShiftState Shift, int X, int Y)
{
        Label1->Caption="1";
        Form1->Label1->Caption = "1";
        Form3->Label1->Caption = "1";

}
void __fastcall TForm2::FormMouseUp(TObject *Sender, TMouseButton Button,
      TShiftState Shift, int X, int Y)
{
        Label1->Caption="0";
        Form1->Label1->Caption = "0";
        Form3->Label1->Caption = "0";
}

When I click with the mouse on the Form2, the label in Form2 and Form3 are updated fine, the label in the main form is not updated.
Any idea ?
thank you very much
Alfred
Technical Details
Message-ID: <434da490$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <434c5288$1@newsgroups.borland.com> <434c7632$1@newsgroups.borland.com> <434d8ca5$1@newsgroups.borland.com> <434da00b$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,44c755519a14ea21
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "alfred" <alfredo@no.spam>
Sender: "alfred" <alfredo@no.spam>
Reply-To: "alfred" <alfredo@no.spam>
Subject: Re: Comunication beetween 2 forms
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 82.50.147.63     
References: <434c5288$1@newsgroups.borland.com> <434c7632$1@newsgroups.borland.com> <434d8ca5$1@newsgroups.borland.com> <434da00b$3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <434da490$1@newsgroups.borland.com>
Date: 12 Oct 2005 17:04:32 -0700
X-Trace: newsgroups.borland.com 1129161872 207.105.83.66 (12 Oct 2005 17:04:32 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail