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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does one reveal all Public Properties. 1

Status
Not open for further replies.

delphiman

Programmer
Joined
Dec 13, 2001
Messages
422
Location
ZA

Having derived one's own component by inheriting
how can one list all the avaliable Protected
and/or Public properties in order to be able
to select what one needs to Declare as Published?

Anyone?
 
1 - you can use Browser capability in Delphi IDE (browse units, classes or globals)

2 - Try some DCU decompier (DCU to interface-only PAS file)that can be found in
(Absolutely first method is better)
 
> you can use Browser capability in Delphi IDE

Thanks for that Farahani.
It looks good!
I'm sure I'll find my answer once I know what to do with the two big white windows. :-)

Perhaps you can throw some more light on how to use them. Right and Left clicking the mouse in either, adjusting my chair-height, opening and closing my door -
all came to nothing. LOL

As usual "Help" isn't much good.
 
Thanks again Farahani.

I still don't know how I did it .. but all of a sudden I have all sorts of useful info, including the source code for the component, in the R/H window.

What a pleasure. :-) LOL
 
You wanted more details on browser? OK, here is some.
(I should say that I didn't have any Internet connections in last three days, so you may not need to this information)

-Add the component to your main form
-Compile the project
-Select "Edit|Browser Symbol" menu command
-Type name of the component (either variable or type) and click OK

-Right click, select Properties and check "Show Syntax Declaration"

Now you can find all you want (and even more!)

** "Edit|Browse Symbol" is just a shortcut to "View|Browser" with which you can have all the information you want from any unit, class, type, etc.
You can refer to "Project Browser" topic in the help system, but I think this is not useful enough.
Probably the best way is trying!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top