Composant TPoweredBy
editGraphique Windows graphic
edit
Graphique Linux/macOS
edit
Autres logos et bannières
editRésumé
edit- Un composant visuel (placé dans l'onglet 'Additional') qui s'efface dans l'image graphique au-dessus de la forme après 1 seconde (ou l'affiche pendant 1 seconde dans Linux / MacOS)
- Plongez dans votre événement Form.create() (Drop into your form.create() event)
Téléchargez
editTéléchargez depuis le Lazarus-CCR ici.
Installation
edit- Créez un nouveau dossier 'poweredby'
- Dézippez l'archive dans le dossier
- Dans l'EDI Lazarus ouvrez le paquet poweredby.lpk.
- Répondez 'Oui' à la question 'Ouvrir comme un projet ?'
- Compilez
- Cliquez sur Installer
- Répondez 'Oui' à la question 'Voulez-vous compiler Lazarus ?'
- Après que Lazarus ait redémarré, contrôlez le nouveau composant 'Poweredby' dans la palette 'Additional'.
Utilisation
edit- Commencez un nouveau projet d'application
- Posez un composant 'Poweredby' sur la fiche.
- Double-cliquez sur la fiche vide pour accéder à l'évenement TForm1.Create
- Ajoutez l'appel poweredby1.showpoweredbyform
- Exécutez l'appication
C'est tout !!
Autres utilisations
editLe composant PoweredBy se prête bien à l'ajout comme sous-composant à un composant personnalisé existant :
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
editLicence LGPL.
Plate-forme
editWindows
edit- PoweredBy s'estompera dans un graphique de forme spécifiée (shaped graphic)
Linux
edit- PoweredBy s'affichera dans un carré graphique (cela est dû à l'impossibilité pour GTK de traiter avec les écrans à forme spécifiée)
macOS
edit- PoweredBy s'affiche dans un carré graphique, comme dans la version pour Linux.
Testé sur
edit- Windows 7 32/64-bit Laz v1.x fpc 2.6.x
- Linux 32-bit Laz v0.9.x fpc 2.2.x
Version
editV1.0.1.2
Support
editAdresser un courrier à l'auteur pour toute requête.