B4i Library [B4X] [XUI] iSD BottoMenu (with source code)

Discussion in 'iOS Libraries' started by Star-Dust, Feb 21, 2019.

  1. Star-Dust

    Star-Dust Expert Licensed User

    (Here for Android)
    (Here for B4j)

    iSD_BottoMenu
    (Update)

    Author: Star-Dust
    Version: 1.1
    • BottoMenu
      • Events:
        • Selected (Value As Int)
      • Fields:
        • BackGroundColor As Int
        • Position As Int
          ' set o get position
      • Functions:
        • AddMenu (CharText As String, FontName As B4XFont) As String
        • Class_Globals As String
        • Clear As String
        • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
          Base type must be Object
        • Initialize (Callback As Object, EventName As String) As String
        • Invalidate As String
        • IsInitialized As Boolean
          Verifica se l'oggetto sia stato inizializzato.
        • TransitionAnimated (Duration As Int, FromBmp As B4XBitmap, ToBmp As B4XBitmap, ImageView As B4XView) As ResumableSub
    Video1.gif
    IMG_0110.PNG
    Video4.gif
     

    Attached Files:

    Last edited: Mar 5, 2019
  2. Star-Dust

    Star-Dust Expert Licensed User

    Code:
    Private Sub Application_Start (Nav As NavigationController)
        
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
        NavControl = Nav
        Page1.Initialize(
    "Page1")
        Page1.Title = 
    "Page 1"
        Page1.RootPanel.Color = 
    Colors.White
        NavControl.ShowPage(Page1)
        Page1.RootPanel.LoadLayout(
    "Layout1")
        
        BottoMenu1.AddMenu(
    Chr(0xF009),XUI.CreateFontAwesome(18))
        BottoMenu1.AddMenu(
    Chr(0xF0CA),XUI.CreateFontAwesome(18))
        BottoMenu1.AddMenu(
    Chr(0xF0EC),XUI.CreateFontAwesome(18))
        BottoMenu1.AddMenu(
    Chr(0xF096),XUI.CreateFontAwesome(18))
        BottoMenu1.AddMenu(
    Chr(0xF2C0),XUI.CreateFontAwesome(18))
    End Sub

    Sub BottoMenu1_Selected(Value As Int)
        
    Log(Value)
    End Sub
     
  3. moore_it

    moore_it Active Member Licensed User

    Great job !
     
    Star-Dust likes this.
  4. mcqueccu

    mcqueccu Active Member Licensed User

    You never cease to amaze..... Well done
     
  5. Star-Dust

    Star-Dust Expert Licensed User

    I improved the code and enlarged the selection sphere. I attach the code
    (Now also for B4J)

    [​IMG]
     

    Attached Files:

    moster67 likes this.
  6. Star-Dust

    Star-Dust Expert Licensed User

    Update code rel. 1.1
     
  7. Star-Dust

    Star-Dust Expert Licensed User

    Update code rel. 1.3
    Video4.gif
     
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