• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 713
  • Last Modified:

TGetPropEditProc in Delphi 6

Hi I use an old Delphi 5 component that I wish to update to Delphi 6.
The component use TGetPropEditProc, but there isn't any type like this in Delphi 6. What can I do instead ?
0
glx2k
Asked:
glx2k
  • 2
1 Solution
 
Mohammed NasmanSoftware DeveloperCommented:
Look at del6vcl.hlp that come with delphi 6
and search for TGetPropEditProc

I think it replaced with TGetPropProc
0
 
glx2kAuthor Commented:
huh? I have already searched the help file, but didn't find anything. What does it say about TGetPropEditProc in your help file
0
 
Mohammed NasmanSoftware DeveloperCommented:
when you search about TGetPropEditProc in the help file
it will give you help for TGetPropProc
so try to search about TGetPropProc

open the visual component libarary referance
and in the index put  TGetPropEditProc, it will give the following help about it

====================
 VCL Reference
  TPropertyEditor.GetProperties
 
 TPropertyEditor        See also
 
 Provides the subproperties of the property to a callback procedure.
 
 type
 
   TGetPropProc =  procedure ( const  Prop:  IProperty )  of object ;
 
 procedure  GetProperties(Proc: TGetPropProc);  virtual ;
 
 
 Description
 
 The Object Inspector calls GetProperties when the property is expanded to show subproperties. The  GetProperties method of TPropertyEditor does nothing. Property editors that return paSubProperties from the  GetAttributes method should override GetProperties to create an appropriate property editor and pass its  IProperty interface to the Proc parameter for every subproperty (or nested property) of the property.
 
 
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now