Home > Back-end >  Everybody happy New Year! Scattered points! By the way, did you warm up a little problem ~ ~
Everybody happy New Year! Scattered points! By the way, did you warm up a little problem ~ ~

Time:01-13

Everybody happy New Year! The year of the ox Daniel!!!!!!



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:

reference 1/f, play big shoot early nuclear response:
should chart, inside it might be double-click event handling updates focus state, while the parent window hides,
To:
Chart1 - & gt; Enabled=false;
This - & gt; Hide ();



Useless, I also tried,

Originally thought it was the main window of the focus problems, is devoted to the main window to add a Btn, put focus on the Btn, Hide again, still the same ~ ~ ~

  • Related