Author Topic: [PJSR] What is the proper parent of ac control  (Read 4256 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
[PJSR] What is the proper parent of ac control
« on: 2012 December 10 00:09:20 »
Hello,
When creating controls in a Dialog, I use the Dialog as the parent for all created controls inside that parent. This is treu even for controls embedded in a Sizer, GroupBox etc... The membership in a group box or sizer is indicated by the corresponding 'add' method, not by the 'parenthood' of the child.
When trying other stuff like dynamic control, I have seen that setting the parent of a control to, for example, the containing GroupBox have some impact on the layout (but not much). Like the behavoir is better or worse when dynamically hiding/showing controls.

Is it possible to have some information to better understand what the parent must/should be and how it impacts the layout or other aspects of the GUI?
thanks
-- bitli

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: [PJSR] What is the proper parent of ac control
« Reply #1 on: 2012 December 10 00:23:33 »
I guess that PI has the same philosophy as Qt. So it might be a good idea to look fo an answer there.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)