|
i wanna plot x-y data in a graph, tht is being written by my vc++ pgm to a text file. those text file data has to be read and plot into the graph,and it has to be displayed at run time.....
|
|
|
|
|
It'd be crude, but you could experiment with LineTo() (which can draw one-pixel dots) and related functions.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If you are looking for a graph that need to be drawn by yourself, then go for a custom control. It can simply be developed from CStatic.
- NS -
|
|
|
|
|
its a x-y plot from a set a data, where a text file has this set of data.
its being ploted at runtime ? can v?
|
|
|
|
|
Ofcourse. But need to code all the drawings...
- NS -
|
|
|
|
|
|
|
Hi
I have the DialogeBox and over it the PictureBox . now I just
want capture the events.WM_LBUTTONDOWN, WM_MOUSEMOVE,WM_LBUTTONUP
when I let mouse over the PictureBox only.
Trioum
|
|
|
|
|
One way to do it without many difficulties is to walk around.
You can get without difficulties the mouse messages/events in the dialog box. And you have a parameter CPoint point that gives you where the click was made or the pointer is.
then...
Just take the coordinates of the bounding square of your picture and ask if you are inside of it. I mean:
CRect rectPict;
rectPict.top = YourPicture.top;
rectPict.bottom = YourPicture.bottom;
rectPict.left = YourPicture.left;
rectPict.right = YourPicture.right;
if (rectPict.PtInRect (point))
{
}
else
{
}
Hope it helps
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
This can not help me because I have to handle mouse events of 10 components
on my dialoge box
Trioum
|
|
|
|
|
trioum wrote: I have to handle mouse events of 10 components
on my dialoge box
Which contrasts with your initial "when I let mouse over the PictureBox only" comment. Make up your mind before asking for help.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Derive a class from the picture box using the ClassWizard. Then you can manage the messages.
- NS -
|
|
|
|
|
:->which book helps a lot for beginners in VC++
who is gud at C++
kp
|
|
|
|
|
if you said of your info about C++ was better and what do you want to know exactly?
|
|
|
|
|
One of the founder of C/C++ wrote some really good books: Bjarne Stroustrup.
He really deserves to be read.
Also O'Reilly has undstanding books in every way.
Greetings from Germany
|
|
|
|
|
KarstenK wrote: One of the founder of C/C++ wrote some really good books: Bjarne Stroustrup.
Dr. Stroustrup had nothing to do with C. Furthermore, he was not "one of the founders" of the language; he was the designer and original implementor of it.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
KarstenK wrote: "Stroustrup, in his own words, "invented C++..."
I never said he didn't.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
From where do you start?
Do you know programming but need to learn syntax and idioms of C++?
What language did you do before?
Are you just starting with programming as a whole?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: Do you know programming but need to learn syntax and idioms of C++?
What language did you do before?
Are you just starting with programming as a whole
yes iam just starting with programming,
iam appointed as a trinee in VC++.
|
|
|
|
|
I am sorry, I only have books on C++ for someone who has at least *some* knowledge of programming.
That was where I started
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Mr.Jhwurmbach me also not bad at programming..
but iam placed here as a fresher.ido't have fullpledged knowledge in VC++,upto my syllabus i know some basix of VC++.that iam asking u 2 Suggest books for improving my programming skills...
i hope u suggest some gud books for me
regards,
kp
|
|
|
|
|
I used
Nicolai M. Josuttis,"Object oriented Programming in C++", Addison-Wesley
Nicolai M. Josuttis,"The C++ standard library", Addison-Wesley
Richard M. Jones, "Introduction to MFC-programming with Visual C++", Prentice Hall
These are when you know all the basics, but before you developed a personal style:
Scott Myers, "Effective C++", Addison-Wesley
Scott Myers, "More Effective C++", Addison-Wesley
Scott Myers, "Effective STL, Addison-Wesley
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
thanQ Mr.Jhwurmbach
I do't have any particular tutor in this org for VC++ and iam the only person who selected for VC++.
so i have 2 prepare my own.
anyway iam thankful 2 u for suggestions.
and if possible pls suggest me some techniqs for self preparation in VC++.feel free 2 mail me kp007in@rediff.com
thanQ sir,
kp
|
|
|
|
|
krishna Vuppala wrote: I do't have any particular tutor in this org for VC++ and iam the only person who selected for VC++.
please look at this section of codeproject. http://www.codeproject.com/cpp . plus take my suggestion, please don't use SMS style language here.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|