Add wxDataViewTextRenderer::EnableMarkup()
Implement the new method to all the implementations (generic, GTK, OS X), show it in the sample and update the documentation.
This commit is contained in:
@@ -436,7 +436,14 @@ void MyListModel::GetValueByRow( wxVariant &variant,
|
||||
{
|
||||
static const char *labels[5] =
|
||||
{
|
||||
"blue", "green", "red", "bold cyan", "default",
|
||||
// These strings will look wrong without wxUSE_MARKUP, but
|
||||
// it's just a sample, so we don't care.
|
||||
"<span color=\"#87ceeb\">light</span> and "
|
||||
"<span color=\"#000080\">dark</span> blue",
|
||||
"<big>growing green</big>",
|
||||
"<i>emphatic red</i>",
|
||||
"<b>bold cyan</b>",
|
||||
"<small><tt>dull default</tt></small>",
|
||||
};
|
||||
|
||||
variant = labels[row % 5];
|
||||
|
||||
Reference in New Issue
Block a user