Context specific help in designer
I am currently using the TppDesigner.OnHelp event to display help when the
user is in the ReportBuilder End User Designer. Using this event, I am
able to display help when the user presses the F1 key or uses the Help
menu.
However, I am only able to open the help file to one specific location. I
would like to be able to display different entries into my help file
depending on which tab is currently active, e.g. if the 'Preview' tab is
currently selected, I would like to open the help file to a topic that
describes the function and behavior of the Preview form.
Is there an easy way to do this?
user is in the ReportBuilder End User Designer. Using this event, I am
able to display help when the user presses the F1 key or uses the Help
menu.
However, I am only able to open the help file to one specific location. I
would like to be able to display different entries into my help file
depending on which tab is currently active, e.g. if the 'Preview' tab is
currently selected, I would like to open the help file to a topic that
describes the function and behavior of the Preview form.
Is there an easy way to do this?
This discussion has been closed.
Comments
procedure TForm1.ppDesigner1Help(Sender: TObject; var aHelpFile,
aKeyphrase: String; var aCallHelp: Boolean);
begin
if ppDesigner1.Notebook.ActivePageIndex > 0 then
begin
//Use the LearnReportBuilder.hlp Help file for the 'Design' tab
aHelpFile := LearnReportBuilder.hlp;
aKeyphrase := '';
end
else
begin
//Use RAP.hlp Help file for the 'Calc' tab
aHelpFile := RAP.hlp;
aKeyphrase := '';
end;
end;
Regards,
Chuck Van Acker
Alogent Corp.
Thank you! Didn't see the possibility of accessing the activepage property
and that is a BIG help (no pun intended). I do expose the Data tab and
oddly, there is no help or F1 processing currently calling the OnHelp
event, but I think I might be able to at least merge in a menu option to
call help for the that Tab.
Thanks again.
Bob McClintock
Tickets.com