Abnormal Behavior when forms change parents
Original Reporter info from Mantis: spyrosman2
-
Reporter name: Spyros
Original Reporter info from Mantis: spyrosman2
- Reporter name: Spyros
Description:
This bug is little complicate but important as well. I have created sample applications in order to see that. Basically i create a form then i use the
WINDOWS API to change the parent window and the window gets inside the other
form and it looks as a MIDI how ever its not MIDI we fake it. The strange is
that when i change the Border Style of the form the positions is not saved and
it restores the precious position before i make it child. I Have noticed this
behavior happens when i update a control text like a caption of a label or any
other text of any control while in delphi it does not have that behavior in Lazarus it does am talking about delphi 7 not XE.
Steps to reproduce:
If you use the applications sample i have attached you will understand the problem there are 2 projects App1 and App2 you compile and execute both at the
same time there are 2 forms one gray one red and a window with buttons with
numbers 1 2 3 4 etch. then you follow the bellow instructions and you will see
the problems there are several bugs with that tests.
the steps are :
test 1
-----------
click 3
click 1
move window around see what happens
click 4
see what happens
test 2
========
Click 3
click 1
click 4
test 3
=======
click 3
click 4
click 1
Move the form around a bit
Click 4
test 4
------
click 3
click 1
move around window
click 4
Start move the form inside the red form you will
see that while you drag it it will try to move to
another place this happens because the labels are
auto refresh the coordinates and when there is a
CAPTION write like SetCaption the form refresh to
its previous state sometime the application might
shutdown you need to run again repeat till you get
the result.
Additional information:
There is another bug as well with the Help addon am not sure but to me it does not work when i istall the addon and i click on the help the OpenFile window opens but it stuck there and have to wait long time till it process the messages. While if i open the lHelp.exe alone as a stand alone application it does work. I think there is some kind of a problem in the way it is executed and messages pass from that application to the main lazarus IDE have a look at it. To me it does not work i will make another thread for if you want.
Mantis conversion info:
- Mantis ID: 26042
- OS: Windows
- OS Build: Windows 7 64bit
- Build: 44303
- Platform: x86 x64
- Version: 1.2.0