Hi all,
Maybe somebody has a solution for this.
This code is giving me a error when I start this in Debug Mode.
If I go Step by Step I don't get the error and the text is changed.
In Release mode there is no error and the Code is changing my TitledPane Title Text.
It seems that something is going to fast in Debug Mode.
Below the Sub where this is happening. Step by Step Debug and Release mode there is no problem and all is working well.
Maybe the attached file can help.
Maybe somebody has a solution for this.
This code is giving me a error when I start this in Debug Mode.
If I go Step by Step I don't get the error and the text is changed.
In Release mode there is no error and the Code is changing my TitledPane Title Text.
B4X:
Public Sub setTitledPaneText(TP As Node, Text As String )
Try
Dim jo As JavaObject = TP
jo.RunMethod("setText", Array As Object(Text))
Catch
ShowLog("Error setTitledPaneText Functions", False)
End Try
End Sub
It seems that something is going to fast in Debug Mode.
Below the Sub where this is happening. Step by Step Debug and Release mode there is no problem and all is working well.
B4X:
Private Sub SetRecreation()
Try
lstEmergencyTeam.Visible = False
lblEmergencyTeamCount.Visible = False
mnuVisitor.Visible = False
btnEditVisitors.Visible = False
EmergTitledAnchorPane.RemoveAllNodes
Dim ap As AnchorPane
ap.Initialize("")
ap.LoadLayout("frmRecreationMenu")
Dim img As Image
img.Initialize(File.DirAssets, "Abo-Img.png")
ABOImgRecreation.SetImage(img)
' ABOImgRecreation.PreserveRatio = False
img.Initialize(File.DirAssets, "Barcode-1.png")
DayImgRecreation.SetImage(img)
DayImgRecreation.PreserveRatio = False
EmergTitledAnchorPane.AddNode(ap, -5, -5, -5, -5)
' DayImgRecreation.Left = (ABOImgRecreation.Left + (ABOImgRecreation.Width /2) - (DayImgRecreation.Width ))
Functions.ShowLog(Functions.GetTitledPaneText(EmergTitledPane), False)
Functions.setTitledPaneText(EmergTitledPane, "Recreation")
' PrecenseTitledPane.Visible = False
Catch
Functions.ShowLog("Error Set Recreation", False)
End Try
Maybe the attached file can help.
Attachments
Last edited: