tufanv Expert Licensed User Longtime User Aug 5, 2017 #1 Hello I am trying to apply 2 styles for a text field B4X: txtadet(i).Style="-fx-text-inner-color:" &WHITESMOKE txtadet(i).Style="-fx-alignment: CENTER" only last one stands , how can i apply multiple styles to a single view. Thanks
Hello I am trying to apply 2 styles for a text field B4X: txtadet(i).Style="-fx-text-inner-color:" &WHITESMOKE txtadet(i).Style="-fx-alignment: CENTER" only last one stands , how can i apply multiple styles to a single view. Thanks
stevel05 Expert Licensed User Longtime User Aug 5, 2017 #2 They need to be chained together in one statement or appended. B4X: txtadet(i).Style="-fx-text-inner-color:" &WHITESMOKE & ";-fx-alignment: CENTER" Although it is much simpler to use CSSUtils which will only change the specified attributes. Upvote 0
They need to be chained together in one statement or appended. B4X: txtadet(i).Style="-fx-text-inner-color:" &WHITESMOKE & ";-fx-alignment: CENTER" Although it is much simpler to use CSSUtils which will only change the specified attributes.
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2017 #3 stevel05 said: Although it is much simpler to use CSSUtils which will only change the specified attributes. Click to expand... This is the correct solution. You should use CSSUtils. Upvote 0
stevel05 said: Although it is much simpler to use CSSUtils which will only change the specified attributes. Click to expand... This is the correct solution. You should use CSSUtils.