Search found 5 matches

by Zaskar
Mon Apr 27, 2020 11:43 pm
Forum: C++ Development
Topic: Problem with custom lexer for wxStyledTextCtrl and unicode characters
Replies: 4
Views: 842

Re: Problem with custom lexer for wxStyledTextCtrl and unicode characters

Searching for another problem, I found the solution to this one: wxStyledTextCtrl::PositionAfter and wxStyledTextCtrl::PositionBefore take code page into account. It's not exactly what I was looking for, but I think it will allow me to write a much better workaround.
by Zaskar
Mon Apr 20, 2020 8:18 pm
Forum: C++ Development
Topic: Problem with custom lexer for wxStyledTextCtrl and unicode characters
Replies: 4
Views: 842

Re: Problem with custom lexer for wxStyledTextCtrl and unicode characters

The problem is matching the positions. If I have a line with two characters, one is one byte length, the other two bytes. Then the regular string would give a length of 2, and the raw one a size of 3. What I need to know if its 1+2 or 2+1, because the position for the second character would be Posti...
by Zaskar
Mon Apr 20, 2020 2:11 pm
Forum: C++ Development
Topic: Problem with custom lexer for wxStyledTextCtrl and unicode characters
Replies: 4
Views: 842

Problem with custom lexer for wxStyledTextCtrl and unicode characters

I wrote a custom lexer for a wxStyledTextCtrl derived class using the wxSTC_LEX_CONTAINER/EVT_STC_STYLENEEDED method. For setting the styles, the algorithm has to analyze the string that wxStyledTextCtrl::GetLine returns, and use wxStyledTextCtrl::StartStyling and wxStyledTextCtrl::SetStyling. The p...
by Zaskar
Wed Feb 10, 2010 1:23 pm
Forum: Platform Related Issues
Topic: Wrong sizes in wxTaskBarIcon
Replies: 0
Views: 444

Wrong sizes in wxTaskBarIcon

Hi. I've noticed that wxTaskBarIcon shows the icon in almost random sizes. Some times it starts ok, but when other icon shows up in the taskbar (from other application) it resizes to something narrower, or some times it is smaller since the first time it is shown. I really can't find a pattern or a ...
by Zaskar
Thu Jul 03, 2008 2:49 pm
Forum: Platform Related Issues
Topic: Problem with clipboard and some characters in gtk
Replies: 1
Views: 573

Problem with clipboard and some characters in gtk

Hi. I've realised that you can't copy some characters (like ñ,à,è,ù,ì,...) with wxTheClipboard if you're on Linux (gtk-2). I've tested it in Slackware (12.0), and Ubuntu (7.xx and 8.xx). The text is not copied, or sometimes you when you paste it you see something like "ma/Uffffffff" instea...