Creating new units with some components on it by default failes for non-lcl components using a designer
Original Reporter info from Mantis: Joost
-
Reporter name: Joost van der Sluis
Original Reporter info from Mantis: Joost
- Reporter name: Joost van der Sluis
Description:
When I override TFileDescPascalUnitWithResource.GetResourceSource for a unit with a component which is not a TForm, the creation of the form goes wrong.
To reproduce it's maybe the easiest to install the webdesign package:
On the console:
- fppkg update
- fppkg list (check that it can find the installed default fpc-packages)
- Now edit the fppkf configuration file, found in ~/.config/fppkg. Add the line: "FPMakeOptions=--lazarusdir=/home/svn/lazarus" with the correct path to the lazarus-installation.
- fppkg install webdesign
Replace the file webpagedesignideintf in ~/.fppkg/share/fpc-webdesign with the attached file. This adds the usage of the resource-file.
Then (re)start lazarus and install the webdesign package from the list with available packages
Restart, and do file->new->webpage
If you find this to much work, I can add an example using the designnonlcl example. But this way I can ask you to look and test fpmake, and give me comments on it. ;)
Mantis conversion info:
- Mantis ID: 18116
- Version: 0.9.29 (SVN)