procedure TNewLine.FormCreate(Sender: TObject); begin TxtMemo.Text := IntToStr(Main.PostIt.CursPos); end;
procedure TNewLine.FormShow(Sender: TObject); begin TxtMemo.Text := IntToStr(Main.PostIt.CursPos); end;
unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionTxtMemo.Text := IntToStr(PostIt.CursPos);
Cas #1 type TForm1 = class(TForm) ... public { Déclarations publiques } CursPos: Integer; end; Cas #2 var Form1: TForm1; CursPos: Integer;
type TPostIt = class(TForm) ... private { Déclarations privées } procedure EchangeString(L1, L2: TLabel); public { Déclarations publiques } CursPos: integer; end;
TxtMemo.Text := IntToStr(PostIt.CursPos);
Edit1.Text := IntToStr(CursPos);
type TNewLine = class(TForm) TxtMemo: TEdit; LabMemo: TLabel; DTPheure: TDateTimePicker; DTPdate: TDateTimePicker; LabDate: TLabel; LabHeure: TLabel; BtnValider: TButton; BtnAnnuler: TButton; procedure BtnAnnulerClick(Sender: TObject); procedure FormCreate(Sender: TObject); private { Déclarations privées } public { Déclarations publiques } end; var NewLine: TNewLine;
TxtMemo.Text := IntToStr(PostIt.CursPos);
procedure TNewLine.FormCreate(Sender: TObject); begin TxtMemo.Text := IntToStr(Main.PostIt.CursPos); end;