Create a simple Delphi expert (create a simple Delphi expert)

Source: Internet
Author: User
{
Diese unit kann in Ein package compiliert werden und erscheint danach im
Delphi menu unter Hilfe.
}

{
This unit can be compiled into a package and will then appear in the Delphi
Help menu.
}
Unit sdcsimpleexpert;

Interface

Uses toolsapi;

Type
Tsdcsimpleexpert = Class (tnotifierobject, iotamenuwizard, iotawizard)
Public
Function getidstring: string;
Function getname: string;
Function getstate: twizardstate;
Procedure execute;
Function getmenutext: string;
End;

Procedure register;

Implementation

Uses dialogs;

Procedure register;
Begin
{Register expert}
Registerpackagewizard (tsdcsimpleexpert. Create );
End;

{Tsdcsimpleexpert}

Procedure tsdcsimpleexpert. Execute;
Begin
{Code to execute when menu item is clicked}
Showmessage ('Hello swissdelphicenter simple expert .');
End;

Function tsdcsimpleexpert. getidstring: string;
Begin
{Unique expert identifier}
Result: = 'swissdelphicenter. simpleexpert ';
End;

Function tsdcsimpleexpert. getmenutext: string;
Begin
{Caption of menu item in help menu}
Result: = 'swissdelphicenter simple expert ';
End;

Function tsdcsimpleexpert. getname: string;
Begin
{Name of the expert}
Result: = 'swissdelphicenter simple expert ';
End;

Function tsdcsimpleexpert. getstate: twizardstate;
Begin
Result: = [wsenabled];
End;

End.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.