gagdet sizes are a mystery?

Linux specific forum
collectordave
Addict
Addict
Posts: 1272
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

gagdet sizes are a mystery?

Post by collectordave »

Linux mint 19.1 64bit PB5.7LTS

Useing the form designer to create a new window I put a few textgadgets etc on the form looks good.

When I run this all the gadgets are resized and look rubbish. After some investigation the gadgets are being resized to a minimum height needed to display the Font used when being displayed, not a behaviour I want. They are also not shown this way on the form designer?

Is there any way to turn this feature off? Or can the form designer have the same behaviour?

Also used Gadgetheight with return actual size which doesn't it returns the size you wanted it to be not the actual size. The actual displayed size is returned by Required size. You only see this if you set the height of the gadget less than the required size.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
mk-soft
Addict
Addict
Posts: 3191
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: gagdet sizes are a mystery?

Post by mk-soft »

The designer is implemented with his own drawing of the gadget and has nothing to do with the current OS. So you can use the designer to draw different OS. However, the minimum sizes of the different OS are not considered.

It is well known that sometimes under Linux with GTK3 the gadgets don't fit that well.

Take a look at the module ScaleGadgets. With these you can do an automatic size adjustment.
But this is still limited by Linux with the minimum sizes.

Link: viewtopic.php?f=12&t=71823

Translated with www.DeepL.com/Translator
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace
Post Reply