B4A Class [B4X] [XUI] SD BottoMenu (with source code)

Discussion in 'Additional libraries, classes and official updates' started by Star-Dust, Feb 21, 2019.

  1. willbr2k

    willbr2k Member Licensed User

    Hello Star-Dust! Nice a set menu, this is exactly what I was looking for! But I have a question, How do the menu return to the first position? I put it in the bottomenu1.position, but that does not work.
     
  2. Star-Dust

    Star-Dust Expert Licensed User

    I have updated the code to version 1.1

    Now you can set the position or simply read it with BottoMenu.Position
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Tip: Create a single thread with [B4X] prefix and post the library as a b4xlib. It will be easier for you to maintain.
     
  4. Star-Dust

    Star-Dust Expert Licensed User

    I will do it, unfortunately I have yet to learn how to do it, but it is planned. :D
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    It is a matter of building a zip file with the modules and optionally adding a small text file to the zip.
     
  6. Star-Dust

    Star-Dust Expert Licensed User

    update rel 1.3 (post#1)
    Video4.gif
     
    Erel likes this.
  7. Carlos marin

    Carlos marin Active Member Licensed User

    hi how can i move it from code? try with BottoMenu1.Position = 1 but it does not work
     
  8. Carlos marin

    Carlos marin Active Member Licensed User

    I get an error when launching the app in release
    java.lang.RuntimeException: java.lang.RuntimeException: Field bottomenu1 was declared with the wrong type.
     
  9. Star-Dust

    Star-Dust Expert Licensed User

    Yes, you can.
    I need to see the code to figure out where you went wrong.

    Does the example work for you?
     
  10. Carlos marin

    Carlos marin Active Member Licensed User

    hello dear, and solve the error. Can you tell me how I can move from code?
     
  11. Star-Dust

    Star-Dust Expert Licensed User

    The code you used is correct.
    But you're probably not using the latest version.

    Then update the library.
    If you want to use the old version after the change of position use the Invalidate method
     
  12. Carlos marin

    Carlos marin Active Member Licensed User

    hi star-dust
    if you mean this file SD_BottoMenu.b4xlib, I do not know how to update it or where I can download it
     
  13. Star-Dust

    Star-Dust Expert Licensed User

    A few posts back I wrote this way
     
  14. Kope

    Kope Member Licensed User

    Hi @Star-Dust , you’re really amazing. Have used this Bottom Menu is most of my projects but had some little issues with regards to:
    1. changing the icon on each tab
    2. adding titles to each tab

    Please guide me on how to resolve these issues.

    Thanks in advance for your help.
     
  15. Star-Dust

    Star-Dust Expert Licensed User

    To change the icon I entered a new method (update to post#1)
    SetValueAt(Position As Int, CharText As String, FontName As B4XFont)

    As for having a title under the image, it's not expected because it's not a TAB View but a BottonMenu
     
    Kope and DonManfred like this.
  16. hatzisn

    hatzisn Active Member Licensed User

    Complimenti Star-Dust, you 're the man!!! Very nice job. Very handy view. I discovered a bug. When you click a menu item and click another after a fraction of the second the menu gets totally confused and the circle with the clicked item goes cuckoo (pazzo)... Try it once or two times. It must be something in the animation. Congratulations again.
     
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