Poweredby/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Poweredby/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | \ | |
| 2 | + | =Composant TPoweredBy= | |
| 3 | + | ||
| 4 | + | ## par minesadorada@charcodelvalle.com | |
| 5 | + | ||
| 6 | + | ## Graphique Windows graphic | |
| 7 | + | ||
| 8 | + | <figure> | |
| 9 | + | <img src="powered_by_graphic.png" title="powered_by_graphic.png" /> | |
| 10 | + | <figcaption>powered_by_graphic.png</figcaption> | |
| 11 | + | </figure> | |
| 12 | + | ||
| 13 | + | ## Graphique Linux/macOS | |
| 14 | + | ||
| 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> | |
| 19 | + | ||
| 20 | + | ## Autres logos et bannières | |
| 21 | + | ||
| 22 | + | - [[Logos and Banners/fr|Logos and Banners]] | |
| 23 | + | ||
| 24 | + | ------------------------------------------------------------------------ | |
| 25 | + | ||
| 26 | + | ## Résumé | |
| 27 | + | ||
| 28 | + | - 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) | |
| 29 | + | - Plongez dans votre événement Form.create() (*Drop into your form.create() event*) | |
| 30 | + | ||
| 31 | + | ## Téléchargez | |
| 32 | + | ||
| 33 | + | Téléchargez depuis le Lazarus-CCR [ici](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/). | |
| 34 | + | ||
| 35 | + | ## Installation | |
| 36 | + | ||
| 37 | + | 1. Créez un nouveau dossier 'poweredby' | |
| 38 | + | 2. Dézippez l'archive dans le dossier | |
| 39 | + | 3. Dans l'EDI Lazarus ouvrez le paquet poweredby.lpk. | |
| 40 | + | 4. Répondez 'Oui' à la question 'Ouvrir comme un projet ?' | |
| 41 | + | 5. Compilez | |
| 42 | + | 6. Cliquez sur Installer | |
| 43 | + | 7. Répondez 'Oui' à la question 'Voulez-vous compiler Lazarus ?' | |
| 44 | + | 8. Après que Lazarus ait redémarré, contrôlez le nouveau composant 'Poweredby' dans la palette 'Additional'. | |
| 45 | + | ||
| 46 | + | ## Utilisation | |
| 47 | + | ||
| 48 | + | - Commencez un nouveau projet d'application | |
| 49 | + | - Posez un composant 'Poweredby' sur la fiche. | |
| 50 | + | - Double-cliquez sur la fiche vide pour accéder à l'évenement TForm1.Create | |
| 51 | + | - Ajoutez l'appel poweredby1.showpoweredbyform | |
| 52 | + | - Exécutez l'appication | |
| 53 | + | ||
| 54 | + | C'est tout !! | |
| 55 | + | ||
| 56 | + | ### Autres utilisations | |
| 57 | + | ||
| 58 | + | Le composant PoweredBy se prête bien à l'ajout comme sous-composant à un composant personnalisé existant : | |
| 59 | + | ||
| 60 | + | ``` pascal | |
| 61 | + | Uses uPoweredBy, Propedits, ..other units | |
| 62 | + | ||
| 63 | + | Type | |
| 64 | + | TMyComponent = Class(TComponent) | |
| 65 | + | private | |
| 66 | + | fPoweredBy:TPoweredBy; | |
| 67 | + | ..other stuff | |
| 68 | + | public | |
| 69 | + | procedure ShowPoweredByLogo; // Call fPoweredBy.ShowPoweredByForm method in this proc. | |
| 70 | + | ..other stuff | |
| 71 | + | published | |
| 72 | + | property PoweredBy:TPoweredBy read fPoweredBy write fPoweredBy; | |
| 73 | + | ..other stuff | |
| 74 | + | end; | |
| 75 | + | ||
| 76 | + | procedure Register; | |
| 77 | + | RegisterPropertyEditor(TypeInfo(TPoweredBy), | |
| 78 | + | TMyComponent, 'PoweredBy', TClassPropertyEditor); | |
| 79 | + | ||
| 80 | + | Constructor TMyComponent.Create() | |
| 81 | + | // Use tPoweredBy as a subcomponent | |
| 82 | + | // Register a TClassPropertyEditor in order to display it correctly | |
| 83 | + | fPoweredBy := TPoweredBy.Create(Self); | |
| 84 | + | fPoweredBy.SetSubComponent(true); // Tell the IDE to store the modified properties | |
| 85 | + | fPoweredBy.Name:='PoweredBy'; | |
| 86 | + | ``` | |
| 87 | + | ||
| 88 | + | ## Licence | |
| 89 | + | ||
| 90 | + | Licence LGPL. | |
| 91 | + | ||
| 92 | + | ## Plate-forme | |
| 93 | + | ||
| 94 | + | ### Windows | |
| 95 | + | ||
| 96 | + | - PoweredBy s'estompera dans un graphique de forme spécifiée (*shaped graphic*) | |
| 97 | + | ||
| 98 | + | ### Linux | |
| 99 | + | ||
| 100 | + | - PoweredBy s'affichera dans un carré graphique (cela est dû à l'impossibilité pour GTK de traiter avec les écrans à forme spécifiée) | |
| 101 | + | ||
| 102 | + | ### macOS | |
| 103 | + | ||
| 104 | + | - PoweredBy s'affiche dans un carré graphique, comme dans la version pour Linux. | |
| 105 | + | ||
| 106 | + | ## Testé sur | |
| 107 | + | ||
| 108 | + | - Windows 7 32/64-bit Laz v1.x fpc 2.6.x | |
| 109 | + | - Linux 32-bit Laz v0.9.x fpc 2.2.x | |
| 110 | + | ||
| 111 | + | ## Version | |
| 112 | + | ||
| 113 | + | V1.0.1.2 | |
| 114 | + | ||
| 115 | + | ### Support | |
| 116 | + | ||
| 117 | + | [Adresser un courrier à l'auteur](mailto:minesadorada@charcodelvalle.com) pour toute requête. | |
| 118 | + | ||
| 119 | + | ------------------------------------------------------------------------ | |
| 120 | + | ||
| 121 | + | ## Voir aussi | |
| 122 | + | ||
| 123 | + | - [[Logos and Banners]] | |
| 124 | + | - [[ScrollText|Standalone Scrolling Text component]] | |
| 125 | + | - [[Components and Code examples|Components and code examples]] | |
| 126 | + | ||
| 127 | + | --- | |
| 128 | + | *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).* |
