Designer events (SVN and 1.8)
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
There are eight items in popup menu (see demooidesig.pas):
0: 'Add + Modified'
doesn't select added item even if parameter Select of PersistentAdded() is True
1: 'Add + SelectOnlyThis(Item)'
SelectOnlyThis works here, added item is selected
2: 'Add + SelectOnlyThis(Control)'
SelectOnlyThis works here, owner control is selected in OI and focused
3: 'Delete'
item deleted from components but node is not deleted from component tree of OI
4: 'Delete + Modified'
item deleted from components but node is not deleted from component tree of OI
5: 'Delete + aHook.RefreshPropertyValues'
item deleted from components but node is not deleted from component tree of OI
6: 'Delete + SelectOnlyThis'
item deleted from components but node is not deleted from component tree of OI
7: 'Delete + PersistentAdded'
this hack works, PersistentAdded is called even if nothing was added. Node in component tree is deleted.
Steps to reproduce:
Install attached packege. It will add the TDemoControl to the Misc palette.
Put that control on the form and use its popup menu items and observe component tree in OI.
Warning: when you click component tree of OI when its nodes does not correspond with items of TDemoControl, it will cause AV and you will have to restart Lazarus.
Additional information:
Lazarus 1.9.0 r56652:56710M FPC 3.0.4 x86_64-linux-qt
Lazarus 1.8.0 r56594 FPC 3.0.4 i386-win32-win32/win64
Some more info (from e-mail which I sent 26.11. to ML):
Everything was OK to revision 52209. OI was completly broken between 52210 and 52229 (components didn't appear at all). Revision 52230 improved OI but deleting didn't work as described in previous mails, it's up to now.
PS: My most comprehensive bugreport :)