- variant << wxDataViewIconText(text, m_icon[row % 2]);
- }
- else if (col==2)
- {
- static const char *labels[5] =
- {
- "blue", "green", "red", "bold cyan", "default",
- };
+ case Col_IconText:
+ {
+ wxString text;
+ if ( row >= m_iconColValues.GetCount() )
+ text = "virtual icon";
+ else
+ text = m_iconColValues[row];
+
+ variant << wxDataViewIconText(text, m_icon[row % 2]);
+ }
+ break;
+
+ case Col_TextWithAttr:
+ {
+ static const char *labels[5] =
+ {
+ "blue", "green", "red", "bold cyan", "default",
+ };