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