Recent

Author Topic: Auto comment  (Read 5694 times)

rodrigo

  • Guest
Auto comment
« on: April 01, 2004, 08:11:18 pm »
option to add comments automatic in interface before of methods: prodedures and functions to facilitate the understanding of your utility.

Anonymous

  • Guest
Auto comment
« Reply #1 on: April 01, 2004, 10:12:24 pm »
How? Can you give an example of what you want? (I'm not sure what you are asking for!)

Anonymous

  • Guest
Auto comment
« Reply #2 on: April 14, 2004, 04:39:32 pm »
There are examples in a unit:

{Screen About the Program
Modified on :21/08/2003
Development by:DMA/DDS
Required units :InfAplic.pas e SuporteAplic.pas
}

unit DlgSobre;                                            

interface

uses
  Classes, Forms,InfAplic,SuporteAplic;

type
{Class to create screen about of application}
  TDlgSobre = class(TComponent)
  private
    {save informations about aplication}
    FInformacao: TInfAplic;
    {save informations of support to application}
    FSuporte: TSuporteAplic;
    {description of application}
    FDescricao:string;
    {auto update from database}
    FAutoAtual:boolean;
    {window}
    FrmSobre:TForm;
    {method to open window of web}
    procedure pAbrirPaginaWeb(const HtmlPag: String);
  protected
    {method to create the window about of application}
    Procedure pMontar(Sender:TObject);
    {method to call page of internet}
    Procedure pChamInternt(Sender:TObject);
  public
    {method to activate the window}
    Procedure pAtivar;
  published
    {information of application}
    property Informacao:TInfAplic read FInformacao write FInformacao;
    {suport of application}
    property Suporte:TSuporteAplic read FSuporte write FSuporte;
    {description of application}
    property Descricao:string read FDescricao write FDescricao;
    {auto update from database}
    property AutoAtual:boolean read FAutoAtual write FAutoAtual;
  end;

{register the component TDlgSobre in MPDFT}  
procedure Register;

...

I put my comments on implementation before of method, procedure or function.

Slavko

  • Newbie
  • Posts: 3
Auto comment
« Reply #3 on: March 14, 2005, 10:27:29 pm »
In Delphi this is done with GExperts, look in ts source.... 8)  8)

 

TinyPortal © 2005-2018