Wish Wrap updated MBProgressHUD (iHUD) for multiline messages

Discussion in 'iOS Bugs & Wishlist' started by jo1234, Sep 16, 2018.

Tags:

Similar threads

B4i Library iHUD library - Toast messages and progress dialogs
B4i Question iHUD on another stack page
B4i Question Bug in iHUD?
B4i Question iHUD
B4i Library [class] ToastMessages
  1. jo1234

    jo1234 Member Licensed User

    Hi,

    Toastmessage in B4A supports multiline messages, however iHUD v1.00 only supports single line messages.

    Could you please wrap the updated version below to allow multiline messages?
    https://github.com/jdg/MBProgressHUD/issues/329

    That version also allows to select the position of the message. Nice.

    Thanks a lot,
    Johannes
     
  2. Pendrush

    Pendrush Well-Known Member Licensed User

    jo1234 likes this.
  3. JanPRO

    JanPRO Well-Known Member Licensed User

    Hi,

    you can also use the following code:

    Code:
    Private HD As HUD

    Sub ShowHud
        HD.ToastMessageShow(
    "Multi-" & CRLF & "line ..."True)
        SetHudMultiline
    End Sub

    Sub SetHudMultiline
        
    Dim no1 As NativeObject = App.KeyController
        no1 = no1.GetField(
    "view")
        
    Dim no2 As NativeObject
        
    Dim hud As NativeObject = no2.Initialize("MMBProgressHUD").RunMethod("HUDForView:"Array(no1))
        
    If hud.IsInitialized Then
            
    Dim L As Label = hud.GetField("label")
            L.Multiline = 
    True
        
    End If
    End Sub
    Jan
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice