Copie du wikimiroir

Ceci est un miroir du wiki de pascal.chat. La modification, l’historique et la connexion se trouvent là-bas.

Poweredby/fr

English · Français · Русский

=Composant TPoweredBy=

par minesadorada@charcodelvalle.com

Graphique Windows graphic

Graphique Linux/macOS

Autres logos et bannières


Résumé

Téléchargez

Téléchargez depuis le Lazarus-CCR ici.

Installation

  1. Créez un nouveau dossier 'poweredby'
  2. Dézippez l'archive dans le dossier
  3. Dans l'EDI Lazarus ouvrez le paquet poweredby.lpk.
  4. Répondez 'Oui' à la question 'Ouvrir comme un projet ?'
  5. Compilez
  6. Cliquez sur Installer
  7. Répondez 'Oui' à la question 'Voulez-vous compiler Lazarus ?'
  8. Après que Lazarus ait redémarré, contrôlez le nouveau composant 'Poweredby' dans la palette 'Additional'.

Utilisation

C'est tout !!

Autres utilisations

Le composant PoweredBy se prête bien à l'ajout comme sous-composant à un composant personnalisé existant :

pascal
Uses uPoweredBy, Propedits, ..other units

Type
TMyComponent = Class(TComponent)
private 
  fPoweredBy:TPoweredBy;
  ..other stuff
public
  procedure ShowPoweredByLogo; // Call fPoweredBy.ShowPoweredByForm method in this proc.
  ..other stuff
published
  property PoweredBy:TPoweredBy read fPoweredBy write fPoweredBy;
  ..other stuff
end;

procedure Register;
RegisterPropertyEditor(TypeInfo(TPoweredBy),
    TMyComponent, 'PoweredBy', TClassPropertyEditor);

Constructor TMyComponent.Create()
// Use tPoweredBy as a subcomponent
// Register a TClassPropertyEditor in order to display it correctly
  fPoweredBy := TPoweredBy.Create(Self);
  fPoweredBy.SetSubComponent(true);  // Tell the IDE to store the modified properties
  fPoweredBy.Name:='PoweredBy';

Licence

Licence LGPL.

Plate-forme

Windows

Linux

macOS

Testé sur

Version

V1.0.1.2

Support

Adresser un courrier à l'auteur pour toute requête.


Voir aussi


From the Free Pascal wiki, page "Poweredby/fr", as it stood on 2020-02-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Version 2, dernière modification par WikiArchive .