 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
remo Guest
|
Posted: Sat May 21, 2005 8:38 pm Post subject: HELP me! newbie: use Tbutton |
|
|
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
|
Posted: Sat May 21, 2005 9:40 pm Post subject: Re: HELP me! newbie: use Tbutton |
|
|
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
|
Posted: Sun May 22, 2005 3:45 pm Post subject: R: HELP me! newbie: use Tbutton |
|
|
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 |
|
 |
|
|
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
|
|