BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HELP me! newbie: use Tbutton

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
remo
Guest





PostPosted: Sat May 21, 2005 8:38 pm    Post subject: HELP me! newbie: use Tbutton Reply with quote



Hi,
I use Borland C++ 5.
I create a new project so I have a empty form.
I insert into the form a TButton and a TLabel.
Now, I want change the text in the label when I click the button.
What I must write into method "Button1Click"?

void __fastcall TForm1:: Button1Click(TObject *Sender)
{
...........????
}


and... if I want change olso the text color?
for the future: where can I find all the VCL method?
Tnx
RE


Back to top
Michael Kutscher
Guest





PostPosted: Sat May 21, 2005 9:40 pm    Post subject: Re: HELP me! newbie: use Tbutton Reply with quote



Hi,

Quote:
Now, I want change the text in the label when I click the button.
What I must write into method "Button1Click"?

void __fastcall TForm1:: Button1Click(TObject *Sender)
{
// this way:

Label1->Caption="New Text";
Label1->Font->Color=clRed;
Quote:
}
and... if I want change olso the text color?
for the future: where can I find all the VCL method?

Click on the Controll on Your form, then use the F1-Key. You get general
information about the controll, all methods a.s.o.

If You don't get the information using F1, maybe, cpp-builder isn't
installed completely/properly.

Good Luck
Michael



Back to top
remo
Guest





PostPosted: Sun May 22, 2005 3:45 pm    Post subject: R: HELP me! newbie: use Tbutton Reply with quote



TNX

Michael Kutscher <spam.ignore (AT) pc-coach (DOT) de> wrote in message
[email]428fac09_1 (AT) news (DOT) arcor-ip.de[/email]...
Quote:
Hi,

Now, I want change the text in the label when I click the button.
What I must write into method "Button1Click"?

void __fastcall TForm1:: Button1Click(TObject *Sender)
{
// this way:
Label1->Caption="New Text";
Label1->Font->Color=clRed;
}
and... if I want change olso the text color?
for the future: where can I find all the VCL method?

Click on the Controll on Your form, then use the F1-Key. You get general
information about the controll, all methods a.s.o.

If You don't get the information using F1, maybe, cpp-builder isn't
installed completely/properly.

Good Luck
Michael





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.