PALETTE, ALLOW RESIZING=FALSE

Started by domenicomaria, November 26, 2025, 09:37:50 AM

Previous topic - Next topic

domenicomaria

I tried using PALETTES...

It would be great if they worked properly!

I set "allow resizing" to "false"

but it was useless... it was always possible to resize the palette...

then I set "width", "max width", and "min width" to have the same value,
and I did the same by assigning the same value
to "height", "min height", and "max height"...

and it seemed to work,
but every time (with "auto hide" enabled)
the palette was hidden or shown,
the size changed unpredictably...

domenicomaria

probably the first simple thing to fix is "allow resizing" :

if it's set to "false",the palette should NEVER change size,
for any reason...

owenwengerd

Palettes are child windows inside a dock. The dock is user sizable, and it can have other palettes alongside your palette, so your palette isn't in control of the dock size. If you set a palette resizable=false, then it really does not resize, but that does not prevent the dock from being resized. It just means your palette may be smaller or larger than the dock, instead of resizing with it. The dock does take into consideration the min/max sizes of all palettes in the same dock, so that does give some control, but it doesn't force the dock to be a certain size in case there are conflicting requirements among multiple palettes.
Owen Wengerd (Outside The Box) / ManuSoft

domenicomaria

What you say is certainly correct...
... but there's more...
... something's not working...
in any case...

keep in mind that I use Bricscad.

I'm sending you some images...
If there are too many, delete them.

Thanks

domenicomaria

It seems that it is possible to control the "height" of the palette...

... while the "width" is absolutely out of my control...

domenicomaria

#5
Hi Owen.

Try playing a little with this lisp, please ...

you have to drag the palette using the "title bar" ...
and sometime let it to dock
and after drag it again
and do this 10, 20 ... 30 times ... please

And it will show you its unpredictable behaviour ... !



(defun PALETTE-TEST ()

(dcl-project-import
'("YWt6A9QFAACdGFNZBuITLbUUaj9qQ0MYWBtiWnpcnFQeOj84WI00nCyu+zBKQAC+903e50I2PHKn"
"Guf7kIN7aUBsjn/8ZSnEjX2Cfe32nDRfk8dL49CX/SsqqUMDEKPE0WTwcR1alYZS5Ma5J5zE9MWC"
"OH7AcHw9e3QqZxGfQNiO/g3wzT0rPWPKVqsumMH0gUmbh2xkgmTU3jDX/1RY1iuQI2flu1RTMOzh"
"WqXe02ykolWgCHOt6qXq2INSLdSEpSTKqdgqiWRLoO49r8Lbr2ZGfWmPMUxSyBsKz7gnnBQd6yGJ"
"Z105ZPfUxf1/inPJm02euWG95VZaTsx2osSe8bYZsLm8AWwAWqaBM7cDbYO5/PE7J4GgtYfJnJFF"
"n6F2gSqSQW3CX8ZuG49IePGSJ5yjpzKsjanO+mtSzpiwt7dRZzPGdSex9Ljgjo7sqEypS/2B1yBw"
"ULMyIZuAZGDusqF0ArNMLbYiD9TtBkC4KAf2M6FMHcayG+MimMC/K4nDkoxsJS/MyF0jy2XOR58g"
"9YBVv1F7wW5CWojKtWhNz+PiHxL1ItUmmKXljdEN/K8in/0J8SwlQEEQN4485MmW2SsCIIYQvqDp"
"cV+xqFSDYwGkjjuPC0qOKDJJZY5RvTFaiKX/SbxjtIN5nKEA5PWgh5Gs+UE8AiABUZOOYGDpjZm8"
"g7HzwWcOrYSUOL6AAi2O8p6V/Ivj4ukkicPlwxqBeQk5tms=")
)

(dcl-form-show "pltt-test" "pltt-test")
)

(defun C:PT () (PALETTE-TEST) )


domenicomaria

While doing some testing, I was pleased and surprised to discover that
if I set "allow resizing" to True,
the palette behaves exactly as I wanted, without any errors or strangeness.

In practice, there should be a very simple error to correct.
That is, invert the "allow resizing" values...

True have to mean False, and False have to mean True...

Owen, what do you think?

It seems to be easy !

ciao

owenwengerd

I think it is working as intended. I think you're mixing up the palette control with the dock that contains it. Consider my explanation in note 2. The Allow Resizing property controls the behavior of the palette control when the containing dock resizes. It does not control the dock.
Owen Wengerd (Outside The Box) / ManuSoft