Sign in Join
Wiki copytemporary

Poweredby/fr: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-\
21=Composant TPoweredBy=
32
43## par minesadorada@charcodelvalle.com
54
65## Graphique Windows graphic
76
8-<figure>
9-<img src="powered_by_graphic.png" title="powered_by_graphic.png" />
10-<figcaption>powered_by_graphic.png</figcaption>
11-</figure>
7+![](/wiki-images/7/72/Powered_by_graphic.png)
128
139## Graphique Linux/macOS
1410
15-<figure>
16-<img src="linux_powered_by_graphic.jpg" title="linux_powered_by_graphic.jpg" />
17-<figcaption>linux_powered_by_graphic.jpg</figcaption>
18-</figure>
11+![](/wiki-images/1/1a/Linux_powered_by_graphic.jpg)
1912
2013## Autres logos et bannières
2114
2215- [[Logos and Banners/fr|Logos and Banners]]
2316
2417------------------------------------------------------------------------
2518
2619## Résumé
2720
2821- 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)
2922- Plongez dans votre événement Form.create() (*Drop into your form.create() event*)
3023
3124## Téléchargez
3225
3326Téléchargez depuis le Lazarus-CCR [ici](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/).
3427
3528## Installation
3629
37301. Créez un nouveau dossier 'poweredby'
38312. Dézippez l'archive dans le dossier
39323. Dans l'EDI Lazarus ouvrez le paquet poweredby.lpk.
40334. Répondez 'Oui' à la question 'Ouvrir comme un projet ?'
41345. Compilez
42356. Cliquez sur Installer
43367. Répondez 'Oui' à la question 'Voulez-vous compiler Lazarus ?'
44378. Après que Lazarus ait redémarré, contrôlez le nouveau composant 'Poweredby' dans la palette 'Additional'.
4538
4639## Utilisation
4740
4841- Commencez un nouveau projet d'application
4942- Posez un composant 'Poweredby' sur la fiche.
5043- Double-cliquez sur la fiche vide pour accéder à l'évenement TForm1.Create
5144- Ajoutez l'appel poweredby1.showpoweredbyform
5245- Exécutez l'appication
5346
5447C'est tout !!
5548
5649### Autres utilisations
5750
5851Le composant PoweredBy se prête bien à l'ajout comme sous-composant à un composant personnalisé existant :
5952
6053``` pascal
6154Uses uPoweredBy, Propedits, ..other units
6255
6356Type
6457TMyComponent = Class(TComponent)
6558private
6659 fPoweredBy:TPoweredBy;
6760 ..other stuff
6861public
6962 procedure ShowPoweredByLogo; // Call fPoweredBy.ShowPoweredByForm method in this proc.
7063 ..other stuff
7164published
7265 property PoweredBy:TPoweredBy read fPoweredBy write fPoweredBy;
7366 ..other stuff
7467end;
7568
7669procedure Register;
7770RegisterPropertyEditor(TypeInfo(TPoweredBy),
7871 TMyComponent, 'PoweredBy', TClassPropertyEditor);
7972
8073Constructor TMyComponent.Create()
8174// Use tPoweredBy as a subcomponent
8275// Register a TClassPropertyEditor in order to display it correctly
8376 fPoweredBy := TPoweredBy.Create(Self);
8477 fPoweredBy.SetSubComponent(true); // Tell the IDE to store the modified properties
8578 fPoweredBy.Name:='PoweredBy';
8679```
8780
8881## Licence
8982
9083Licence LGPL.
9184
9285## Plate-forme
9386
9487### Windows
9588
9689- PoweredBy s'estompera dans un graphique de forme spécifiée (*shaped graphic*)
9790
9891### Linux
9992
10093- PoweredBy s'affichera dans un carré graphique (cela est dû à l'impossibilité pour GTK de traiter avec les écrans à forme spécifiée)
10194
10295### macOS
10396
10497- PoweredBy s'affiche dans un carré graphique, comme dans la version pour Linux.
10598
10699## Testé sur
107100
108101- Windows 7 32/64-bit Laz v1.x fpc 2.6.x
109102- Linux 32-bit Laz v0.9.x fpc 2.2.x
110103
111104## Version
112105
113106V1.0.1.2
114107
115108### Support
116109
117110[Adresser un courrier à l'auteur](mailto:minesadorada@charcodelvalle.com) pour toute requête.
118111
119112------------------------------------------------------------------------
120113
121114## Voir aussi
122115
123116- [[Logos and Banners]]
124117- [[ScrollText|Standalone Scrolling Text component]]
125118- [[Components and Code examples|Components and code examples]]
126119
127120---
128121*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](/wiki-contact).*

Back to history