 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Francois Trottier Guest
|
Posted: Tue Sep 16, 2003 10:10 pm Post subject: Propriété des objets |
|
|
comment on fait pour changer les propriété des objets comme par
exemple le caption d'un boutton ? Je sais qu'en vb on peut faire
qqchose comm objet.propriété = mais comment weut n faire cela en c ++
?
|
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
Posted: Tue Sep 16, 2003 10:47 pm Post subject: Re: Propriété des objets |
|
|
On Tue, 16 Sep 2003 18:10:13 -0400, Francois Trottier
<francoistrottier (AT) videotron (DOT) ca> wrote:
| Quote: | comment on fait pour changer les propriété des objets comme par
exemple le caption d'un boutton ? Je sais qu'en vb on peut faire
qqchose comm objet.propriété = mais comment weut n faire cela en c ++
|
En C++, ça n'a pas de sens.
En VC++, ça a peut-être un sens, mais c'est hors-sujet ici. Cf FAQ.
--
Let's face it, boys: the Trash Heap _is_ all.
-- the Trash Heap, Fraggle Rock, ep 1
|
|
| Back to top |
|
 |
Pierre Maurette Guest
|
Posted: Wed Sep 17, 2003 2:54 am Post subject: Re: Propriété des objets |
|
|
"Loïc Joly" <loic.actarus.joly (AT) wanadoo (DOT) fr> a écrit
Bon, François a déjà été grondé et cfFAQé pour le HS, voila une bonne chose
de faite.
Il parle de vb, donc on suppose du Windows.
Au niveau Windows (indépendant du langage), c'est un message.
SendMessage(handle_du_bouton, WM_SETTEXT, 0,
(LPARAM)pointeur_sur_la_chaine);
| Quote: | Et que les mêmes fonctions soient appelées. Dit autrement, une propriété
serait une pseudo-variable qui appellerait éventuellement des fonctions
en cachette.
Oui, en C++Builder : |
MonBouton->Caption = "Exit";
Appelle un SetText private. Idem pour GetText.
Mais au final, ça se termine par un envoi de message.
Bonne journée,
Pierre
|
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
|
| 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
|
|