Search found 14 matches

by Sadbrute
Fri May 20, 2011 4:42 pm
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

NOOOOOOOOOOOOOOO! way!! Thx , wow i feel dumb....

By the way, when does the 64 bit version come out ;)
by Sadbrute
Fri May 20, 2011 2:51 pm
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

Is there a way to to point out a specific point ,like put a dot on the curve and have (doted) lines that point to it's respective XY coordinates?

P.S i know you have the TextPointLabel macro!
by Sadbrute
Fri May 20, 2011 1:50 pm
Forum: C, C++, C#
Topic: How to plot 2 different curves?
Replies: 1
Views: 24022

Let me precise my question: Is there a way to make 2 different curves on the same plot (graph) with 2 different starting points and different steps (dx)? Because, in VB6 it does not seem to work the same way...
by Sadbrute
Fri May 20, 2011 1:25 pm
Forum: C, C++, C#
Topic: How to plot 2 different curves?
Replies: 1
Views: 24022

How to plot 2 different curves?

If X[0] determines the DX and x[1] the strating point ? How do i determine two different starting poits for 2 different curves? Because, x[2] and x[3] does not seem to work for the second curve.

Is there a way to plot with our own coordinates ?
by Sadbrute
Fri May 20, 2011 12:37 pm
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

Ahhhhhhhhhhh X[0] determines the jumps and x[1] the start, if i want a graph with my custom points do i need to use XY macro?
by Sadbrute
Fri May 20, 2011 11:29 am
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

Ok i have fixed the Activate(2) problem. I have a plot of 3 points. it should give me a rectangle with the axis instead i have this: aaa/-------------- aa/ a / / With this code: memset(&dplot_,0,sizeof(dplot_)); dplot_.Version = DPLOT_DDE_VERSION; dplot_.DataFormat = DATA_DXY; dplot_.hwnd=(DWORD...
by Sadbrute
Fri May 20, 2011 9:53 am
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

Here is some code but i get processing error [Activate(2)] and does not work at all i get a striaight line,instaed of a curve and the doted lines are supposed to be "square" on the axis'. memset(&dplot_,0,sizeof(dplot_)); dplot_.Version = DPLOT_DDE_VERSION; dplot_.DataFormat = DATA_DXY...
by Sadbrute
Fri May 20, 2011 9:39 am
Forum: C, C++, C#
Topic: Bitmap not displaying fast enough
Replies: 6
Views: 25237

It was leaking memory and it caused to "corrupt" my picture boxes.
by Sadbrute
Thu May 19, 2011 4:37 pm
Forum: C, C++, C#
Topic: Displaying one curve and a specific point.
Replies: 10
Views: 63417

Displaying one curve and a specific point.

Do you have a small code snipplet (in C++) on how to draw an arrow that points on a spot (point) on a graph?
With the arrow, dotted lines that goes on the respective coordinates (X,Y) of that specefic point on the graph .

THX!
by Sadbrute
Thu May 19, 2011 4:26 pm
Forum: C, C++, C#
Topic: Bitmap not displaying fast enough
Replies: 6
Views: 25237

Thx i solved it!
by Sadbrute
Wed May 11, 2011 5:23 pm
Forum: C, C++, C#
Topic: Bitmap not displaying fast enough
Replies: 6
Views: 25237

I seem to have fixed the speed problem, but after 20 clicks Dplot does not seem to deliver the Bitmap fast enough and makes The onPaint crash. I know it's Dplot because its window kind of "opens up" (well it stays grey) and then the entire screen turns grey....
by Sadbrute
Wed May 11, 2011 4:28 pm
Forum: C, C++, C#
Topic: Bitmap not displaying fast enough
Replies: 6
Views: 25237

I seem to leak somewhere,just by switching tabs and drawing the same graph, but i do release the bitmap handles and the Docnum everytime i draw...
by Sadbrute
Wed May 11, 2011 3:53 pm
Forum: C, C++, C#
Topic: Bitmap not displaying fast enough
Replies: 6
Views: 25237

Bitmap not displaying fast enough

I have an SSTab and i switch between tabs, they each have a picturebox controller (CStatic derived class). I will display the OnPaint Code of the picture box controller: if(hbmp_!=0) { CRect r; CBitmap* m_bitmap=CBitmap::FromHandle(hbmp_); CDC dc,*pDC=0; pDC = this->GetDC(); dc.CreateCompatibleDC(pD...
by Sadbrute
Tue Apr 26, 2011 6:12 pm
Forum: C, C++, C#
Topic: Displaying plots MFC C++
Replies: 1
Views: 14276

Displaying plots MFC C++

I want to display a plot, but when i try to display my picture box (CStatic derived control) Diplot shows first and i have a white bitmap on my picture box. I have implemented ONPaint () on the picture box (it was grey at the beginning and it turns white..) . Does anyone have an idea how to display ...