Hi,
I'm using the Table Class to draw simple tables and it has Turquoise and White rows as default. How can I pass 3 variables to set the RGB of the row based upon a user's preference? I'm using the AHPreferenceActivity to allow the user to select a colour and then use the HandleSettings to set the RGB values of the colour. If I dim ColR, ColG, ColB as Int in Process Globals in the Main module, how to I pass them to the Table Class for that the code below works?
if I dim the three variables in Class_Globals in the Table Class then I just get a black row as the variable values are effectively 0 as the actual value from the main module is not passed.
Any suggestions? Thanks
I'm using the Table Class to draw simple tables and it has Turquoise and White rows as default. How can I pass 3 variables to set the RGB of the row based upon a user's preference? I'm using the AHPreferenceActivity to allow the user to select a colour and then use the HandleSettings to set the RGB values of the colour. If I dim ColR, ColG, ColB as Int in Process Globals in the Main module, how to I pass them to the Table Class for that the code below works?
B4X:
Tablecd2.Initialize(Colors.RGB(ColR,ColG,ColB), 0)
'where Tablecd2 is the row colour used in the Table Class
Any suggestions? Thanks