Dim cs As CSBuilder
cs.Initialize.Color(Colors.LightGray).Append("Hello World!").PopAll
Dim mbas As JavaObject=Msgbox2Async(cs,cs,"o","c","n",Null, True)
Dim cd As ColorDrawable
cd.Initialize(xui.Color_Blue,0)
mbas.RunMethodjo("getWindow",Null).RunMethod("setBackgroundDrawable",Array(cd))
Wait For (mbas) Msgbox_Result (Result As Int)
Log(Result)
Dim cs As CSBuilder
cs.Initialize.Color(Colors.LightGray).Append("Hello World!").PopAll
Dim mbas As JavaObject=Msgbox2Async(cs,cs,"o","c","n",Null, True)
Dim cd As ColorDrawable
cd.Initialize(xui.Color_Blue,0)
mbas.RunMethodjo("getWindow",Null).RunMethod("setBackgroundDrawable",Array(cd))
Wait For (mbas) Msgbox_Result (Result As Int)
Log(Result)
Dim cs As CSBuilder
cs.Initialize.Color(Colors.LightGray).Append("Hello World!").PopAll
Dim mbas As JavaObject=Msgbox2Async(cs,cs,"o","n","c",Null, True)
Log(mbas.RunMethod("getWindow",Null))
Dim cd As ColorDrawable
cd.Initialize(xui.Color_Blue,0)
mbas.RunMethodjo("getWindow",Null).RunMethod("setBackgroundDrawable",Array(cd))
Wait For (mbas) Msgbox_Result (Result As Int)
Log(Result)
wow that was quick - thank you
i will try and revert
in the meantime - can i translate an integer color code to a color ?
i mean i have the color code stored as integer - can i use it or convert it?
in windows / visual studio it is easy...
Dim cs As CSBuilder
cs.Initialize.Color(Colors.LightGray).Append("Hello World!").PopAll
Dim mbas As JavaObject=Msgbox2Async(cs,cs,"o","c","n",Null, True)
Log(mbas.RunMethod("getWindow",Null))
Dim cd As ColorDrawable
cd.Initialize(xui.Color_Blue,0)
mbas.RunMethodjo("getWindow",Null).RunMethod("setBackgroundDrawable",Array(cd))
Wait For (mbas) Msgbox_Result (Result As Int)
Log(Result)
Hi, how can I change the buttons in Msgbox2Async? I use Erel's example https://www.b4x.com/android/forum/threads/theme-colors.87716/ to change the colors and added android:colorAccent, but did not manage to change the color of the buttons in the message box...
Hi, how can I change the buttons in Msgbox2Async? I use Erel's example https://www.b4x.com/android/forum/threads/theme-colors.87716/ to change the colors and added android:colorAccent, but did not manage to change the color of the buttons in the message box...