Android Question Change TextColor in B4xCombo.

netsistemas

Active Member
Licensed User
Longtime User
(Solved)

I'm traying to set .
BackColor BLACK
FontColor White
Corner and BorderColor white

(Control over Panel black)

I view that B4XCombo.mbase.textocolor are not supported. How Set color?
in desing neither.

B4X:
    B4XFloatTextField1.mBase.SetColorAndBorder(Colors.Black,5 ,Colors.White,15)

    B4XComboReferencias.mBase.SetColorAndBorder(Colors.Black,5,Colors.White,15)
    B4XComboReferencias.mBase.Color = Colors.Black
    B4XComboReferencias.mBase.TextColor = Colors.White  'Error.Not supported for combo: Ok, but how do it?
---------------


..... I FEW hours more last:.....

SOLUTION!!

I review theme used.
I delete the code to setcoloranborder and do in design time.

I don't need respondse.
 
Last edited:

netsistemas

Active Member
Licensed User
Longtime User
change arrow, textocolor in COMBO, dropdown colors, and border size and color


B4X:
public Sub SetColorCombo(Combo As B4XComboBox)
   
       
    'color de la fechita. HACER ANTES DE CAMIAR EL RESTO DEL COLOR
    Dim jo As JavaObject = Combo.cmbBox.Background
    jo.RunMethod("setColorFilter", Array(Xui.Color_White , "SRC_ATOP"))
   
    'CAMBIAR EL COLOR DEL COMBO POR CÓDIGO LO ESTROPICIA TODO
'not to do this:

    'Combo.cmbBox.Color = Colors.Black


    Combo.cmbBox.TextColor = Colors.White


    Combo.cmbBox.DropdownBackgroundColor= Colors.DarkGray  
    Combo.cmbBox.DropdownTextColor = Colors.White
    Combo.mBase.SetColorAndBorder(Colors.Black , 1dip,Colors.White,1dip)

End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…