Author Topic: PCL: on startup my dialog is sometimes much too wide  (Read 5541 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com

Hi,

I've been struggling with an annoying problem with one of my processes.

- use process
- cancel process (it's a dynamic one)
- open process again
- now dialog is very wide, extends way to the right

It seems process location and size is stored somewhere and I'm not doing the right thing to restore it on load. What could be the cause?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PCL: on startup my dialog is sometimes much too wide
« Reply #1 on: 2010 July 29 16:26:56 »
Hi Sander,

I'd need to take a look at your code to help you. It might be an issue with Sizer. The geometry of a ProcessInterface is always stored in the core settings file unless you call ProcessInterface::DisableAutoSaveGeometry() explicitly from your code.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: PCL: on startup my dialog is sometimes much too wide
« Reply #2 on: 2010 July 29 17:05:25 »
Hi Juan,

I sent a zip with the sources your way.

Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PCL: on startup my dialog is sometimes much too wide
« Reply #3 on: 2010 July 29 17:15:18 »
Thanks Sander. I'll take a look and will post here.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PCL: on startup my dialog is sometimes much too wide
« Reply #4 on: 2010 July 31 05:25:57 »
Hi Sander,

I've already sent your code with the pertinent revisions. The tricky bit that you were missing is a call to AdjustToContents() at the end of your GUIData constructor. Always call this member function after having populated your interface's main sizer.

Excellent and very useful tool you're cooking. Hope to see it published soon ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: PCL: on startup my dialog is sometimes much too wide
« Reply #5 on: 2010 July 31 06:51:13 »
Thanks Juan, got your email :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity