Sign in Join
Wiki copytemporary

Poweredby: what changed

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

OldNewLine
1-\
21==TPoweredBy component==
32
43### by minesadorada@charcodelvalle.com
54
65#### 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##### Linux/macOS graphic
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### Other logos and banners
2114
2215- [[Logos and Banners]]
2316
2417------------------------------------------------------------------------
2518
2619### Summary
2720
2821- A visual component (installed on the 'Additional' tab) that fades in above shaped graphic image for 1 second (or in Linux/MacOS displays it for 1 second)
2922- Drop into your form.create() event
3023
3124### Download
3225
3326Download from the lazarus CCR [here](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/)
3427
3528### Install
3629
37301. Make a new folder 'poweredby'
38312. Unzip the archive into the folder
39323. In the Lazarus IDE choose 'Open' poweredby.lpk
40334. When asked 'Open as a project' answer 'yes'
41345. Click Compile
42356. Click Use/Install
43367. When asked 'would you like to compile Lazarus?'m answer 'yes'
44378. After Lazarus has restarted, check the 'Additional' component tab/palette for the new 'poweredby' component
4538
4639### Use
4740
4841- Start a new project application
4942- Drop a 'poweredby' component onto the form
5043- Double-click the empty form to show the TForm1.Create method
5144- Add poweredby1.showpoweredbyform
5245- Run the application
5346
5447That's it!
5548
5649#### Other uses
5750
5851The PoweredBy component lends itself well to adding as a subcomponent to an existing custom component:
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### License
8982
9083LGPL license
9184
9285### Platform
9386
9487#### Windows
9588
9689- PoweredBy will fade-in a shaped graphic
9790
9891#### Linux
9992
10093- PoweredBy will display a square graphic
10194 - This is due to the inability of GTK widgetset to deal with transparent shaped screens
10295
10396#### macOS
10497
10598- PoweredBy displays a square graphic, similar to the Linux version.
10699
107100### Tested
108101
109102Windows 7 32/64-bit Laz v1.x fpc 2.6.x Linux 32-bit Laz v0.9.x fpc 2.2.x
110103
111104### Version
112105
113106V1.0.1.2
114107
115108#### Support
116109
117110[Email the author](mailto:minesadorada@charcodelvalle.com) with any queries
118111
119112### See Also
120113
121114- [[Logos and Banners]]
122115- [[ScrollText|Standalone Scrolling Text component]]
123116- [[Components and Code examples|Components and code examples]]
124117
125118---
126119*From the Free Pascal wiki, page "Poweredby", 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