Android Question BBCodeView1 as Msgbox (class)

FrankDev

Active Member
Licensed User
Longtime User
hello

I want to use the BBCodeView in a Msgbox class.
But I have a problem with the declaration.

TextEngine.Initialize (Me)

I realize, of course, that's not how it works. Had already solved it that way.

Show_msgbox2(act as Activity, title As String,text As String, positive As String, cancel As String, negative As String) As ResumableSub

...but I can't get any further than that.

regards Frank


B4X:
Public Sub Show_msgbox2(title As String,text As String, positive As String, cancel As String, negative As String) As ResumableSub
        
    Dim cd As CustomLayoutDialog
    cd.ShowAsync(title1, positive, cancel ,negative, Null, True)
    cd.SetSize(100%x, 100%y)
    Wait For Dialog_Ready (DialogPanel As Panel)
    Dim BBCodeView1 As BBCodeView
    Dim TextEngine As BCTextEngine
    DialogPanel.LoadLayout("dialog_layout_1")
    TextEngine.Initialize (Me)   '<---------------- Problem
    BBCodeView1.Text = text
    Wait For (cd) Dialog_Result (Result As Int)
    Return Result
        
End Sub
 

FrankDev

Active Member
Licensed User
Longtime User
@Erel

I will use B4XDialog. :)

My app consists of about 20 activities. Therefore I wanted to use it in 1 class. Is this the wrong way ?
 
Upvote 0

FrankDev

Active Member
Licensed User
Longtime User
@Erel

I'm sorry for checking back on you,
but I still don't know how I'm gonna solve this in a class right now. ?

TextEngine.Initialize (Me)
 
Upvote 0
Top