Remove more wxT() macros from samples

Also use wxString instead of wxChar* strings.

Closes https://github.com/wxWidgets/wxWidgets/pull/950
This commit is contained in:
Blake Eryx
2018-09-28 21:45:15 -04:00
committed by Vadim Zeitlin
parent 480047ee9a
commit b70ed2d8c8
67 changed files with 1926 additions and 1932 deletions

View File

@@ -651,7 +651,7 @@ void MyFrame::OnPrimaryColourSelect(wxRibbonGalleryEvent& evt)
{
wxString name;
wxColour colour = GetGalleryColour(evt.GetGallery(), evt.GetGalleryItem(), &name);
AddText(wxT("Colour \"") + name + wxT("\" selected as primary."));
AddText("Colour \"" + name + "\" selected as primary.");
wxColour secondary, tertiary;
m_ribbon->GetArtProvider()->GetColourScheme(NULL, &secondary, &tertiary);
m_ribbon->GetArtProvider()->SetColourScheme(colour, secondary, tertiary);
@@ -663,7 +663,7 @@ void MyFrame::OnSecondaryColourSelect(wxRibbonGalleryEvent& evt)
{
wxString name;
wxColour colour = GetGalleryColour(evt.GetGallery(), evt.GetGalleryItem(), &name);
AddText(wxT("Colour \"") + name + wxT("\" selected as secondary."));
AddText("Colour \"" + name + "\" selected as secondary.");
wxColour primary, tertiary;
m_ribbon->GetArtProvider()->GetColourScheme(&primary, NULL, &tertiary);
m_ribbon->GetArtProvider()->SetColourScheme(primary, colour, tertiary);