Giter Site home page Giter Site logo

carpet's Introduction

These packages are example of how decorate your TDataModule with coloured panel, 
label and images.
It show us how to use the lazarus IDE form designer to
design non LCL visual widgets, and as bonus you can use it in real application.

Carpet widgetset in designtime

Installation: Compile the packages:

  • examples/carpet_datamodule/carpetspack.lpk
  • examples/carpet_datamodule/carpet_graphicalpack.lpk

install the package:

  • examples/carpet_datamodule/carpetspack_designer.lpk

and restart the IDE.

Then open the example project examples/carpet_datamodule/demo/project1.lpi. Open the form of unit2.pas and you will see some non LCL controls in the designer as various colored rectangles.

Overview: The package "carpetspack" is pure non-lcl, it doesn't depends on graphics.pas, so you can use it on any (GUI & No GUI, LCL & non-LCL) application. it introduces new visual non-LCL components:

  • TDataRoom : similar as TDataModule
  • TCarpet : similar as TPanel
  • TCarpetLabel : similar as TLabel

But "carpetspack_designer" is depends on LCL in design-time only. Its job is to provide designer and rendering component in designtime.

"carpet_graphicalpack" package introduce TCarpetImage wich is using TPicture, so it require LCLBase package. It is optional to install it, I do not include carpet_image.pas unit to carpetspack package to keep carpetspack pure non-lcl. It introduces components:

  • TCarpetImage

More info about non-LCL designer in Lazarus, see: examples/designnonlcl/notlcldesigner.lpk

carpet's People

Contributors

fathonysl avatar x2nie avatar

Watchers

 avatar

Forkers

khcloud-pascal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.