To add a property page for your items:
In the Delphi menu, select File->New->Other.
On the Namespace Extensions tab, select Shell Extension Property Page.
The property page is now created and added to your project.
The property page contains a form that you populate in design mode, like you are used to for any Delphi forms.
Implement the following functions for your property page:
procedure InitializeFromData; override;
This is called to allow you to populate your property sheet from internal data.
procedure SaveChanges; override;
This is called to allow you to update internal data from your property sheet.
procedure ApplyChanges; override;
This is called in response to the user hitting the apply button.
procedure DiscardChanges; override;
This is called when the user hits the cancel button.
procedure ShowHelp; override;
This is called when the user hits the help button.
function Valid : boolean; override;
This is called so that you can indicate whether the user entered data on your form is valid. You should show a message box and return false if it is not.
|
|