View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004032||JEDI VCL||00 JVCL Components||public||2007-01-05 02:42||2007-06-19 06:21|
|Product Version||Daily / GIT|
|Target Version||Fixed in Version||3.34|
|Summary||0004032: Bug in TJvForm|
|Description||when TJvForm has parent, it can be shown on another form:|
Let Form1 is main application form and Form2 is target form. This is code demonstrating bug:
procedure TForm1.Button1Click(Sender: TObject);
with TJvForm.Create(Application) do
New TJvForm has Parent:=Form2 but shown on Form1
(look at JvForm.zip)
The cause of bug is procedure TJvForm.CMShowingChanged from JvComponent unit. It fixes some "Window Ghosting "bug"", but introduces own bug
|Tags||No tags attached.|
JvForm.zip (2,191 bytes)
||The code for the window ghosting must stay. It must be adjusted to cope with this, considering that setting a parent to a form is not something very commonly encountered by the majority of users.|
I not understand, for what cases the window ghosting code is necessary, but probably we need to check Form.Parent property before run it?
I have got this bug in project where I use TJvInterpreterFm to customize part of my form in runtime. Now I use SetWindowLong command to restore my interpreted forms appearance, but maybe there is need to more accurately write code of TJvForm.CMShowingChanged?
The ghosting bug is happening on Windows XP only and is when a dialog form pops up behind its calling form.
I have changed the code in TJvForm to only do it when the Parent property is not assigned.
|2007-01-05 02:42||ivan_ra||New Issue|
|2007-01-05 02:42||ivan_ra||File Added: JvForm.zip|
|2007-01-08 03:36||obones||Note Added: 0010554|
|2007-01-08 03:36||obones||Status||new => acknowledged|
|2007-01-08 23:59||ivan_ra||Note Added: 0010555|
|2007-01-10 10:06||ivan_ra||Note Edited: 0010555|
|2007-06-19 06:21||obones||Status||acknowledged => resolved|
|2007-06-19 06:21||obones||Fixed in Version||=> Daily / SVN|
|2007-06-19 06:21||obones||Resolution||open => fixed|
|2007-06-19 06:21||obones||Assigned To||=> obones|
|2007-06-19 06:21||obones||Note Added: 0013425|