TValueListEditor
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
-
Reporter name: Juha Manninen
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
- Reporter name: Juha Manninen
Description:
I made a rudimentary version of TValueListEditor component. It is important for Delphi compatibility (and conversion), many recent Delphi projects seem to use it.
The component has a Strings property and its items are saved in form file.
There is a drawing issue though, the items become visible only after user visits a cell for the first time. Once that is fixed, the component should be ready for trunk LCL as an initial version. I hope someone experienced with component creation could have a look.
The properties are compatible with Delphi version. Program code is not copied so there should be no copyright issues.
Instead I looked at some Delphi methods and explained their behavior in "ToDo" comments. Someone else could implement the behavior later.
The Delphi component does a lot more. Now the main goal was to allow converting Delphi code.
To test the component in LCL, copy the source file valedit.pas to lcl directory.
Then add this to Packager/registerLCL.pas:
RegisterUnit('ValEdit', @ValEdit.Register);
and this to Packager/pkgfileslcl.inc:
AddFile('valedit.pas','ValEdit',pftUnit,[pffHasRegisterProc],cpBase);
Then compile LCL and Lazarus. TValueListEditor is added to to "Additional" tab.
No icon resource is made yet.
Mantis conversion info:
- Mantis ID: 16667
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 32595 (#f5d82af7)
- Target version: 0.99.0