Sign in Join

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

Mailing lists / lazarus / 2002-09

Icons for application

11 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro

Whats the status of being able to choose an icon for the application that is then compiled into it? I'd like people to see something other than the default binary mime icon if possible. Did I just miss a setting somewhere?

Is there a workaround or a way to do this if it's not in the code yet?

Thanks,
Tony

Reply by email

Mattias Gaertner
to Michael A. Hess: No. That is how the Lazarus Splash screen is done as well as any other graphics in the…
Show quoted text 10 lines
At 17:26 30.09.2002, you wrote: > > No. That is how the Lazarus Splash screen is done as well as any other > > graphics in the IDE. Be sure to use XPM files so that you are sure not > > to have any problems. > >Also keep in mind, that there is a limit of about one megabyte for a >single resource. >(fpc allows 'only' 1024 elements in array of const). Hmmm, I can't remember that there is such a limit?

You are right. Can't remember where I found the number. FPC has no limits. :)

BTW, what about fpc 1.1? Does it make sense to report bugs?

Mattias

Reply by email

Michael A. Hess
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…
Tony Maro wrote 5 lines
However- this doesn't change the filesystem icon, just the icon in the form window corner. I was hoping for something that would make the executable jump out and say "click me!" if you know what I mean.. Perhaps Linux doesn't support that the same way as Windows?

Currect it doesn't. The icon used on the screen is determined by the Window Manager used. It doesn't pull this from the application as Windows does. You must manually set this using the Windows Manager.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Mattias Gaertner
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…
Show quoted text 13 lines
Tony Maro wrote: > Wow, I didn't realize I could load bitmaps from a resource! > > Now I won't have to distribute the graphics as separate files... I > replaced the splash screen already with a loadfromlazarusresource > statement. > > Am I playing with dangerous code doing this? No. That is how the Lazarus Splash screen is done as well as any other graphics in the IDE. Be sure to use XPM files so that you are sure not to have any problems.

Also keep in mind, that there is a limit of about one megabyte for a single resource. (fpc allows 'only' 1024 elements in array of const).

Mattias

Reply by email

Tony Maro
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…

Good info, thanks!

However- this doesn't change the filesystem icon, just the icon in the form window corner. I was hoping for something that would make the executable jump out and say "click me!" if you know what I mean.. Perhaps Linux doesn't support that the same way as Windows?

Mattias Gaertner wrote 5 lines
Create an icon called mainicon.xpm, use lazres to create a .lrs file and include it. (See main.pp initialization section and images/README as example). Mattias

Reply by email

Mattias Gaertner
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…
Whats the status of being able to choose an icon for the application that is then compiled into it? I'd like people to see something other than the default binary mime icon if possible. Did I just miss a setting somewhere? Is there a workaround or a way to do this if it's not in the code yet?

Create an icon called mainicon.xpm, use lazres to create a .lrs file and include it. (See main.pp initialization section and images/README as example).

Mattias

Reply by email

Michael A. Hess
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…
Tony Maro wrote 7 lines
Wow, I didn't realize I could load bitmaps from a resource! Now I won't have to distribute the graphics as separate files... I replaced the splash screen already with a loadfromlazarusresource statement. Am I playing with dangerous code doing this?

No. That is how the Lazarus Splash screen is done as well as any other graphics in the IDE. Be sure to use XPM files so that you are sure not to have any problems.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Florian Klaempfl
to Florian Klaempfl: Hmmm, I can't remember that there is such a limit?
you wrote 16 lines
On Mon, 30 Sep 2002 17:59:58 +0200 Florian Klaempfl wrote: > At 17:26 30.09.2002, you wrote: > > > No. That is how the Lazarus Splash screen is done as well as any other > > > graphics in the IDE. Be sure to use XPM files so that you are sure not > > > to have any problems. > > > >Also keep in mind, that there is a limit of about one megabyte for a > >single resource. > >(fpc allows 'only' 1024 elements in array of const). > > Hmmm, I can't remember that there is such a limit? You are right. Can't remember where I found the number. FPC has no limits. :)

It has one thing which is limited to 1024 :) : the number of used units is limited to 1024, however this can be changed by changing a simple constant.

BTW, what about fpc 1.1? Does it make sense to report bugs?

If they are specific, yes. I.e. if you can give an example which shows a problem. If you report them via the bug report system they don't get lost :)

Reply by email

Florian Klaempfl
to Michael A. Hess: No. That is how the Lazarus Splash screen is done as well as any other graphics in the…
you wrote 7 lines
> No. That is how the Lazarus Splash screen is done as well as any other > graphics in the IDE. Be sure to use XPM files so that you are sure not > to have any problems. Also keep in mind, that there is a limit of about one megabyte for a single resource. (fpc allows 'only' 1024 elements in array of const).

Hmmm, I can't remember that there is such a limit?

Reply by email

Tony Maro
to Tony Maro: Whats the status of being able to choose an icon for the application that is then…

Wow, I didn't realize I could load bitmaps from a resource!

Now I won't have to distribute the graphics as separate files... I replaced the splash screen already with a loadfromlazarusresource statement.

Am I playing with dangerous code doing this?

-Tony

Mattias Gaertner wrote
Create an icon called mainicon.xpm, use lazres to create a .lrs file and include it. (See main.pp initialization section and images/README as example).

Reply by email