wrong behavior of TWincontrol.InsertControl ...always add at end of list.
Original Reporter info from Mantis: serge78
-
Reporter name: serge Cavillier
Original Reporter info from Mantis: serge78
- Reporter name: serge Cavillier
Description:
based on my understanding of the code which I traced into, the procedure
TWincontrol.InsertControl (Acontrol, index), doesn't call the proper TFPList (?) procedure...
it always call TFPList.add, instead of TFPList.insert...then resulting in the new control to be added at the end of the list, instead of the desired index place.
Change has to be done to : lcl\wincontrol.inc (line 6015)
hope I didn't say stupid thing !
Steps to reproduce:
call AContainer.InsertControl ( Acontrol, Index)
then call
Acontainer.GetControlIndex (AControl)...
this last call should return "Index" value of the first call...
it doesn't.
Mantis conversion info:
- Mantis ID: 25405
- OS: Windows 32
- OS Build: Win7
- Build: 1.0.
- Platform: Windows
- Version: 2.3 (SVN)
- Fixed in revision: 47375 (#9dde3160)