how do I create a TCustomControl that will behave like Tpanel? eg MyCustomComponent, that I can drop components in like labels, images etc.
how to create a TCustomControl that behaves like Tpanel?
1.8k views Asked by XBasic3000 At
1
There are 1 answers
Related Questions in DELPHI
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- How to catch WM_DEVICECHANGE in a control other than TForm?
- show information with Rolling / moving messages delphi xe7
- What is the different between "Console target" and "GUI target" in DCC32 option?
- How to add new online ressources to RAD Studio help system
- C# and Delphi code have different behaviour when importing unmanaged dll
- Loop through records on a cxgrid and update a field/column
- Delphi 7 - Save to a Specific .INI Files Name
- TImagelist for large images
- how to modify a function so it returns an array of strings
Related Questions in CUSTOM-COMPONENT
- JSF 2.2 ViewDeclarationLanguage createComponent passes attributes as String?
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- Angular add attribute(directive) before directive compiled
- ASP.NET API Controller method custom route - Include current URL
- Firemonkey custom component
- Using Tedit Inside of a FireMonkey component
- How to pass data from JavaScript code to Polymer custom element?
- Toolbar buttons not working in Edit View Joomla Custom Component
- Tags input component with support for space in tagname
- Updating components inside a custom ui:component when it is used multiple times on same page
Related Questions in TPANEL
- In Win API how to get position of progressbar of another application, if it realized by TPanel of Delphi?
- How set Panel position always above of hole region?
- In Delphi how I can set a TPanel variable type to null?
- bring to back doesnt work in c++ builder bcb6
- Delphi XE4 Tpanel doesnt change color
- How to access TPanel child form controls?
- Delphi Panels and custom component Z order issue
- c++ builder: dynamically remove all TPanel's from TFramedVertScrollBox
- Object container based on TGraphicControl
- Delphi - Issue rendering TPanel descendant in TScrollBox (32K pixel limit)
Related Questions in TCUSTOMCONTROL
- Why is my custom control not receiving focus on its own?
- Problem with painting with TImage. I have drawn on the TImage but it is not being painted
- Using TControlBar, how do I limit the movement of the bands to a single row?
- How do I make the scrollbar's thumbtrack resize
- How does a TCustomControl receive input focus?
- how to create a TCustomControl that behaves like Tpanel?
- how to add TAboutBox in TCustomControls?
- How to select sub-control in my custom control in design-time in delphi
- Delphi tcustomcontrol/twincontrol
- How to determine the path of a DFM where the custom TComponent is?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The trick is this piece of code in TCustomPanel:
There are many more VCL controls you can descend from that have
csAcceptsControlsin theirControlStyleproperty.If you want to do this in your own controls, but do not descend from such a VCL control, then you should do something like this:
csAcceptsControlsto theControlStylepropertyLike this sample code:
--jeroen