Page 1 of 1

Draw zoom rectangle on CompactFramework

Posted: Fri Apr 24, 2009 8:15 pm
by 14048359
Hi,

I am trying to use the zoom features on compact framework.

All I am trying to have is to have the zoom rubber band for the selection i am trying to do.

However, as I drag the mouse around, I don,t see any rubber band, but the zoom functionnality is working fine.

Looking in the source code, I have found this:

Code: Select all


In ZoomScroll.cs

    /// <summary>
    /// Displays rectangle while dragging Chart for zoom operation.
    /// </summary>		
    public void Draw()
    {
...

#if ! POCKET 
...
#else			    [b]ControlPaint.DrawReversibleFrame(r,Color.FromArgb(penXOR),FrameStyle.Dashed);[/b]
#endif

...
and this:

Code: Select all


In PocketUtils.cs



namespace System.Windows.Forms
{
  public enum FrameStyle { Dashed }

  public class ControlPaint 
  {
    static public void FillReversibleRectangle(System.Drawing.Rectangle r,Color c)
    {
    }

    static public void DrawFocusRectangle(System.Drawing.Graphics g,Rectangle r,
      Color c,Color pen)
    {
    }

    static public void DrawReversibleFrame(System.Drawing.Rectangle r,
      Color c,FrameStyle s)
    {
    }

    static public void DrawReversibleLine(Point a,Point b,Color c)
    {
    }
  }
}
which clearly explains why nothing is displayed: nothing is done...

In my opinion, it is a very bad idea to declare a System.Windows.Forms namespace [Who would have thought such a namespace would be declared inside Steema.TeeChart.Pocket.dll ....], especially if you don't do anything inside the methods... I have been wondering what I was doing wrong for a considerable amount of time before discovering this...

Is there any way to be able to see a rubber band when zooming on compact framework ?

Posted: Mon Apr 27, 2009 9:29 am
by 10050769
Hello marvin966,


We could reproduce your issue, and we add in the list of enhancements with numer [TC26014109], to investigate the reasons why the problem occurs in Pocket version of TeeChartFor .NET.

Thanks,

Posted: Mon Apr 27, 2009 3:06 pm
by 14048359
Hi Sandra,

Thank you for replying; is there somewhere I can keep track of this issue?

Posted: Mon Apr 27, 2009 3:08 pm
by yeray
Hi marvin966,

I recommend you to be aware at this forum or subscribe to Steema's RSS news feed for new release announcements and which bugs are fixed on them.

Thanks in advance.