L Leginus Member Licensed User Longtime User Jan 18, 2008 #1 I have searched the forums but cannot seem to find an answer. Is it possible to convert the long color values from vb into rgb?? e.g. txtTestBox.BackColor = 16777215 I found a solution on google but it was using the Hex keyword and I don't think that is supported yet. thanks
I have searched the forums but cannot seem to find an answer. Is it possible to convert the long color values from vb into rgb?? e.g. txtTestBox.BackColor = 16777215 I found a solution on google but it was using the Hex keyword and I don't think that is supported yet. thanks
D dzt Active Member Licensed User Jan 18, 2008 #2 Leginus said: ...I found a solution on google but it was using the Hex keyword and I don't think that is supported yet. Click to expand... It is supported. See Bitwise library
Leginus said: ...I found a solution on google but it was using the Hex keyword and I don't think that is supported yet. Click to expand... It is supported. See Bitwise library
specci48 Well-Known Member Licensed User Longtime User Jan 18, 2008 #3 See this thread http://www.b4x.com/forum/showthread.php?t=910&highlight=color if you don't want to use a separate library. specci48
See this thread http://www.b4x.com/forum/showthread.php?t=910&highlight=color if you don't want to use a separate library. specci48
L Leginus Member Licensed User Longtime User Jan 18, 2008 #4 Thanks that is just what i was looking for. Obviously i didnt read the forum well enough :sign0104:
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2008 #5 You could use the GetRGB method.
specci48 Well-Known Member Licensed User Longtime User Jan 19, 2008 #6 Erel said: You could use the GetRGB method. Click to expand... Oh yes, haven't remembered this new feature ... :sign0013:
Erel said: You could use the GetRGB method. Click to expand... Oh yes, haven't remembered this new feature ... :sign0013:
L Leginus Member Licensed User Longtime User Jan 19, 2008 #7 Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.
Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.