[Lazarus] Creating dbexport component: no icon

Vincent Snijders vincent.snijders at gmail.com
Fri Sep 16 14:55:38 CEST 2011


2011/9/16 Reinier Olislagers <reinierolislagers at gmail.com>:
> Hi list,
>
> I'm trying to create a button/component for the new fpXMLXSDexport unit
> in FPC 2.6.x.
>
> What I did in the Lazarus\components\dbexport directory:
> 1. I've modified regdbexport.pp to include registering the
> TXMLXSDExporter element.
> 2. Copied over tsimplexmlexporter.xpm to txmxsdlexporter.xpm, changed
> XML to XSD in the image using my elite ASCII art skills
> 3. Recreated resource file containing all .xpm resources:
> c:\development\lazarus\tools\lazres dbexportimg.lrs tcsvexporter.xpm
> tfixedlengthexporter.xpm tfpdataexporter.xpm tfpdbfexport.xpm
> trtfexporter.xpm tsimplejsonexporter.xpm tsimplexmlexporter.xpm
> tsqlexporter.xpm tstandardexportformats.xpm ttexexporter.xpm
> txmxsdlexporter.xpm
> 4. Recompiled the lpk, removed and re-added the lpk to my Lazarus install.
>
5. Add {$I dbexportimg.lrs} to the unit which registers these components.

> When I open the lpk file, TXMLXSDExporter does show up as a registered
> plugin for regdbexport.pp, but with a default icon.
> The same icon shows up in the component palette after adding it.
> (Haven't tested functionality)
>
> Attached & below is the patch file & .xpm file if you want to have a look...

Vincent




More information about the Lazarus mailing list