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

Property Editor Fix

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,312
US
As some may follow, I posted a FAQ ( faq102-7233 ) some time ago with a resource browser component in it that I've been using. The one bug I have had in it is that it seems to overreach with the property editor that is in it.

As I remember, I tried to set up a TDirName type and didn't have it work at all. I eventually did get it working with TFileName, but the problem with that is that it propagates out to ALL strings. So I have to remove the control everytime I want to set a string property.

Does anyone have any ideas on how to fix this so it can use a TDirName type property and only limit the property types to that alone and not all strings?

Code:
procedure Register;
  begin  
    RegisterComponents('Samples', [TDirBrowseDialog]);     
    RegisterPropertyEditor(TypeInfo(TFileName), nil, '', TFileNameProperty)
  end;

I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top