Hi Mattias & All,

On Fri, 2010-06-18 at 00:17 +0200, 
Mattias wrote:

> On Fri, 18 Jun 2010 03:38:59 +1000
> Peter E Williams <[email protected]> wrote:
> 
> > Hi dmitry & All,
> > 
> > On Thu, 2010-06-17 at 12:21 +0400, dmitry boyarintsev wrote:
> > > On Thu, Jun 17, 2010 at 12:14 PM, Peter E Williams
> > > > Any ideas???
> > > 
> > > try to clean up manually "lib" directory at the package dir
> (remove
> > > any .o file located there).
> > > 
> > > If ugradbtn is located in stand-alone package (not
> arraycolorbtn.pkg),
> > > you must add the  ugradbtn package to arraycolorbtn requirement's,
> > > instead of using the file directly!
> > > 
> > 
> > I managed to get both the ugradbtn and arraybutton (based on
> > arraycolorbtn) compiled... but with one problem: there was not icon
> for
> > it on the Misc component toolbar. The tarraybutton.lrs file was
> missing.
> > This happens even when I created a new component based on
> TGradButton
> > (ugradbtn.pas).
> 
> Yes, the IDE does not create icons.

> > This seems to be a bug in lazarus. When you create a new component
based
> > on a existing component the .lrs file is missing.

Surely it would not be hard to write a small program which loads a PNG/s
and then calls the 

~/lazarus/tools/lazres yourunit.lrs TMyComponent.png TMyOtherCom.png ...

I think that a GUI interface like this would be a great improvement &
should be simple to write.

> See the fine manual
> 
> http://wiki.lazarus.freepascal.org/Lazarus_Packages#Add_a_component_icon

Thanks, I had a read of it. It told me what I was doing wrong.

> > Also I could not save
> > the lpk file with the default name because it told me that it
> already
> > existed even tho' it didn't.
> 
> Please create a bug report and steps to reproduce.

The problem I had was that I was trying to "Add a File" instead of "Add
a Unit" ... the distinction is unclear. After all isn't a unit just a
file???

The other problem I had is the when I manually changed the text of the
Register procedure I kept losing my edits. Somewhere there is a [x]
Register procedure checkbox but I could not find it!!!! Arrgh!!! It is
frustrating to know that I needed to [x] the Register checkbox but could
not find it.

The dialog window for comparing the differences between the 2 files is
VERY CONFUSING !!!... I must have used it a dozen times before I could
understand what it was trying to tell me. I clicked the filename to view
the changes then on both of the buttons and still lost my edits (at
different times)... eventually I need to click on the checkbox below.
Why don't the lost changes get saved in the BACKUP folder???
 
> > After copying tgradbutton.lrs to tarraybutton.lrs I get these 2
> errors:
> > 
> > /home/pewink/Public/My_code/lazarus/0.9.28.2/pewink/Hexxpawn/ArrayButton/tarraybutton.lrs(1,17)
> >  Error: Identifier not found "LazarusResources"
> 
> Your forgot to use the the unit lresources.

Fixed. Component now installed on Misc component tab. Success!!!

> 
> 
> >[...]
> 
> Mattias
> 

Peter

-- 
Proudly developing Quality Cross Platform Open Source Games
Since 1970 with a Commodore PET 4016 with 16 KRAM
http://pews-freeware-games.org (<--- brand new)


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to