Hi,
I developped a B4A app where I do the following.
I converted the app to B4J, with few changes (thank you) but I can't find the right syntax for this specific item.
This is working of course
I tried to declare
But it seems to be a syntax error.
I even don't know how to declare the sub argument to pass the color
The JFX Library is loaded of course.
Any idea?
What Am I missing?
Thanks.
I developped a B4A app where I do the following.
B4X:
Sub Globals
...
Private const CouleurGris As Int = Colors.ARGB(255, 90, 106, 112)
Private const CouleurOrange As Int = Colors.ARGB(255, 193, 134, 38)
Private const CouleurRouge As Int = Colors.ARGB(255, 150, 21, 38)
...
End Sub
...
Sub SetActivityProperties (Titre As String, Couleur As Int)
Activity.Color = Couleur
Activity.Title = Titre
End Sub
...
SetActivityProperties ("Titre de la forme", CouleurGris)
...
I converted the app to B4J, with few changes (thank you) but I can't find the right syntax for this specific item.
This is working of course
B4X:
frm.Title = "Titre de la forme"
frm.backcolor = fx.Colors.ARGB(255, 90, 106, 112)
I tried to declare
B4X:
Private CouleurGris As JFX.scene.paint.color = fx.Colors.ARGB(255, 90, 106, 112)
But it seems to be a syntax error.
I even don't know how to declare the sub argument to pass the color
The JFX Library is loaded of course.
Any idea?
What Am I missing?
Thanks.