Android Question [SOLVED][B4X] SwiftButton.visible

Discussion in 'Android Questions' started by yfleury, Jul 6, 2019.

  1. yfleury

    yfleury Active Member Licensed User

    I have a menu with many SwiftButton.

    In Designer I can set the swiftbutton.visible=false. But in code I can't set it and in log I have this "Unknown member: visible"

    I can't set swiftbutton.enable too... unknown member....

    What I missing?
     
  2. klaus

    klaus Expert Licensed User

    Code:
    SwiftButton1.mBase.Visible = False
    SwiftButton1.mBase.Enabled = 
    False
     
    Erel likes this.
  3. yfleury

    yfleury Active Member Licensed User

    Merci Klaus
    For visible member is working well, but for enable member has no effect. Then I can use visible member for my project.
     
  4. klaus

    klaus Expert Licensed User

    I tested both, Visible and Enable, with B4J and both work.
     
  5. yfleury

    yfleury Active Member Licensed User

    I am testing on B4A
     
  6. jimmyF

    jimmyF Active Member Licensed User

    SwiftButton1.Enabled = False works on B4A
     
  7. yfleury

    yfleury Active Member Licensed User

    You are right JimmyF works on B4A
     
    jimmyF likes this.
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