Hello, i am new to this forum.
I know Delphi and Turbo Pascal very good for many years now and i started to use Lazarus ome months ago.
I just found a little bug in the latest release candidate (and as well in version 1.2.6).
In the component TTabControl (and others, that use the TNBPages class), the property
TTabControl.Tabs.Objects[] (or equivalent TTabControl.Pages.Objects[])
does not work. This property is normally used to assign user objects to each tab. In the actual code, the method "TNBPages.PutObject" is not implemented and the method "TNBPages.GetObject" returns a reference to "TCustomPage" instance.
What i changed:
- I added a new private field "FCustomObject : TObject;" to the TCustomPage class
- I added the method "PutObject" to TNBPages
- I changed the method implementations for TNBPages.GetObject and TNBPages.GetPage
I attached a patch set for version 1.2.6 and 1.4. It would be great if this fix will be part of the final 1.4 release.