The second run of the program, the dialog is displayed at the last size,
right?

  So, it is just at the "first ever launch", right?

  Then, do:

  IupConfigSetVariableInt(ih, name, "Width", width);
  IupConfigSetVariableInt(ih, name, "Height", height);

   before IupConfigLoad that it will prevents IupConfigDialogShow from
maximizing the dialog at the first time.

   I have to improve this logic in IupConfigDialogShow.

Best,
Scuri

Em 11/07/2015 02:08, "Eric Wing" <ewmail...@gmail.com> escreveu:

> I may have written myself into a hole since I'm looking at this last
> instead of first.
> I am trying to use IupConfigDialogShow.
>
> On the very first ever launch of my program, it always creates a
> window that is the full screen of the desktop. I don't want that. I
> would like something that is 'natural' sized.
>
> My app is a little complicated at this point. The dialog in question
> contains a zBox. That zBox contains 4 different views I can switch
> between. Ultimately, each one of those is wrapped in a vbox. (Usually
> several levels of nested hbox/vbox.)
>
> I've tried setting the SIZE on the zbox and dialog, but it doesn't
> seem to help. MAXSIZE will prevent this problem, but I do want to
> allow the user to expand the window. I just don't want it to be the
> default.
>
>
> What's also strange is that if I hit the maximize button on the
> window, it does reduce it down to the 'natural' size. It is as if the
> program is being launched in maximized. But I checked the the .config
> file and Maximized=0, I also tried asserting PLACEMENT to NORMAL just
> to make sure the MAXIMIZE flag wasn't set.
>
> Any recommendations?
> Thanks,
> Eric
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to