[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reordering components in HPanel fails


On 7/18/24 16:08, Stéphane Aulery wrote:
Even compressed to less than 500 KB the list rejects it.

The file I downloaded is 580.6 KiB. Is this the same one you tried to send?


Let's move on to the good old method. The object of the crime is here:

http://saulery.free.fr/Gambas/

Okay, so...

On first run, the application does show what you have stated, ie. the controls are not laid out as expected.

And, this is why:
LabelAstroGrepSearch is positioned at Y=0 and has H=42.
LabelSearchPath is positioned at Y=35; it overlaps LabelAstroGrepSearch.

I moved the three ComboBoxes with their Labels down by 7 so that LabelSearchPath is positioned at Y=42.

Fixed!

Is this a bug, or is the developer expected to ensure that controls are not overlapped? I don't know.

I also discovered, quite by accident, that setting the Text property of any of the ComboBoxes also mitigated the issue. (Benoît, I've attached a 'diff' file created with 'FMain.form~' as the reference file in case it helps.)


Attached:
First run pic
Last run pic
Diff file


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----

Attachment: AstroGrepFirstPic.png
Description: PNG image

Attachment: AstroGrepLastPic.png
Description: PNG image

180a181,186
>         { ComboBoxSearchPath ComboBox
>           MoveScaled(1,8,33,4)
>         }
>         { ComboBoxFileTypes ComboBox
>           MoveScaled(1,16,33,4)
>         }
186a193,201
>         { ComboBoxSearchText ComboBox
>           MoveScaled(1,24,33,4)
>         }
>         { LabelSearchOptions Label
>           MoveScaled(1,31,33,6)
>           Font = Font["+3"]
>           Foreground = Color.Orange
>           Text = ("Search Options")
>         }
191,194d205
<         { ComboBoxSearchPath ComboBox
<           MoveScaled(1,8,33,4)
<           Text = ("test text")
<         }
199,201d209
<         { ComboBoxFileTypes ComboBox
<           MoveScaled(1,16,33,4)
<         }
205,213d212
<         }
<         { ComboBoxSearchText ComboBox
<           MoveScaled(1,24,33,4)
<         }
<         { LabelSearchOptions Label
<           MoveScaled(1,31,33,6)
<           Font = Font["+3"]
<           Foreground = Color.Orange
<           Text = ("Search Options")

Follow-Ups:
Re: Reordering components in HPanel failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsBruce Steers <bsteers4@xxxxxxxxx>
Re: Reordering components in HPanel failsBruce Steers <bsteers4@xxxxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Reordering components in HPanel failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>
Re: Reordering components in HPanel failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Reordering components in HPanel failsStéphane Aulery <lkppo@xxxxxxx>