lbl.Font = Starter.XUI.CreateFont(...)
Thanks again Erel!
As a newbie in b4x I've been reading and watching so much now and I thought, I had read (or heard) that global variables should be declared in Starter Process_Globals and that these (only these) are available everywhere without adding the module-name ('starter')
But it seems, I remember that wrong!
Maybe I am confused, because types are dealt in another way:
Types, declared in Starter Process_Globals are visible without the starter-module-name:
Sub Process_Globals
Type Mypkt(x As Float,y As Float,isError As Boolean)
Public xui As XUI
Public isItVisibleEverywhere As String
End Sub
is in a sub in Main available as
Sub drawGrindEdge(pan As B4XView, alpha As Float, onebevel As Boolean)
Dim canv As B4XCanvas
Dim pkt (5) As Mypkt
Dim pHelp As Mypkt
And
Sub drawGrindEdge(pan As B4XView, alpha As Float, onebevel As Boolean)
Dim canv As B4XCanvas
Dim pkt (5) As Mypkt
Dim pHelp As Starter.Mypkt 'is wrong
is wrong
Got it now. Thank you.