[Gambas-user] Rule to set form Height

Dimitris Anogiatis dosida at gmail.com
Sat May 1 11:03:33 CEST 2021


Is this trying to accomplish a resizing effect or just resize the form
according to what the screen resolution of each machine is?

I don't exactly understand what the code does. Can you please put some
comments on so we can figure out what you're trying to do?

Thanks

On Fri, Apr 30, 2021 at 11:58 PM Safiur Rahman <isafiur at gmail.com> wrote:

> Hi Bruce
>
> Both of your method don't work. Still resize process continues for
> infinite times.
> This behavior is only with qt4/qt5. This problem is not with gtk3.
> Please check it using project I have attached.
>
>
> On 4/30/21, Safiur Rahman <isafiur at gmail.com> wrote:
> > Hi
> >
> > In a module (Module1):
> >
> > Private $DeskHeight As Integer = 1150 ''1200 ''1386 ''1100
> >
> > Public Sub SetFromSize(frm As Form)
> >
> >   Print CStr(Now()) & " : " & $DeskHeight
> >   frm.Height = $DeskHeight
> >   frm.Width = Screen.AvailableWidth
> >   frm.Left = 0
> >   frm.Top = 0
> >
> > End
> >
> > In a form:
> >
> > Public Sub Form_Resize()
> >
> >   Module1.SetFromSize(Me)
> >
> > End
> >
> > If form Height =1150 or 1200 then the procedure runs several times
> > If form Height = 1100 or 1386 then the process runs one or two times.
> >
> > Is there any rule to set form height? I am using QT5.
> >
> >
> > --
> > Regards
> > Safiur Rahman
> >
>
>
> --
> Regards
> Safiur Rahman
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210501/695da064/attachment.htm>


More information about the User mailing list