Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,480 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,712 people online right now. Registration is fast and FREE... Join Now!




me again

 
Reply to this topicStart new topic

me again

didgy58
5 Mar, 2008 - 08:56 AM
Post #1

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
hi guys ive solved all my other problems so far just wondering about this, how to go about it really,

so a user right clicks on my coil, and the menu system appears, one of the options is to rotate the coil around a certain angle, currently the angle is hard coded to be 45deg, but i would like it to be optional to them, so how do i go about accepting a input from the user, would i use something like a prompt box?? where they type the angle in and then i just take the returned value and add it to my formula, is there a prompt in VC++ ive taken a look cant seem to find much on google, its an mfc application so im kinda stumped on what sort of box i should be using???

thanks

dan
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: Me Again
5 Mar, 2008 - 09:54 AM
Post #2

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,009



Thanked: 5 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
You could create another form with text field and a button, where you could ask the user to enter the number, then you can validate the field making sure it's a number, then pass that value back to the function you use to change the angle.
User is offlineProfile CardPM
+Quote Post

didgy58
RE: Me Again
5 Mar, 2008 - 10:07 AM
Post #3

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
i was thinking along those lines. kind of like how i would have done it in visual basic really. ok ill look into it thanks very much

dan
User is offlineProfile CardPM
+Quote Post

didgy58
RE: Me Again
5 Mar, 2008 - 01:11 PM
Post #4

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
im sort of lost with this, i create the form in resource which i have done, so then from the context menu on the item i click on that should open the form how do i go about loading the form??

ive created a new dialog form in resources is that what i should have done and created a class of the CFormView. but im kinda stuck on how to load it.

do i go into the onrightmouserotate code and do the loading menu???



User is offlineProfile CardPM
+Quote Post

didgy58
RE: Me Again
5 Mar, 2008 - 02:49 PM
Post #5

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
its ok guys sorted it out thanks again

dan
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 06:48PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month