Win10 + XE2 environment
A new Project, the main window to add a Chart, launch window to maximize
Add a new Unit, named fLarge, start the maximize window, also add a Chart, add the Chart click events, only a word of this code - & gt; Hide ();
The main window Chart also add double-click events, the code is only a fLarge - & gt; Show ();
Compile and run,
Double-click on the main window Chart, open fLarge normal;
Double-click fLarge window hide the window, will go wrong always focus a disabled or invisible window
======================================================
Under the same operation, in c + + builder 6 is no problem, which Daniel to explain? Or, how can you solve this problem?
CodePudding user response:
Should chart, inside it may have a double-click event handling updates focus state, while the parent window hides,To:
Chart1 - & gt; Enabled=false;
This - & gt; Hide ();
CodePudding user response: