Re: urgently:How to use the control MSChart?

From: LeeTow (fbjlt_at_pub3.fz.fj.cn)
Date: 09/13/04


Date: Mon, 13 Sep 2004 08:37:53 +0800

I am sorry,perhaps my English is very poor.
1) I mean its extent is from -5 to 205 at y-axis(I can do it),look:
{
VARIANT var;
m_ctlMSChart.GetPlot().GetAxis(1,var).GetValueScale().SetMaximum(205);
m_ctlMSChart.GetPlot().GetAxis(1,var).GetValueScale().SetMinimum(-5);
}
and now I want to draw a line at 135 of y-axis(I cann't do it),
if I write this sentence,it draw a line at 100 of y-axis,look:
{
m_ctlMSChart.GetPlot().GetAxis(1,var).GetValueScale().SetMajorDivision(2);
}could you tell me how to draw at 135 of y-axis?
2)could you tell me in detail about 'stacking' property?
Thank you very much.

"Bill Thompson" <billt61@rgv.rr.com> дÈëÓʼþ
news:e$hCWFKmEHA.2380@TK2MSFTNGP14.phx.gbl...
> "LeeTow" <fbjlt@pub3.fz.fj.cn> wrote in message
> news:#XcbWDGmEHA.2024@TK2MSFTNGP10.phx.gbl...
> > 1. I write a program using vc and control mschart,but I want to not to
> > divisive equally,for example the y-axis is from -5 to 205 and I want to
> > display the scale at 135,could you tell me how to do?
> > 2. I want to display the chart that it can have different color,if the
> > data is less than 135 it display blue,if the data is larger than 135,
> > it display different color:it display blue from -5 to 135 and it display
> > red from 136 to end,could you tell me how to solve it?
> > if you think this control cann't do it,coulu you tell what I should use
> > control,
> > and you could offer the source code ,Thank you.
> >
> >
>
> I don't know exactly what you mean in 1). If you want to display from -5
to
> 135, or 135 to 205, you could change the data you are using in the graph.
>
> For item 2), perhaps you could use the 'stacking' property cleverly.
>
>



Relevant Pages

  • Re: Ignored advice, am now in serious poo on graphics
    ... Then I put in a thread.sleep, after the draw in the Paint method, and noticed a strange thing - the image was shown for 1000 milliseconds, then disappears. ... If you're doing your own drawing, there's nothing in a PictureBox control that is useful to you. ... It would take a lot more than a single newsgroup post to address all of the complexities of graphics under Windows. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Help Drawing into a Dialog
    ... you should NEVER "draw into" a dialog. ... the map only calling the CDialog::OnInitDialogroutine. ... You MIGHT consider doing it in the OnPaint handler, but I think this whole design is ... // return TRUE unless you set the focus to a control ...
    (microsoft.public.vc.mfc)
  • Re: PrintLines without border in last record
    ... Add a logic check before the current code is called to draw any lines. ... I sent in your email the example with problem in report. ... Stephen Lebans escreveu: ... Dim CtlDetail As Control ...
    (comp.databases.ms-access)
  • Re: User Controls (Active X) - Da Process
    ... When you hit the Finish button, the wizard will fill the code module ... you still have to write the code that gives your control its functionality.... ... lets say all you wanted to expose was a BackColor ... Let's say you want to give your control a Draw ...
    (microsoft.public.vb.general.discussion)
  • Re: Is it possible to draw lines between two froms?
    ... When you set a Form to IsMdiContainer = true you also create an MdiClient control which is added to the form. ... This control is the gray background you see. ... The code below will draw a line between the upper left corner of the MdiParent and an MdiChild ... If Form1 and Form2 both reside inside a parent form have the ...
    (microsoft.public.dotnet.languages.csharp)