Simple MessageBox C++ class
Posted: 10 Nov 2020, 14:06
Good Morning!
I'm starting with NoesisGUI...
I am trying to create a MessageBox in C++.
But I'm not getting ...
I tried to look for an example in the forum and in the examples of the SDK C++ but I also didn't find it.
I'm trying to use the idea of viewtopic.php?f=3&t=862&p=4694#p4692 as a basis
However, I was unable to create the class in c++ that would make the connection between Title / Message / OkText / OkCommand (I don't need the cancel button).
The only way I managed to make this work was to create an x: Name on the elements and set the value like this:
Could you please give me an example of what this class would look like in c++?
Thanks.
Leandro Daldegam
I'm starting with NoesisGUI...
I am trying to create a MessageBox in C++.
But I'm not getting ...
I tried to look for an example in the forum and in the examples of the SDK C++ but I also didn't find it.
I'm trying to use the idea of viewtopic.php?f=3&t=862&p=4694#p4692 as a basis
However, I was unable to create the class in c++ that would make the connection between Title / Message / OkText / OkCommand (I don't need the cancel button).
The only way I managed to make this work was to create an x: Name on the elements and set the value like this:
Code: Select all
auto* title_component = static_cast<Noesis::TextBlock*>(FindName("Title"));
title_component->SetText("TEXT FROM C++");Thanks.
Leandro Daldegam