Is it possible to change the color of the background of the B4XTable? I've tried all possible properties but no change as as shown in the attached screenshot!
As well as, I would like to change the lblFromTo.Textcolor and lblNumber.TextColor that they are Default, to white. The screenshot shows the labels with white, because I've changed them myself into the library but I want to do it with the original b4xlib.
Thank you in advance!
B4XTable1.ArrowsDisabledColor = xui.Color_Gray
B4XTable1.ArrowsEnabledColor = xui.Color_White
For Each lbl As B4XView In Array(B4XTable1.lblFromTo, B4XTable1.lblNumber)
lbl.TextColor = xui.Color_White
Next
Thank you for your rapid response!
I did what you write me and I have error:
B4X:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:477)
at b4j.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:883)
at b4j.example.b4xpagesmanager._showpage(b4xpagesmanager.java:362)
at b4j.example.b4xpagesmanager._addpage(b4xpagesmanager.java:191)
at b4j.example.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:205)
at b4j.example.b4xpagesmanager._initialize(b4xpagesmanager.java:141)
at b4j.example.main._appstart(main.java:163)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:108)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:95)
at b4j.example.main.start(main.java:38)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:134)
at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:81)
... 35 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:115)
... 36 more
Caused by: java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:49)
at b4j.example.fitems._styletable(fitems.java:584)
at b4j.example.fitems._initialize(fitems.java:92)
at b4j.example.b4xmainpage._addpages(b4xmainpage.java:91)
at b4j.example.b4xmainpage._b4xpage_created(b4xmainpage.java:177)
... 41 more
I run my code right after LoadLayout:
B4X:
tabTransactions.ArrowsDisabledColor = xui.Color_ARGB(255,90,90,110)
tabTransactions.ArrowsEnabledColor = xui.Color_White
For Each lbl As B4XView In Array(tabTransactions.lblFromTo, tabTransactions.lblNumber)
lbl.TextColor = xui.Color_White
Next
tabTransactions.mBase.Color = xui.Color_ARGB(255,26,26,32)
tabTransactions.clvData.AsView.Color = xui.Color_ARGB(255,26,26,32)
tabTransactions.clvData.sv.ScrollViewInnerPanel.Color = xui.Color_ARGB(255,26,26,32)