Jump to content

How to create custom controls using TUniFrame and TUniContainerPanel?


davidizadar

Recommended Posts

Hi, everyone,

 

In standard Delphi VCL for the desktop it is possible to create new VCL visual components the easy way of the hard way.

  • The hard way is to create everything in code and hope that it will render correctly later. You design it first and export the design to code.
  • The easy way is to keep always everything as a RAD design. You can do that by using TFrame and converting it to a control (exposing the internal properties or hiding them), or by embedding the TFrame in the control.

I'll like to use the same "easy option" with uniGUI, but I need to encapsulate the frame so that the only published and visible properties come from the control.

It looks like inheriting from TUniContainerPanel could be a solution.

 

If that is correct, where can I find some demo code for testing it?

 

I'm interested in providing design time support for that new component, like activating a database connection and showing a live grid.

 

Thanks,

 

David Izada Rodriguez

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...