Questions tagged [wxstyledtextctrl]
33 questions
0
votes
1 answer
Easiest color Theme format for Editor/IDE
I'm writing an programmer Editor and it is working fine except I'm reluctant to invent my own theme format. I want to have format compatible with another/other editor(s)/IDE(s) that I can download and change a theme for my app with no change in my…

Stefano Mtangoo
- 6,017
- 6
- 47
- 93
0
votes
1 answer
wxStyledTextCtrl - Size of AutoComp
I was just wondering if it is possible to find the size (in pixels) of the autocompletion control shown by the wxStyledTextCtrl.
My goal is to show a help window associated with the entry when a selection happens. Therefore, I need the location and…

macroland
- 973
- 9
- 27
0
votes
0 answers
Font quality/scaling (DPI) in wxStyledTextCtrl / wxwidgets
Have wxWidgets-3.0.5.
Most of interface has correct DPI scaling, but wxStyledTextCtrl not
Even if set big size and make zoom.
Does anyone know solution?

Falseclock
- 144
- 2
- 13
0
votes
1 answer
Don't allow selection of text for deletion/replacement in wx.stc.StyledTextCtrl
I created a project in python-3 using wxpython. I would like to know if there is a function that prevents marking of text (in grey/blue square) for deletion.
For example I want to prevent marking: "bla bla this text is marked bla bla". I don't want…

Yuval Sharon
- 159
- 8
0
votes
1 answer
How to pickle or save a WxPython FontData Object
I've been coding a text editor, and it has the function to change the default font displayed in the wx.stc.SyledTextCtrl.
I would like to be able to save the font as a user preference, and I have so far been unable to save it.
The exact object…

Legorooj
- 2,646
- 2
- 15
- 35
0
votes
1 answer
Change the font in a wxPython StyledTextCtrl
I have been coding with wxPython and have run into a problem. I've created a FontDialog Function that also changes the font. The problem is that I am unable to change the font. In tkinter, you can widget.config(font=font) and the font changes…

Legorooj
- 2,646
- 2
- 15
- 35
0
votes
0 answers
How to create usable multiple cursor in StyledTextCtrl when using wxpython?
I want to add multiple cursor feature to my wxpython application. I'm using StyledTextCtrl as my text control. I already make it look like multiple cursor, see below image. However, when I type text, the first two cursor just disappeared and the…

Just a learner
- 26,690
- 50
- 155
- 234
0
votes
1 answer
Indentation and smart indent in wxStyledTextCtrl (Scintilla)
Does anyone know how to get smart indentation working with the wxStyledTextCtrl in C++?
I have been trying various variations on the following without apparent success:
_textEd->SetProperty(wxT("indentation.smartindenttype"),…

Martin Ellison
- 1,043
- 1
- 13
- 25
0
votes
2 answers
wxWidgets - wxStyledTextCtrl - Text alignment RTL
wxStyledTextCtrl is very good, but not fully documented.. any one know how to align text in Right ?
// To create one
this->STYLED_TEXT = new wxStyledTextCtrl(PANEL, wxID_ANY, wxDefaultPosition, wxSize(500, 500));
// To set it…

Saif
- 231
- 3
- 13
0
votes
1 answer
wxStyledTextCtrl non ASCII characters
I realized that in wxStyledTextCtrl if the user's comments contains non-ASCII characters, the positions reported by WordStartPosition and WordEndPosition are wrong. What is a good way of dealing with non-ASCII characters in wxStyledTextCtrl? How…

macroland
- 973
- 9
- 27
0
votes
2 answers
wxStyledTextCtrl SetSelection
In the following code:
void Script::OnLeftUp( wxMouseEvent& event )
{
int currentPos = GetCurrentPos();
int wordStartPos = WordStartPosition( currentPos, true );
int wordEndPos=WordEndPosition(wordStartPos, true);
wxString…

macroland
- 973
- 9
- 27
0
votes
1 answer
What is the easiest way to make StyledTextCtrl look like a TextCtrl?
The only additional features I need from StyledTextCtrl are the following:
Change caret width using SetCaretWidth(pixels)
Change caret colour using self.SetCaretForeground(colour)
Change entire background colour to transparent (or alpha). I don't…

Renae Lider
- 1,004
- 7
- 20
0
votes
1 answer
Python StyledTextCtrl can't make read only
Hi have a StyledTextCtrl log window in which I only want to write text to via python, and NOT be able to type on the keyboard to enter text onto in manually. When I use SetEditable(False) this locks the whole window, so python can't write to the…

speedyrazor
- 3,127
- 7
- 33
- 51
0
votes
0 answers
Stop linebreak after lexer style change when using word wrap on wxPython styledtextctrl
I'm working on an text editing app using wx.stc.StyledTextCtrl in wxPython (2.8). I have a large amount of text on one line. I have created custom lexers to highlight certain parts of the text. This works like a charm as long as I do not turn on…

user3247720
- 23
- 3
0
votes
2 answers
wxPython StyledTextCtrl line numbers not starting at 1
I know how to add line numbers to a wxPython StyledTextCtrl, thanks to the wxPython Demos.
myctrl.SetMarginType(0, wx.stc.STC_MARGIN_NUMBER)
Is there a way to make the line numbering start at something other than 1?
The motivation for this is to…

jkitchen
- 900
- 11
- 16