Copying a control to the toolbar for temporary selection. lazarus / 10-Designer ---------------------------------------------------------------------- vfclists · 2024-09-01 14:04 IIRC Delphi has a system where if you need rapid access to a set of one or more grouped controls which may be held in a parent container such as a panel, you can copy it to the components toolbar and select it whenever you want onto a form. Is that feature available in the Lazarus IDE? ---------------------------------------------------------------------- dsiders · 2024-09-01 14:43 Quote from: vfclists on September 01, 2024, 04:04:57 pmIIRC Delphi has a system where if you need rapid access to a set of one or more grouped controls which may be held in a parent container such as a panel, you can copy it to the components toolbar and select it whenever you want onto a form. Is that feature available in the Lazarus IDE? Are you referring to TFrame? https://wiki.freepascal.org/Frames https://lazarus-ccr.sourceforge.io/docs/lcl/forms/tframe.html ---------------------------------------------------------------------- vfclists · 2024-09-01 19:06 Quote from: dsiders on September 01, 2024, 04:43:22 pmQuote from: vfclists on September 01, 2024, 04:04:57 pmIIRC Delphi has a system where if you need rapid access to a set of one or more grouped controls which may be held in a parent container such as a panel, you can copy it to the components toolbar and select it whenever you want onto a form. Is that feature available in the Lazarus IDE? Are you referring to TFrame? https://wiki.freepascal.org/Frames https://lazarus-ccr.sourceforge.io/docs/lcl/forms/tframe.html No, not Tframe. It applies to any control you have made some changes to that you want to make permanently available or just for the session. So for instance of you want a panel with a green border, you can create a panel with a green border, place it on the components palette, and any time you want a panel with a green border you just choose it from the component palette. ---------------------------------------------------------------------- alpine · 2024-09-01 20:34 Quote from: vfclists on September 01, 2024, 09:06:22 pmNo, not Tframe. It applies to any control you have made some changes to that you want to make permanently available or just for the session. So for instance of you want a panel with a green border, you can create a panel with a green border, place it on the components palette, and any time you want a panel with a green border you just choose it from the component palette. Doesn't copy/paste do the same thing? ---------------------------------------------------------------------- Joanna · 2024-09-02 11:13 Are you trying to create a custom control and add it to the componets palette? ---------------------------------------------------------------------- dseligo · 2024-09-02 12:11 Quote from: alpine on September 01, 2024, 10:34:32 pmQuote from: vfclists on September 01, 2024, 09:06:22 pmNo, not Tframe. It applies to any control you have made some changes to that you want to make permanently available or just for the session. So for instance of you want a panel with a green border, you can create a panel with a green border, place it on the components palette, and any time you want a panel with a green border you just choose it from the component palette. Doesn't copy/paste do the same thing? It does the same, but this is better. I.e. I *never* use TDBGrid for entering data, so I always adapt it a bit (I set it readonly, just in case, turn off dgIndicator, turn on dgRowSelect and similar). Similar is with some other controls (I always set scrollbars in TMemo). This would allow it to just click it in the components toolbar. ---------------------------------------------------------------------- vfclists · 2024-09-02 20:39 Quote from: alpine on September 01, 2024, 10:34:32 pmQuote from: vfclists on September 01, 2024, 09:06:22 pmNo, not Tframe. It applies to any control you have made some changes to that you want to make permanently available or just for the session. So for instance of you want a panel with a green border, you can create a panel with a green border, place it on the components palette, and any time you want a panel with a green border you just choose it from the component palette. Doesn't copy/paste do the same thing? Copy and paste requires that the form with the component is always at hand, meaning it must be common all projects or packages. This method avoids that.