CiceroBillo Posted December 15, 2021 Share Posted December 15, 2021 Hi! I'm trying to change Parent Property of a component, but this seems don't work. I've created a ComponentEditor and in the Context Menu There's a item that call a Form Configuration. With this form I can do some operations that work fine. What I need is to use ClipBoard.SetComponent Method to Copy and Paste (ClipBoard.GetComponent) in code. Copy and Paste use same routine in IDE Editor/FormEditor and work fine. When I invoke ClipBoard.SetComponent(aComponent: TComponent) an AV occurs. Maybe I missing something? Can anyone help me, please? TIA Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 15, 2021 Share Posted December 15, 2021 29 minutes ago, CiceroBillo said: What I need is to use ClipBoard.SetComponent Method to Copy and Paste (ClipBoard.GetComponent) in code. Hello, Well, in short, you cannot use the ClipBrd module. Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted December 15, 2021 Author Share Posted December 15, 2021 I've used another aproach with TMemoryStream like CipBoard does, but with same result. Any tip for clone a component using ContextMenu, please? Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted December 15, 2021 Author Share Posted December 15, 2021 3 hours ago, Sherzod said: Hello, Well, in short, you cannot use the ClipBrd module. Why not use ClipBoard? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 16, 2021 Share Posted December 16, 2021 7 hours ago, CiceroBillo said: Why not use ClipBoard? You can use ClipBoard on the client side, but as I said above, you cannot use, specifically the ClipBrd module. Please use the search on the forum. Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted December 16, 2021 Author Share Posted December 16, 2021 8 hours ago, Sherzod said: You can use ClipBoard on the client side, but as I said above, you cannot use, specifically the ClipBrd module. Please use the search on the forum. As I said before, I'm using in a Component Editor inside Delphi IDE, then I think I can use ClipBoard module, but I don't need it anymore. I'm using TypeCast to get/set the parent of TuniControl(Component). Thanks anyway. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 16, 2021 Share Posted December 16, 2021 17 minutes ago, CiceroBillo said: As I said before, I'm using in a Component Editor inside Delphi IDE, then I think I can use ClipBoard module, but I don't need it anymore. I'm using TypeCast to get/set the parent of TuniControl(Component). Forgive me then, your case is not clear to me. Quote Link to comment Share on other sites More sharing options...
markokas Posted December 16, 2021 Share Posted December 16, 2021 18 hours ago, CiceroBillo said: Why not use ClipBoard? Beacuse, clipboard is on server side - VCL way. You are on Client side - browser, only with JS could be possible. Br, Marko Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted December 16, 2021 Author Share Posted December 16, 2021 26 minutes ago, markokas said: Beacuse, clipboard is on server side - VCL way. You are on Client side - browser, only with JS could be possible. Br, Marko I'm not using in an application. It's used at Design-time with Component Editor (Delphi IDE) to change the Parent to a uniContainerPanel component or another container when the components need to be grouped. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.