hatzisn Expert Licensed User Longtime User Jan 2, 2023 #1 How can I do this since there is no fx object or xui object? ( i.e. for UI apps it is LogColor("Something here", xui.Color_Red) )
How can I do this since there is no fx object or xui object? ( i.e. for UI apps it is LogColor("Something here", xui.Color_Red) )
Solution kimstudio Jan 2, 2023 xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red
xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red
hatzisn Expert Licensed User Longtime User Jan 2, 2023 #2 I tried with this but with no luck: B4X: Dim jocolor As JavaObject LogColor("> > > > DEVELOPMENT < < < <", jocolor.InitializeStatic("java.awt.Color").GetField("RED")) Upvote 0
I tried with this but with no luck: B4X: Dim jocolor As JavaObject LogColor("> > > > DEVELOPMENT < < < <", jocolor.InitializeStatic("java.awt.Color").GetField("RED"))
mcqueccu Well-Known Member Licensed User Longtime User Jan 2, 2023 #3 Try this B4X: logerror("This is red highlighted error") Upvote 0
hatzisn Expert Licensed User Longtime User Jan 2, 2023 #4 mcqueccu said: Try this B4X: logerror("This is red highlighted error") Click to expand... Thank you. Very much. It is kind of a solution since I can get red display of message but I cannot get green if it is production compilation. Upvote 0
mcqueccu said: Try this B4X: logerror("This is red highlighted error") Click to expand... Thank you. Very much. It is kind of a solution since I can get red display of message but I cannot get green if it is production compilation.
kimstudio Active Member Licensed User Longtime User Jan 2, 2023 #5 xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red Upvote 1 Solution
xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red
hatzisn Expert Licensed User Longtime User Jan 3, 2023 #6 kimstudio said: xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red Click to expand... Thank you very much @kimstudio. It is the solution I 've been searching for. Upvote 0
kimstudio said: xui.color is just a constant Int number, 4 bytes in ARGB order, so: B4X: LogColor("color", 0xFFFF0000) ' red Click to expand... Thank you very much @kimstudio. It is the solution I 've been searching for.