B4i Library [Class] B4i-CustomViews

Discussion in 'iOS Libraries' started by Filippo, Jan 2, 2015.

  1. Filippo

    Filippo Expert Licensed User

    Hi,

    Here are 4 customviews that I like to share with you.
    1) CheckBox
    2) ComboBox
    3) RadioButton
    4) ToggleButton

    Screenshot.JPG
     

    Attached Files:

    angel_, janderkan, luke2012 and 5 others like this.
  2. fishwolf

    fishwolf Active Member Licensed User

    Great, Thanks !!!

    with ipad 2 in Landscape mode (orizontal) the combobox selection windows is broken (item is show, but che point of check is lost)
     
  3. Filippo

    Filippo Expert Licensed User

    Hi fishwolf ,

    is the error in my example or in your app?
     
  4. fishwolf

    fishwolf Active Member Licensed User

    In example
     

    Attached Files:

  5. Filippo

    Filippo Expert Licensed User

    Yes, I have the same error on my iphone, the ipad but is OK.
     
  6. Filippo

    Filippo Expert Licensed User

    I can not find the problem, maybe someone can knows where better look for the error? :(
     
  7. Shay

    Shay Well-Known Member Licensed User

    Does anyone used X number of checkbox inside CustomListView? (I am looking to save time building it)
     
  8. Mwinsor

    Mwinsor Member Licensed User

    Can you set up radio buttons without a default button turned on? I tried rb.Checked = false but the last button created is always on.
     
  9. Filippo

    Filippo Expert Licensed User

    Can you upload an example?
     
  10. kozbot

    kozbot Member Licensed User

    Can you change the colors of the text for the checkboxes? I have a dark background, so I want white text. Thanks.
     
  11. Filippo

    Filippo Expert Licensed User

    That you can change yourself.
    Simply add this line in the class.
    Code:
    lblText.TextColor=Colors.White
     
  12. kozbot

    kozbot Member Licensed User

    That doesn't work... This is my code, see what you think:

    Code:
    Ckbox2.Initialize(Me, Panel3, "Ckbox")
    Ckbox2.Text = 
    Colors.White
    Ckbox2.Text = 
    "Select 'Codes'"
    I've got the colors.white in there, but it doesn't seem to work.
    Thanks.
     
  13. Filippo

    Filippo Expert Licensed User

    In this case, but should be so:
    Code:
    Ckbox2.TextColor=Colors.White
    and not the following:
    Code:
    Ckbox2.Text = Colors.White
     
  14. kozbot

    kozbot Member Licensed User

    Yeah, it doesn't like that either. It gives me the red line underneath and says "unknown member - TextColor"

    Sorry.
     
  15. Filippo

    Filippo Expert Licensed User

    Please include this code in the class "clsCheckbox.bas".
    Code:
    #Region TextFont
    Public Sub getText As String
        
    Return lblText.Text
    End Sub

    Public Sub setText(text As String)
        lblText.text = text
    End Sub

    Public Sub setTextColor(Color As Int)
        lblText.TextColor = Color
    End Sub
    #End Region
     
  16. gudino jose luis

    gudino jose luis Active Member Licensed User

  17. kozbot

    kozbot Member Licensed User

    Thank you!
     
  18. aeric

    aeric Active Member Licensed User

    Hi Filippo, may I know how to get the checked radio button's value or index?
     
  19. Carlos marin

    Carlos marin Active Member Licensed User

    Hi, is it possible to record the radio button and checkbox loaded in a customlistview?
     
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