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?
I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
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