Based on your example, I used this so I could precisely set the color:
But yes, works great. Your Noesis::Ptr handles the cleanup, yes? I don't have to delete that "*new"?
Code: Select all
Noesis::Ptr<Noesis::Gui::Brush> Fill = *new Noesis::Gui::SolidColorBrush(Noesis::Drawing::Color(0, 255, 0)); rectangle->SetFill(Fill .GetPtr());
Yes, the Ptr handles the memory automatically for you.
Cheers. Thanks again for the help...
Who is online
Users browsing this forum: Semrush [Bot] and 1 guest