B4i Library [Class] B4i-CustomViews

Similar threads

B4A Library [B4X] [class] MJPEG decoder
B4A Class [class][B4X] Google OAuth2
B4i Library [class] CustomListView
B4i Library [class] Table
B4i Library [class] SearchView

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)
 

Filippo

Expert
Licensed User
Hi fishwolf ,

is the error in my example or in your app?
 

Filippo

Expert
Licensed User
Yes, I have the same error on my iphone, the ipad but is OK.
 

Filippo

Expert
Licensed User
I can not find the problem, maybe someone can knows where better look for the error? :(
 

Shay

Well-Known Member
Licensed User
Does anyone used X number of checkbox inside CustomListView? (I am looking to save time building it)
 

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.
 

Filippo

Expert
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.
Can you upload an example?
 

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.
 

Filippo

Expert
Licensed User
Can you change the colors of the text for the checkboxes? I have a dark background, so I want white text. Thanks.
That you can change yourself.
Simply add this line in the class.
B4X:
    lblText.TextColor=Colors.White
 

kozbot

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

B4X:
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.
 

Filippo

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

B4X:
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.
In this case, but should be so:
B4X:
Ckbox2.TextColor=Colors.White
and not the following:
B4X:
Ckbox2.Text = Colors.White
 

kozbot

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

Sorry.
 

Filippo

Expert
Licensed User
Please include this code in the class "clsCheckbox.bas".
B4X:
#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
 

aeric

Well-Known Member
Licensed User
Hi Filippo, may I know how to get the checked radio button's value or index?
 
Top