good afternoon.
I have a problem in "form.showandwait".
I have several forms open on the desktop.
in a particular form I call on another modal form.
when I close the modal form the focus goes to another form, and not returned to the called.
how to fix ?
PS: MsgBox happens with the same
I have a problem in "form.showandwait".
I have several forms open on the desktop.
in a particular form I call on another modal form.
when I close the modal form the focus goes to another form, and not returned to the called.
how to fix ?
PS: MsgBox happens with the same
B4X:
Public Sub Initialize(Parent As Form)
frExpl.Initialize ("frExpl",-1,-1)
frExpl.RootPane.LoadLayout("Expl")
frExpl.SetFormStyle("UNDECORATED")
frExpl.Resizable= False
frExpl.SetOwner(Parent)
frExpl.Icon = fx.LoadImage(File.DirAssets, "icon.jpg")
Dim jForm As JavaObject = frExpl
Dim scene As JavaObject = jForm.GetField("scene")
Dim stylesheets As List = scene.RunMethod("getStylesheets", Null)
stylesheets.Add(File.GetUri(File.DirAssets, "cPrinc.css"))
ItemIdx.Initialize("","")
btOk.Enabled=False
img_Selected(False)
BuildDriveList
CallSubDelayed(Me, "GetPath")
End Sub
Public Sub Show(pt As String, Filter As String)
myFilter=Regex.Split (";",Filter.ToUpperCase)
stPath=pt
For i=0 To myFilter.Length-1
myFilter(i)=myFilter(i).Trim
Next
lbTitulo.Text = "Explorer (Filtro = " & Filter & ")"
frExpl.ShowAndWait
Return strReturn
End Sub
Last edited: