B4J Question Debug being grayed

positrom2

Active Member
Licensed User
Longtime User
Run your app and it will be enabled.
"Debug" menu will not be enabled when the app runs.

#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 400
#End Region

Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private Button1 As Button
Private Canvas1 As Canvas
Private Pane1 As Pane
'Dim Red As javafx.scene.paint.Paint
End Sub

Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
MainForm.RootPane.LoadLayout("main") 'Load the layout file.
MainForm.Show
Canvas1.DrawRect(0,0,Canvas1.Width,Canvas1.Height,fx.Colors.black,False,1)

End Sub
Sub linn
Canvas1.DrawLine(0,0,100,200,fx.Colors.red,2)
End Sub
Sub Canvas1_MouseClicked (EventData As MouseEvent)
linn
End Sub
Sub Button1_MouseClicked (EventData As MouseEvent)

End Sub
 
Last edited:
Upvote 0

positrom2

Active Member
Licensed User
Longtime User
Thank you giga.
Up to version 2.8 there was no separate "Debug" menu in the top line.
Having the grayed "Debug" in the new version is somewhat confusing.
In the old version that "Debug" menu popped up nicely after having chosen "Debug" and running (you see how hard it is to define what is being meant).
Now, on a somewhat dull screen. the difference between gray and black is not that obvious.
After having learned this peculiarity it is ok.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…