[Gambas-user] Window size fitting
Denis Crowther
denisc at exemail.com.au
Mon Mar 15 11:43:10 CET 2021
You'll need to discover "Containers".
This article
https://kalaharix.wordpress.com/gambas/using-gambas-containers/
for the general idea and then the Expanding Forms Example in the
Software Farm helped me heaps.
Regards
Denis
On 15/3/21 8:21 pm, Dag Jarle Nerland Johansen - Gambas wrote:
>
>
> Am 15.03.21 um 09:41 schrieb Gianluigi:
>>
>>
>> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen -
>> Gambas <gambas at cd-bahia.com <mailto:gambas at cd-bahia.com>> ha scritto:
>>
>> Hi,
>> what do I do wrong:
>> I make a window bigger than the monitor size, works fine with
>> scrollbars, set AutoResize to True.
>> But it does not fit the content to the window, also when I set
>> Arrangement to Fill.
>> Twist in my brain?
>> I normally program on a PC with a bigger monitor, but then get
>> surprised
>> when I see the result on a laptop - doesn't fit.
>> Grateful for any help,
>> Dag
>>
>>
>> you have some possibilities or start with some small size and then
>> bring the window to:
>>
>> Me.Maximized = True
>>
>> Or:
>>
>> Private $iWidth As Integer = Screen.AvailableWidth
>> Private $iHeight As Integer = Screen.AvailableHeight
>>
>> Public Sub Form_Activate()
>>
>> Me.w = ($iWidth - 100)
>> Me.h = ($iHeight - 100)
>> Me.Center
>>
>> End
>>
>> or ...
>>
>> Regards
>> Gianluigi
>>
>> ----[http://gambaswiki.org/wiki/doc/netiquette ]----
> Hi again,
> sorry doesn't change anything.
> Is there any possibility to set scrollbars on the window?
> I can see only a part of the window I programmed on a monitor with
> higher resolutuion 1920x1080,
> and my laptop has only 1366x768.
> The problem is, I have a LOT of fields on that window I need to see.
> Regards,
> Dag
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
More information about the User
mailing list