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 2467 - TeeEditor tabs don't refresh display - NOT a Steema bug
Summary: TeeEditor tabs don't refresh display - NOT a Steema bug
Status: RESOLVED NOTABUG
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Editors (show other bugs)
Version: 32.210430
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-15 18:54 EDT by John Santmann
Modified: 2021-10-25 04:00 EDT (History)
1 user (show)

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


Attachments
Zip file has screenshot of error and source code for simple application that reproduces error (83.87 KB, application/x-zip-compressed)
2021-10-15 18:54 EDT, John Santmann
Details
Trying to reproduce the problem with RAD 10.3 Update 3 and TeeChart v2021.33 (225.82 KB, video/mp4)
2021-10-18 04:38 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Santmann 2021-10-15 18:54:28 EDT
Created attachment 985 [details]
Zip file has screenshot of error and source code for simple application that reproduces error

Tested with 33.210916, but it was also seen in earlier versions. 
Delphi version 10.3 update 1.
Windows 10

Clicking the various tabs in the editor display (e.g. chart, series, data, animations, export and print) do not consistently refresh the display. Sometimes the new display appears on top of the previous display. This has been happening in my production release for months, if not years and was easily reproduced with a simple test application; source code attached.

Thanks for looking into this.

- John

John Santmann MD
Cell - 732.995.9350 (USA)
jsantmann@wellsoft.com
Comment 1 yeray alonso 2021-10-18 04:38:19 EDT
Created attachment 986 [details]
Trying to reproduce the problem with RAD 10.3 Update 3 and TeeChart v2021.33

I've tried to reproduce this with your project and TeeChart Pro VCL v2021.33, both with RAD 11 and RAD 10.3 Update 3, without observing any problem.
Comment 2 John Santmann 2021-10-22 10:53:00 EDT
THIS IS NOT A Steema BUG.
Thanks for your quick response. It was very helpful in enabling me to pinpoint the problem.
In case you're interested, it was the result of a change I made to the Delphi compiler source code years ago to prevent screen flickering. The change was:

procedure TWinControl.CMShowingChanged(var Message: TMessage);
const
  ShowFlags: array[Boolean] of Word = (
    SWP_NOSIZE + SWP_NOMOVE + SWP_NOZORDER + SWP_NOACTIVATE + SWP_HIDEWINDOW,
    SWP_NOSIZE + SWP_NOMOVE + SWP_NOZORDER + SWP_NOACTIVATE + SWP_SHOWWINDOW +
    SWP_NOREDRAW);             // This line helps prevent flickering in general (mostly pre-Windows 10), but causes refresh problem with TChart editor display.
begin
  SetWindowPos(WindowHandle, 0, 0, 0, 0, 0, ShowFlags[FShowing]);
end;
Comment 3 yeray alonso 2021-10-25 04:00:53 EDT
Thanks for the feedback!