[Gambas-user] Size of Window cannot be decreased when opened with ShowModal()

Benoît Minisini benoit.minisini at gambas-basic.org
Sun Jan 28 23:21:51 CET 2024


Le 28/01/2024 à 22:24, Claus Dietrich a écrit :
> Am 28.01.24 um 20:11 schrieb Bruce Steers:
>> But Gambas is NOT Microsoft visual basic clone.
>>
>> vb is vb.  it works how it works.
>> gambas is gambas.  it works how it works.
>>
>> I don't hink it's right to say the vb way correct and gambs in not 
>> justified in how it works?
>>
>> If you want your gambas application to behave exactly the same as 
>> microsoft basic then you should code it to do so.
>>
>> And like i explained you can set the minimum size for your modal 
>> window in the IDE or when creating it then grow it when it opens. then 
>> it CAN shrink.
>>
>> Respects
>> BruceS
> 
> Nobody said that the VB-way is the right way. I just provided an 
> information how it is done in Visual Basic and asked whether the modal 
> mode of windows in Gambas is "normal". The suggested workaround was 
> registered - thanks for that.
> 
> I tried to find examples under Linux where the size of a modal window 
> can be decreased, but I only found one so far in Thunderbird. The others 
> could only be increased. So could this be something which has nothing to 
> do with Gambas and is depending on the graphical framework or windows 
> manager?
> 
> Regards
> 
> Claus
> 

How windows work in Gambas is explained in the wiki here:

https://gambaswiki.org/wiki/doc/window-management

The page must be updated for wayland, but the information is roughly 
still right.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list