Recent

Author Topic: How to move all the content from one panel to another control?  (Read 4919 times)

tatamata

  • Hero Member
  • *****
  • Posts: 804
    • ZMSQL - SQL enhanced in-memory database
I have a panel inside a TabSheet of a Page control. The panel containes a lot of controls with deep hieararchy. Many of them have some events coded.
I want to move the whole content (all of the nested controls) to another TabSheet control.
I tried to select all the elements of the hierarchy and cut&copy it to the new TabSheet, but I end in an error ("Invalid floating point operation") and loose everything except some Pair splitters...

So, what is the easiest way to move a bunch of nested controls to another container control?
« Last Edit: June 03, 2011, 06:42:48 pm by tatamata »

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: How to move all the content from one panel to another control?
« Reply #1 on: June 03, 2011, 06:49:34 pm »
Sometimes I just right-click on the form and choose "View Sourc (.lfm)", there you have the source of your form and you can copy/paste what you want.

tatamata

  • Hero Member
  • *****
  • Posts: 804
    • ZMSQL - SQL enhanced in-memory database
Re: How to move all the content from one panel to another control?
« Reply #2 on: June 03, 2011, 08:04:36 pm »
Sometimes I just right-click on the form and choose "View Sourc (.lfm)", there you have the source of your form and you can copy/paste what you want.
Yes, direct editing of .lfm solved the problem.
Thanks.

 

TinyPortal © 2005-2018