Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Component icons
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[Reopened] TSaveDialog an...
by
paweld
[
Today
at 02:53:02 pm]
Implementing an Elo ratin...
by
creaothceann
[
Today
at 02:30:51 pm]
Canvas size
by
LeP
[
Today
at 02:05:26 pm]
RunFormula: math expressi...
by
Jorg3000
[
Today
at 02:01:37 pm]
Questions about 16 color ...
by
wp
[
Today
at 01:45:07 pm]
Pdf Viewer in Pascal
by
CM630
[
Today
at 11:32:05 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[
Today
at 09:51:50 am]
TCHATGPT — An Artificial ...
by
Weiss
[
Today
at 07:00:13 am]
You can embed Windows Con...
by
Ozz_Nixon
[
Today
at 03:39:13 am]
FPC Unleashed (inline var...
by
440bx
[June 16, 2026, 11:53:51 pm]
Codepage issue in console...
by
ASerge
[June 16, 2026, 11:37:57 pm]
RFC: Separation of MCU an...
by
ackarwow
[June 16, 2026, 11:06:14 pm]
Error with last fixes_3.2...
by
patyit
[June 16, 2026, 09:49:02 pm]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 16, 2026, 06:06:17 pm]
Which Control should I us...
by
wp
[June 16, 2026, 05:08:55 pm]
Just Question App paramet...
by
eldonfsr
[June 16, 2026, 04:50:19 pm]
Content is distorting / w...
by
Handoko
[June 16, 2026, 03:53:02 pm]
ZxTune chiptunes player
by
Guva
[June 16, 2026, 12:41:14 pm]
Onscroll event for Tscrol...
by
laz_one_or2
[June 16, 2026, 11:16:39 am]
Fpcupdeluxe
by
CharlyTango
[June 16, 2026, 10:35:33 am]
Compiling Qt6 project on ...
by
wp
[June 16, 2026, 10:14:53 am]
What am I missing here? [...
by
loaded
[June 16, 2026, 08:11:06 am]
IDE Editor (OS: Windows11...
by
keith
[June 16, 2026, 07:36:18 am]
Single and Double, Conver...
by
avk
[June 16, 2026, 06:55:03 am]
AI Assist Python - to - P...
by
kirtu
[June 16, 2026, 12:57:01 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Component icons (Read 2609 times)
jonneve
New Member
Posts: 11
Component icons
«
on:
March 31, 2015, 10:31:04 am »
Hi,
How do I go about adding component icons to my components, to use at design time?
Thanks,
Jonathan
Logged
howardpc
Hero Member
Posts: 4144
Re: Component icons
«
Reply #1 on:
March 31, 2015, 10:44:12 am »
Are you asking how to have your component display an icon as well as text at runtime, or are you asking how to have your component display an icon other than the default icon in the IDE component palette when registered and installed ... or asking something else?
Logged
jonneve
New Member
Posts: 11
Re: Component icons
«
Reply #2 on:
March 31, 2015, 10:53:06 am »
The latter. I'm new to Lazarus and I'm porting my components over from Delphi, and I've got them to install but they just have the default icons at design time.
Logged
zeljko
Hero Member
Posts: 1959
Re: Component icons
«
Reply #3 on:
March 31, 2015, 11:13:50 am »
You must create resource file, and icons must be in order you register your components.
Logged
jonneve
New Member
Posts: 11
Re: Component icons
«
Reply #4 on:
March 31, 2015, 12:03:40 pm »
Same as in Deplhi? I have a resource file that works in Delphi, how do I declare it for Lazarus?
Logged
zeljko
Hero Member
Posts: 1959
Re: Component icons
«
Reply #5 on:
March 31, 2015, 01:30:03 pm »
Look eg in components/lazcontrols/lazcontrols.pas ....
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Component icons
TinyPortal
© 2005-2018