[Gambas-user] Window size fitting

Bruce adamnt42 at gmail.com
Tue Mar 16 06:12:35 CET 2021


On 16/3/21 11:40 am, Bruce Steers wrote:
> What i would do is make a ScrollView
> Set it to Arrange.Vertical or Arrange.Column
> then add all your objects to the scrollview
> 
> and possibly Don't set autoresize on the scrollview just the objects inside
> it
> BruceS
> 
> 
> On Mon, 15 Mar 2021 at 18:13, Dag Jarle Nerland Johansen - Gambas <
> gambas at cd-bahia.com> wrote:
> 
>>
>>
>> Am 15.03.21 um 12:14 schrieb Bruce Steers:
>>
>> No to window scrollbars , windows do not have that they must be added.
>> ScrollView can be a pain when just how AutoResize, Expand and Arrangemenet
>> work and effect objects isn't FULLY understood.
>> (I do not claim to fully understand this either and often have problems
>> making a whole window scroll)
>> It's probably a case of playing with the AutoResize/Expand/Arrangement
>> properties of the ScrollView/Window/Objects.
>>
>> Personally I think you need an alternative layout.
>> Having so many controls it's bigger than your screen isn't really ideal.
>>
>> My suggestions would be one of the following....
>> * Make all the controls smaller.
>> * Handle all your fields in a GridView or something else with a built in
>> scrollbar.
>> * make a TabPanel and split the fields into 2 pages
>>
>> BruceS
>>
>> On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas <
>> gambas at cd-bahia.com> 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> 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 ]----
>>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>> To Bruce,
>> I generate the form, and the size of it (height) depends on the amount of
>> fields in a SQL-table. Till now I have only one annoying me :-) I can
>> consider to make more columns.
>>
>> To Gianluigi,
>> I will for sure look into that.
>>
>> Thank you both,
>> regards Dag
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
> 
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

and while your at it... Can you fit 14 eggs inot an eggbox designed for 
12? :-)

(ThT'S 	about LL I CAN TYPE)]

B


More information about the User mailing list