mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 13:39:11 +02:00
comments
git-svn-id: trunk@21731 -
This commit is contained in:
parent
3d4e211dbf
commit
3ded35fa2f
@ -1,10 +1,18 @@
|
|||||||
This package is an example how to to use the lazarus IDE form designer to
|
This package is an example how to to use the lazarus IDE form designer to
|
||||||
design non LCL widgets.
|
design non LCL widgets like web pages, UML diagrams or other widgetsets like
|
||||||
|
fpgui.
|
||||||
|
|
||||||
|
Installation:
|
||||||
|
Install the package examples/designnonlcl/notlcldesigner.lpk and restart the IDE.
|
||||||
|
Then open the example project examples/designnonlcl/project/NonLCL1.lpi.
|
||||||
|
Open the form of unit1.pas and you will see some non LCL controls in the
|
||||||
|
designer as red rectangles.
|
||||||
|
|
||||||
|
Overview:
|
||||||
The unit mywidgetset.pas contains the class TMyWidget which is a TComponent
|
The unit mywidgetset.pas contains the class TMyWidget which is a TComponent
|
||||||
and has Left, Top, Width, Height and Parent to define a simple widgetset.
|
and has Left, Top, Width, Height and Parent to define a simple widgetset.
|
||||||
It does not contain any paint routines, so you can not do anything useful with
|
This widgetset is only for demonstration and does not contain any paint
|
||||||
this widgetset.
|
routines, so you can not do anything useful with this widgetset.
|
||||||
|
|
||||||
The unit mywidgetdesigner.pas contains the designer mediator TMyWidgetMediator
|
The unit mywidgetdesigner.pas contains the designer mediator TMyWidgetMediator
|
||||||
which is registered in the Register procedure:
|
which is registered in the Register procedure:
|
||||||
@ -12,3 +20,4 @@ which is registered in the Register procedure:
|
|||||||
When the package is installed in the IDE, the mediator allows to design
|
When the package is installed in the IDE, the mediator allows to design
|
||||||
TMyWidget components visually. Without the mediator the IDE would show them as
|
TMyWidget components visually. Without the mediator the IDE would show them as
|
||||||
icons, like TOpenDialog or TDataSource.
|
icons, like TOpenDialog or TDataSource.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user