PixInsight Forum
2010 September 07 09:27:14 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to PixInsight Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: PCL: on startup my dialog is sometimes much too wide  (Read 54 times)
Nocturnal
PixInsight Jedi Knight
*****
Posts: 1433



View Profile WWW
« on: 2010 July 29 22:08:59 »


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?
Logged

Best,

    Sander
---
WO-M110ED+FR-III/TRF-2008
QHY-8
DSI-Pro for guiding
C11 + HyperStar3
PIxInsight, DeepSkyStacker, Fitswork, PHD, Nebulosity, CCDCap
Juan Conejero
PTeam Member
PixInsight Jedi Master
******
Posts: 1984



View Profile WWW
« Reply #1 on: 2010 July 30 00: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.
Logged

Juan Conejero
PixInsight Development Team
http://pixinsight.com/
Nocturnal
PixInsight Jedi Knight
*****
Posts: 1433



View Profile WWW
« Reply #2 on: 2010 July 30 01:05:25 »

Hi Juan,

I sent a zip with the sources your way.

Logged

Best,

    Sander
---
WO-M110ED+FR-III/TRF-2008
QHY-8
DSI-Pro for guiding
C11 + HyperStar3
PIxInsight, DeepSkyStacker, Fitswork, PHD, Nebulosity, CCDCap
Juan Conejero
PTeam Member
PixInsight Jedi Master
******
Posts: 1984



View Profile WWW
« Reply #3 on: 2010 July 30 01:15:18 »

Thanks Sander. I'll take a look and will post here.
Logged

Juan Conejero
PixInsight Development Team
http://pixinsight.com/
Juan Conejero
PTeam Member
PixInsight Jedi Master
******
Posts: 1984



View Profile WWW
« Reply #4 on: 2010 July 31 13: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 Wink
Logged

Juan Conejero
PixInsight Development Team
http://pixinsight.com/
Nocturnal
PixInsight Jedi Knight
*****
Posts: 1433



View Profile WWW
« Reply #5 on: 2010 July 31 14:51:13 »

Thanks Juan, got your email smile
Logged

Best,

    Sander
---
WO-M110ED+FR-III/TRF-2008
QHY-8
DSI-Pro for guiding
C11 + HyperStar3
PIxInsight, DeepSkyStacker, Fitswork, PHD, Nebulosity, CCDCap
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!