RightClick Menus

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2008
Posts: 517
Reputation: Jennifer84 is an unknown quantity at this point 
Solved Threads: 1
Jennifer84 Jennifer84 is offline Offline
Posting Pro

RightClick Menus

 
0
  #1
Oct 8th, 2008
How is it possible to get a menu where you rightclick on the Form ?
I am not sure if this is the contextmenu. I tried to add this to the Form and also some
components to it but that did however not work.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,743
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 739
Team Colleague
Narue's Avatar
Narue Narue is online now Online
Code Goddess

Re: RightClick Menus

 
1
  #2
Oct 8th, 2008
I don't want to sound mean, but you should try a different method of study, or perhaps consider that you may not be suited to programming. I've watched you ask questions for months without making any progress at all, and it's kind of depressing.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 517
Reputation: Jennifer84 is an unknown quantity at this point 
Solved Threads: 1
Jennifer84 Jennifer84 is offline Offline
Posting Pro

Re: RightClick Menus

 
0
  #3
Oct 8th, 2008
Narue, I have to answer you well here because this is also not your first time you write this to me.
First I respect what you say, I dont want to be mean either. I begun programming in January this year without knowing anything and until this date I have coded the program that I am doing and it is going great. So far I have coded over 800 A4 pages and almost 500of these pages is an interpreter where you can code yourself in that program. This is not easy to do as you know.
This whole solution has a base built up on 3D vectors that you should have noticed also that I have asked some questions about ?
Consider that I have asked few A4 pages about this, Yes.
And from that very thankful help I have myself been taken this information and myself created 500 A4 pages. Look at my posts, there is a gap between 30 Jul - 31 Aug. Here I did 300 pages without help.
The Interpreter speed is 10 times faster than worldleading programs that I am on my way to beat in other functions. That is deep thinking.
So understand me right. You are wrong when you say that I am not suited to programming.
It is not only knowing how to do all the Toolbox functions but very much how you actually do the solutions. I get one help and I do 100 of things with that help. Trust me on that.
Anyway I dont meen anything bad with this and I do appriciate the help that I´ve got from before very much. Without that I would never come this far !!



Originally Posted by Narue View Post
I don't want to sound mean, but you should try a different method of study, or perhaps consider that you may not be suited to programming. I've watched you ask questions for months without making any progress at all, and it's kind of depressing.
Last edited by Jennifer84; Oct 8th, 2008 at 5:34 pm.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 70
Reputation: mcriscolo is an unknown quantity at this point 
Solved Threads: 18
mcriscolo mcriscolo is offline Offline
Junior Poster in Training

Re: RightClick Menus

 
0
  #4
Oct 8th, 2008
Jennifer,

If you still need an answer on this, here it is:

Add a ContextMenuStrip to the form and put some elements in it, then add an event handler for the "MouseDown" event, and add the following code:
  1. if (e->Button == System::Windows::Forms::MouseButtons::Right)
  2. {
  3. contextMenuStrip1->Show(e->X, e->Y);
  4. }
That should pop the menu when you right-click on the form.
-Mike
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 517
Reputation: Jennifer84 is an unknown quantity at this point 
Solved Threads: 1
Jennifer84 Jennifer84 is offline Offline
Posting Pro

Re: RightClick Menus

 
0
  #5
Oct 8th, 2008
Thanks, mcriscolo, I think I could have found a solution also by adding Items and choosing "contextMenuStrip1" on the Form properties. I will check your method out also.
/j
Last edited by Jennifer84; Oct 8th, 2008 at 8:07 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC