UserXW
Messages postés6Date d'inscriptionmercredi 4 juin 2003StatutMembreDernière intervention20 juillet 2003
-
16 juil. 2003 à 20:24
UserXW
Messages postés6Date d'inscriptionmercredi 4 juin 2003StatutMembreDernière intervention20 juillet 2003
-
16 juil. 2003 à 21:21
Slt:
J'ai un souci avec un composant ... (Boite A propos sous forme de composant) voici donc :
(parti du code source)
private
fCopyright: string;
fProduit: string;
fSite: string;
fMail: string;
fTitle: string;
{ Private declarations }
protected
{ Protected declarations }
public
procedure Execute;
published
property Copyright : string read fCopyright Write fCopyright;
property Produit : string read fProduit write fProduit;
property Site : string read fSite write fSite;
property Mail : string read fmail write fMail;
property Titre : string read fTitle write fTitle;
{ Published declarations }
end;
..........................
procedure TNTAboutBox.Execute;
begin
dlg := TfmNTAboutBox.Create (nil);
try
if Copyright <> '' then
dlg.stCopyright.Caption := Copyright;
if Produit <> '' then
dlg.stProduct.Caption := Produit
else
dlg.stProduct.Caption := Application.Title;
if Site <> '' then
dlg.Label2.Caption := Site
else
dlg.Label2.Caption := '';
if Mail <> ''then
dlg.Label3.Caption := Mail;
if Titre <> '' then
dlg.Caption := Titre
else
dlg.Caption := 'A propos de ' + Application.Title + '...';
dlg.ShowModal
finally
dlg.Free
end
end;