[wxWidget] wxTreeCtrl + click droit

wxTreeCtrl + click droit [wxWidget] - C++ - Programmation

Marsh Posté le 15-02-2005 à 17:37:54    

Bonjour,
 
J'ai un wxTreeCtrl avec des composants à l'interieur.
Comment faire pour que quand on fait un clique droit sur un de ses composants ça ne nous affiche un menu ?
 
Merci d'avance...

Reply

Marsh Posté le 15-02-2005 à 17:37:54   

Reply

Marsh Posté le 15-02-2005 à 18:44:17    

comme d'hab, tu crées une EVENT_TABLE sur ton TreeCtrl, tu crées un menu kivabien (type wxMenu) que tu remplis comme il faut et que tu associes à ton tree et tu bind l'évènement EVT_RIGHT_CLICK à un popup du menu [:spamafote]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 16-02-2005 à 16:26:36    

Es-tu sûr du: "EVT_RIGHT_CLICK" parce que quand je compile il met dit qu'il ne le trouve pas...
 
Et google ne me trouve qu'un site sur: "EVT_RIGHT_CLICK", ce qui me semble bien peu...

Reply

Marsh Posté le 16-02-2005 à 16:55:14    

vincent0 a écrit :

Es-tu sûr du: "EVT_RIGHT_CLICK" parce que quand je compile il met dit qu'il ne le trouve pas...
 
Et google ne me trouve qu'un site sur: "EVT_RIGHT_CLICK", ce qui me semble bien peu...


Et c'était sûrement trop dur de faire une putain de recherche dans la doc wxWidgets, elle est tellement obscure après tout
 
 [:masklinn]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed