Fórum Acessar propriedade #61682
17/08/2005
0
Preciso fazer em BCB o equivalente a [b:db051b3812]TButton(Sender).Text [/b:db051b3812]em Delphi.
Já tentei muitas formas e não consegui. Tem como alguém me ajudar?
Grato,
Rodrigo Cesar
Rodcesar
Curtir tópico
+ 0Posts
17/08/2005
Rodcesar
TButton(Sender).Caption
Gostei + 0
17/08/2005
Rjun
((TButton)sender).Caption
Gostei + 0
17/08/2005
Rodcesar
Gostei + 0
05/09/2005
Martins
TButton(Sender).Caption
Tem muito tempo q deixei de brincar com C/C++, mas veja se isso pode lhe servir de alguma maneira
TButton*Sender->Caption = "Teste";
ou assim, não lembro bem.
Btn = new TButton(this); Btn->Parent = this; Btn->Top = 100; Btn->Width = 120; Btn->Left = 100; Btn->Height = 35; Btn->Caption = "Teste"; Btn->OnClick = BtnClick;
Veja o q pode ser aproveitado daqui.
Gostei + 0
05/09/2005
Martins
TButton(Sender).Caption
Tem muito tempo q deixei de brincar com C/C++, mas veja se isso pode lhe servir de alguma maneira
TButton*(Sender)->Caption = "Teste";
ou assim, não lembro bem.
Btn = new TButton(this); Btn->Parent = this; Btn->Top = 100; Btn->Width = 120; Btn->Left = 100; Btn->Height = 35; Btn->Caption = "Teste"; Btn->OnClick = BtnClick;
Veja o q pode ser aproveitado daqui.[/quote:ecd13a7c43]
Gostei + 0
29/09/2005
Rodcesar
(TButton*)(Sender)->Caption = "Teste";
Gostei + 0
10/10/2005
Martins
(TButton*)(Sender)->Caption = "Teste";
Blz, parabéns!!!
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)