[Gambas-bugtracker] Bug #2510: window placement not working

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Apr 13 19:50:25 CEST 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2510&from=L21haW4-

Comment #10 by steve G:

I found something that can be reproduced on this again. The following is more accurate.

if you use the me.top and me.left in the main window it works perfectly. however this is the case it is used in below.

Public Sub btnLogin_Click()

  Dim F As New FLogin
  If btnLogin.text = "Login" Then
    f.ShowModal
    If PHPOS.cUserID <> "" Then
      btnSales.Enabled = True
      btnLogin.Text = "LogOut"
      SetUserLevel()
    Else
      ResetButtons()
    Endif
  Else
    btnLogin.Text = "Login"
    PHPOS.cUserID = ""
    PHPOS.cUserLevel = 0
    ResetButtons
    
  Endif
End

now when you execute the following in the new form, it will not work.

Public Sub Form_Open()

  Me.Top = 15
  Me.Left = 525
  
End

It seems it is only affecting the child windows which are the most important. I hope this helps to find the error.




More information about the Bugtracker mailing list