Hi everybody,
I just wanted to create a simple Messagebox in C++ (similar to the MessageBox.xml)…
First, I created everything, and added every child to its parent after initialization. But unfortunately, I got a Problem with styles… (Could not see the Ok-Text in my OK button)… The only style explicitely set was the “DialogWindow” @ the Window object, everything else was set to SetStyleAuto()
My code was like this:
NO text was visible (the buttonTitle element)… This way around,everything is fine.
This way around, the text was visible… obviously, calling AddChild too early was “the Problem” (Parent did not know its intended style at that time). Maybe this should be pointed out somewhere for newbies like me … Or maybe I am still doing s.th. wrong… ???