Recent

Author Topic: GTK-3, can not stretch (narrow) forms  (Read 1699 times)

linuxfan

  • Jr. Member
  • **
  • Posts: 60
GTK-3, can not stretch (narrow) forms
« on: March 10, 2024, 08:42:31 am »
I am using GTK-3 (on debian stable) in order to use webkit-gtk.

Starting from Lazarus 3.0 (now I use 3.2) a strange thing happens: when running the program, the forms can not be made smaller than the last dimensions set in code (enlarging is possible). I mean: when I resize the form while designing, no problem. When I run the program, the form cannot be made smaller. If the program sets dimension during startup, no problem - but interactively is not possible to resize any form smaller than last set dimensions in designing/running code.

I checked the Constraints property, and all fields are set to zero.
I even tried to set MinWidth/Height to other small values (40), but nothing changes.

I don't know what else to check.


jamie

  • Hero Member
  • *****
  • Posts: 7493
Re: GTK-3, can not stretch (narrow) forms
« Reply #1 on: March 10, 2024, 01:39:04 pm »
Do you have code in the OnResize event making changes?
The only true wisdom is knowing you know nothing

linuxfan

  • Jr. Member
  • **
  • Posts: 60
Re: GTK-3, can not stretch (narrow) forms
« Reply #2 on: March 10, 2024, 04:27:29 pm »
No, no onresize handler

jamie

  • Hero Member
  • *****
  • Posts: 7493
Re: GTK-3, can not stretch (narrow) forms
« Reply #3 on: March 10, 2024, 05:24:23 pm »
I think you need to prepare a minimum example that fails and present it to the bug site.
The only true wisdom is knowing you know nothing

linuxfan

  • Jr. Member
  • **
  • Posts: 60
Re: GTK-3, can not stretch (narrow) forms
« Reply #4 on: March 13, 2024, 07:22:26 am »
Thank you.

To see the problem, just create a new project; in project options set LCLWidgetType to gtk3, and run.

The form of the program opens, and it cannot be resized smaller than the designed one.

I'll see how to submit a bug but, in the meantime, it would be nice to understand something more about this.

Joanna

  • Hero Member
  • *****
  • Posts: 1414
Re: GTK-3, can not stretch (narrow) forms
« Reply #5 on: March 14, 2024, 11:09:18 am »
Is anything happening in the onchangebounds event of form?

linuxfan

  • Jr. Member
  • **
  • Posts: 60
Re: GTK-3, can not stretch (narrow) forms
« Reply #6 on: March 14, 2024, 11:48:43 am »
In my code there are no events... what should I do to trace what is happening?

 

TinyPortal © 2005-2018