PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: James Zukowski on February 21, 2023, 01:59:29 PM

Title: Resizing without Resizing
Post by: James Zukowski on February 21, 2023, 01:59:29 PM
When we set up many of our panels, we set them as Resizable/Custom with the various controls anchored how we want them. Part of this is to ensure we don't have any (including a logo picture) trying to be set up beyond the edges. I've noticed that this essentially sets the minimum size of the panel based on the designed size. This only allows the user to make the panel larger, but not smaller.

Has anyone got an idea about how to set a small minimum size, but initialize the panel at a somewhat larger "default" size, which would allow the user to resize the panel larger or smaller?

Thanks, all!
Title: Re: Resizing without Resizing
Post by: Mike King on February 21, 2023, 03:26:10 PM
The system is designed such that the panel size you specified during the design stage (i.e. the dimensions used by Nomads designer) represent the smallest panel size you want.  When displayed the user can set the size larger but not smaller.

As for setting the initial size you could try issuing a PRINT 'SIZE'(nn,nn), in the panel post display logic.  This will set the screen size if there is no saved user defined size on file.
Title: Re: Resizing without Resizing
Post by: James Zukowski on February 21, 2023, 03:55:38 PM
Looks pretty good, Mike!

The only thing is that it goes through the resize logic a second time, so it does a "double-take" when starting up.

Thanks for the idea!