Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1161

Summary: Setting the Cursor property for a Chart has no effect
Product: VCL TeeChart Reporter: h.hasenack <hans>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major CC: hans, sandra
Priority: Normal    
Version: 150120   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD XE7
Attachments: CursorTest
Testcase using normal and MDI

Description h.hasenack 2015-03-10 11:29:43 EDT
I want to change the mouse cursor to crSQLwait when overing over a window, specifically a chart.
However, changing the cursor property to crSQLWait has no effect on the mouse cursor. It works for buttons, memos and all kins of TWInCOntrols, but not for TChart.

Reproduce?

Create new VCL app, drop a TCHart on it and set the Chart cursor the crSQLWait. 
Set the window cursor property to crHourGlass.

Compile, run.

when hovering over the windoe, you het the hourglass. When hovering over the chart you get the default cursor.
Comment 1 h.hasenack 2015-03-11 03:49:33 EDT
Today I found out I had to change the TChart.OriginalCursor property. This is a bit awkward as it breaks my code for setting the cursor property recursively for TWinControl's

May I suggest when you have to use a temporary cursor that you "memorize" the original cursor in a local, temporary variable, or if you have to, in a private variable of the class rather than adding a new property (OriginalCursor) to act like the property I wanted to use in the first place (Cursor)

regards
Comment 2 sandra pazos 2015-03-11 06:48:36 EDT
Created attachment 413 [details]
CursorTest
Comment 3 h.hasenack 2015-03-11 07:37:05 EDT
Created attachment 414 [details]
Testcase using normal and MDI
Comment 4 sandra pazos 2015-03-11 07:41:25 EDT
The content of attachment 413 [details] has been deleted
Comment 5 h.hasenack 2015-03-11 08:09:12 EDT
You may have to change the code in the sample to test chaning TCHart.Cursor vs TChart.OriginalCursor
Comment 6 h.hasenack 2015-05-21 05:35:53 EDT
ignore previos comment, it is for a different bug I reported.
Comment 7 h.hasenack 2015-05-21 07:39:44 EDT
Not it is not . This time ignore previous comment ;)