Francesco Montorsi
2006-11-22 21:05:28 UTC
Hi,
I'm trying to use (without great success :() wxStyledTextCtrl: I need to
show to the user (as read-only text) some XML code (and I managed to get here),
and then tell the control to highlight the keywords I want (the XML I need to
display is full of custom keywords parsed by my code).
I have problems telling the wxStyledTextCtrl to colour my keywords with wanted
colours:
StyleSetForeground(1, wxColour (_T("DARK GREY")));
StyleSetForeground(2, wxColour (_T("GREEN")));
StyleSetForeground(3, wxColour (_T("BLUE")));
SetKeyWords(1, g_keywords);
SetKeyWords(2, g_subkeywords);
SetKeyWords(3, g_properties);
only displays the 3rd set of keywords in BLUE. All others are ignored...
Any hint?
Thanks,
Francesco
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
I'm trying to use (without great success :() wxStyledTextCtrl: I need to
show to the user (as read-only text) some XML code (and I managed to get here),
and then tell the control to highlight the keywords I want (the XML I need to
display is full of custom keywords parsed by my code).
I have problems telling the wxStyledTextCtrl to colour my keywords with wanted
colours:
StyleSetForeground(1, wxColour (_T("DARK GREY")));
StyleSetForeground(2, wxColour (_T("GREEN")));
StyleSetForeground(3, wxColour (_T("BLUE")));
SetKeyWords(1, g_keywords);
SetKeyWords(2, g_subkeywords);
SetKeyWords(3, g_properties);
only displays the 3rd set of keywords in BLUE. All others are ignored...
Any hint?
Thanks,
Francesco
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org