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 - Setting the Cursor property for a Chart has no effect
Summary: Setting the Cursor property for a Chart has no effect
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 150120
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-10 11:29 EDT by h.hasenack
Modified: 2015-05-21 07:39 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version: RAD XE7


Attachments
CursorTest (deleted)
2015-03-11 06:48 EDT, sandra pazos
Details
Testcase using normal and MDI (58.69 KB, application/octet-stream)
2015-03-11 07:37 EDT, h.hasenack
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ;)