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
...
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)
{
}
}
}
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 ?