Android Question How to code addition BaNanoCSSUtils 's code in SD_MenuClose

Theera

Well-Known Member
Licensed User
Longtime User
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
    If KeyCode=KeyCodes.KEYCODE_BACK Then
        #If B4A
            Dim MC As MenuClose
            MC.Initialize(Colors.ARGB(200,150,150,150),Colors.Blue)
        #End If
        '????????   '<===Add   BaNanoCSSUtils  's Code as belows in this line
        Return True
       
    End If
    
    Return False
   

'    Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
End Sub

B4X:
'BaNanoCSSUtils Example
Private Sub btnSetWidthAnimated_Click (e As BANanoEvent)
    SHIonBaseElement1.SetWidthAnimated(2000, "300px")
End Sub

Private Sub btnSetHeightAnimated_Click (e As BANanoEvent)
    SHIonBaseElement1.SetHeightAnimated(2000, "100px")
End Sub
 

Star-Dust

Expert
Licensed User
Longtime User
I don't think it's possible to put a b4x view in a banano
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
You can't do that with Sd_Close, but you can probably create a custom messagebox with vuetify that looks like SD_Close
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
You can't do that with Sd_Close, but you can probably create a custom messagebox with vuetify that looks like SD_Close
I prefer to keep your Sd_MenuClose . I think your lib is classic.It shows the identity of B4X Apps different from Flutters app.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Is possible to use this strategy to solve my target ,or not?
 
Upvote 0
Top