Read view's color

derez

Expert
Licensed User
Longtime User
To be able to read a view's color, like it is possible to read the textcolor.
 

derez

Expert
Licensed User
Longtime User
I found a go around solution to get the color of a label defined in the designer:
B4X:
Dim cnvs As Canvas
cnvs.Initialize(Lbl)
Wlblcolor = cnvs.Bitmap.GetPixel(1,1)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…