Forum > LCL

Add comments to properties

(1/1)

Marion:
I am writing a custom component. In the IDE, some component properties display a description at the bottom of the Object Inspector. I'm trying to figure out how to do that in my component but I can't find anything on it.

Blaazen:
It's taken from file ..lazarus/doc/xml/lcl/controls.xml and it's done with FPDoc Editor which is part of IDE (menu View). You can do it for your package too.

bobby100:
Write description as comment, one line above the property/method declaration in your unit.

Blaazen:
Those comments one line above appear as a hint when you hover the identifier in Source Editor. I'm just not sure if they also appear in Object Inspector.

Marion:

--- Quote from: bobby100 on May 06, 2023, 03:17:17 pm ---Write description as comment, one line above the property/method declaration in your unit.

--- End quote ---

Thank you.

Navigation

[0] Message Index

Go to full version