Search found 13 matches

by johnyboy
Fri Nov 21, 2008 12:55 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Thanks...

...Narcis, Christopher ... and Qwerty

This will work for me too.
by johnyboy
Tue Nov 18, 2008 4:18 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Suggestions

I understand what you are trying to do with your "CursorTool Pool" concept, but I have many CursorTools active at the same time, and I think this will get exponentially hard to maintain. While this may work, I think you could find a much simpler (and better) solution. Please consider these alternati...
by johnyboy
Thu Nov 13, 2008 12:19 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Re: Mouse Cursor workaround

Christopher, I disagree that this code cannot be used in production, for the reasons I stated above. That is your opinion. Here is mine: this may be a good workaround, but it is a weak solution at best. and although I agree with you that the GC will do a good job, the overhead imposed by this soluti...
by johnyboy
Wed Nov 12, 2008 3:11 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Mouse Cursor workaround

Hi Narcis, Your sample code does solve the flickering problem. However, there is a major disadvantages to this solution: destroying/creating cursortool objects is a bad technique in the sense that in brings unnecessary memory allocation/deallocation overhead. Since the mouse cursor is a function of ...
by johnyboy
Tue Nov 04, 2008 12:21 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Mouse Cursor

Narcis, I will have a look at your proposed workaroud. Please notice that SetCursor() doesn't need to be called in the MouseMove event. The overall idea here is to set different mouse cursor depending on whether the pointer is over the left, right or bottom axis or labels area or the actual charting...
by johnyboy
Fri Oct 31, 2008 4:10 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

It does indeed...

Yes Narcis,

The problem is still there.

I have made mpeg movies (!) of the problem on my machine and also on another machine where the problem is much worse.

Can I upload these files (each is approx 15 MB in size)

Jean
by johnyboy
Thu Oct 30, 2008 4:19 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Narcis, I am using version 3.5.3188.18561. The problem was barely noticeable on my own machine. (WinXP SP2) Its only at deployment time that installing the sw on a test machine revealed a much worse behavior. If your machine is like my machine, you have to move the mouse slowly over the chart area a...
by johnyboy
Thu Oct 30, 2008 2:57 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Zipped project

Narcis,

I have sent you the whole project.

Jean
by johnyboy
Thu Oct 30, 2008 1:04 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Sample code usage note

Narcis,

When you try the code I have uploaded, I suggest this:

Start the application
Check the "CursorTool Active" checkbox
Move your mouse over the chart area
Hit the "Change Cursor" Button
Move your mouse over the chart area
You should see the flickering I am talking about.

Thanks,

Jean
by johnyboy
Thu Oct 30, 2008 12:16 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

An example ?

Narcis,

Thanks for your suggestion, but I think an example would help clarify what I mean.

I am new to your website: where can I post my example ?

Jean
by johnyboy
Wed Oct 29, 2008 2:36 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Additionnal thoughts

A more accurate description would be this:

If a cursortool is active, it controls the Cursor in the WHOLE chart area, even Axis, labels etc.

So I need to be able to either

1) switch off cursor control by the cursortool
or
2) have a way to tell it what the "DefaultCursor" is
by johnyboy
Wed Oct 29, 2008 12:10 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Additionnal info

I think I have a better clue of what is happening: The CursorTool actually saves the original TChart.Cursor in a private originalCursor variable. When they are activated, the CursorTool use the originalCursor variable to draw the cursor on the Chart and if this mouse cursor happens to be different t...
by johnyboy
Tue Oct 28, 2008 10:32 pm
Forum: .NET
Topic: Mouse cursor vs CursorTool
Replies: 24
Views: 31016

Mouse cursor vs CursorTool

I have an application where I have a TChart control over which I set the cursor depending on the area under the mouse cursor. I simply use the MouseMove event to do that. Works fine. exept when I activate my CursorTool. It seems that when the CursorTool is activated, the TChart.Cursor is being overw...