Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't see Published variables in Object Inspector

Status
Not open for further replies.

Delphard

Programmer
Jul 22, 2004
144
RS
I made my own class, with several published variables.
How to see this variables in Object Inspector?
 
You haven't given us much to work on! So I'll have to guess at the cause of the problem.

Is your class a component?

Does your component have a Register procedure?

Have you installed your component into the IDE?

If you reply No to any of these questions then I don't think it will appear in the Object Inspector.

Andrew
Hampshire, UK
 
Now I see my properties in Object Inspector, but how to group them into separate group (of properties)?
 
I don't know if that's possible. I've had a look at a couple of components I have installed from various other people and all the properties they have added appear in the Miscellaneous category.

If you find a way let me know.

Gary
 
It's possible! Theoretically, it can be done with commands
RegisterPropertyInCategory and RegisterPropertiesInCategory (see Delphi Help).
But, I can't find where to place this commands to achieve this goal.
 
Probably in the Register procedure.

Again this is from other components I've downloaded but it seems the logical place.

This is assuming you have one!!!

If not it looks like you just need to create it!!! I cant ind any reference in the unit I'm looking at to it!

The one in this unit looks like:

procedure Register;
begin
RegisterComponents( 'Plus', [ TImgBtn ] );
end;

I assume you just pop them in there!!!

Hope it helps

Gary
 
Register procedure was first place where I put them. But, don't know why, without result. Keep finding solution!
Regards!
 
Where in the register procedure did you put them. I would imaging they would have to go at the start, before you register the component? Again, this is all guesswork, but you cant complain if it works!!!!

Hope it helps

Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top