Hi
I'm having trouble placing a label into a groupbox at runtime. I'll try to explain this the best I can.
I have a groupbox1 with a label inside it, I drag this label into groupbox2. Now I can perform this drag/drop process fine but where I'm having trouble is I want a button that when clicked will place the label back in it's original position in the first groupbox. I've tried placing the label back to it's original left/top properties (ie - Lbl1.Left := 15etc. However this places the label at left/top co-ordinates in within the groupbox it is presently in, so it stays at left = 15 in the second groupbox not first. I don't know how to get the label back into it's original groupbox.
I suspect I might be going about this the wrong way. Anyone here know of any ways to achieve this?
Thanks.
I'm having trouble placing a label into a groupbox at runtime. I'll try to explain this the best I can.
I have a groupbox1 with a label inside it, I drag this label into groupbox2. Now I can perform this drag/drop process fine but where I'm having trouble is I want a button that when clicked will place the label back in it's original position in the first groupbox. I've tried placing the label back to it's original left/top properties (ie - Lbl1.Left := 15etc. However this places the label at left/top co-ordinates in within the groupbox it is presently in, so it stays at left = 15 in the second groupbox not first. I don't know how to get the label back into it's original groupbox.
I suspect I might be going about this the wrong way. Anyone here know of any ways to achieve this?
Thanks.