Draw zoom rectangle on CompactFramework

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Alain Bolduc
Newbie
Newbie
Posts: 30
Joined: Mon Feb 18, 2008 12:00 am

Draw zoom rectangle on CompactFramework

Post by Alain Bolduc » Fri Apr 24, 2009 8:15 pm

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 ?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Mon Apr 27, 2009 9:29 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Alain Bolduc
Newbie
Newbie
Posts: 30
Joined: Mon Feb 18, 2008 12:00 am

Post by Alain Bolduc » Mon Apr 27, 2009 3:06 pm

Hi Sandra,

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Apr 27, 2009 3:08 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply