PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Resizing without Resizing  (Read 729 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Resizing without Resizing
« 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!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Resizing without Resizing
« Reply #1 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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Resizing without Resizing
« Reply #2 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!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services