Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-06

Component installs without icon on component toolbar - tarraybutton.lrs(1, 17) Error: Identifier not found "LazarusResources" (Mattias Gaertner)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter E Williams

Hi Mattias & All,

Mattias wrote 31 lines
On Fri, 18 Jun 2010 03:38:59 +1000 Peter E Williams 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.

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

Show quoted text 6 lines
> 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???

Show quoted text 6 lines
> 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!!!

Show quoted text 6 lines
>[...] 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)

Reply by email

Mattias Gaertner
to Peter E Williams
Show quoted text 5 lines
[...] 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 ...

It is a little bit more complicated.

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

I added a button to select an icon.

Show quoted text 6 lines
[...] > 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???

Yes, a unit is a special file. So is the 'add component' just a special add file dialog.

Show quoted text 5 lines
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.

Where did you start searching? Maybe a hint could be added there.

The dialog window for comparing the differences between the 2 files is VERY CONFUSING !!!...

Do you mean the dialog that pops up, when you changed files outside of the IDE?

Show quoted text 5 lines
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???

Please create a feature request, so it won't be forgotten.

Show quoted text 8 lines
> > 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!!!

Congratulation.

Mattias

Reply by email