Questions tagged [textctrl]

A widget in the wxWidgets framework for displaying and editing text.

TextCtrl is a widget in the wxWidgets framework for displaying and editing text.

Related Tags

62 questions
0
votes
0 answers

python When press TAB then mouse cursor can move to next textctrl -wxpython

I use wxpython to do that when press TAB then can move cursor from textctrl_1 to textctrl_2 , how to do this?enter image description here
0
votes
1 answer

WXPython, can't make word wrap work for TextCtrl with very long word

I'm trying to create a full screen window in which statictextctrl with quite long label are layed out in a table, with vertical scrollbar when there are a lot of them. What I need to do is wrap the label accordingly to the width that is available to…
Benco
  • 55
  • 1
  • 9
0
votes
1 answer

How to insert a character to a text control in wxwidgets from the code itself?

I have this textctrl FTextCtrl = new wxTextCtrl(parent, wxID_ANY, _("Text"), wxPoint(20, 20), wxDefaultSize, wxTE_CENTRE | wxTE_PROCESS_ENTER, wxDefaultValidator, _T("ID_TC")); For this control based on the programming logic, I want to insert a…
Himanshu Poddar
  • 7,112
  • 10
  • 47
  • 93
0
votes
1 answer

Enable/disable text entry in IntCtrl on RadioButton click in wxPython

I have a simple gui that has two radio buttons and an IntCtrl for text entry. Initially, I have the top radio button selected and the IntCtrl disabled (unfortunately, I can't figure out how to set it to blank or "grayed out"): Relevant code…
asdf
  • 109
  • 7
0
votes
1 answer

WxPython adding text in a specific place

In the GUI that I make (With wxpython), I need to append text in a specific place of the TextCtrl (I can change it to other textEntry if it is needed). for example I have this text: Yuval is a surfer. He likes (HERE) to go to the beach. I want to…
0
votes
2 answers

Getting word under caret - C++, wxWidgets

I am writing a text editor using the wxWidgets framework. I need to get the word under caret from the text control. Here is what I came up with. static bool IsWordBoundary(wxString& text) { return (text.Cmp(wxT(" ")) == 0 || …
Navaneeth K N
  • 15,295
  • 38
  • 126
  • 184
0
votes
0 answers

PositionToCoords for RichTextCtrl

I have been using the PositionToCoords() method to convert the text cursor position to window coordinates in the TextCtrl widget. Now, I have to move to using the RichTextCtrl widget but PositionToCoords() is not available there and I cannot find an…
user0
  • 97
  • 9
0
votes
1 answer

wxPython: TextCtrl problem

I am trying to build my first wx application I have a browse button in my panel, the user adds his file. i do some processing on the file. Now i want to show the information in a TextCtrl so that the user may modify it. Then i need to write it in a…
justrajdeep
  • 855
  • 3
  • 12
  • 29
0
votes
1 answer

How can I change the color of specific words in wxPython TextCtrl?

I have created a gui that only displays a quote. How can I change the color of all of the word 'thou' in the quote below into blue?. I have tried SetForegroundColour but it changes the entire text into blue. Here is the code: import…
Nuh Yamin
  • 343
  • 3
  • 15
0
votes
1 answer

How to retrieve text from wx python CtrlText?

I'm trying to retrieve a text value from a TextCtrl object in Python, and I can't seem to get it. The text is named "text" in the code below, I tried to retrieve the value in "Click" function. I understood well how to show the text box and button…
0
votes
1 answer

wxPython: Redirecting events on other widgets (TextCtrl)

The case study doesn't seem too hard to explain, but I guess TextCtrl in wxPython aren't often used in this way. So here it is: I have a simple window with two TextCtrls. One is an input widget (the user is supposed to enter commands there), the…
vincent-lg
  • 539
  • 7
  • 15
0
votes
1 answer

Why is the text I've set in a wxPython TextCtrl slided to the left and highlighted?

Working on a user interface and some of the text inputs are prefilled with default information. AS seen in the below screencap the text that I have preset is both highlighted and hidden behind the left edge of the TextCtrl. How can I fix…
Alex M
  • 67
  • 5
0
votes
1 answer

how to control a function of TextCtrl as dynamic in wxpython?

I'm wxpython user. I have a question about how to control TextCtrl function. What I want to build a program is that If you click a some button, TextCtrl's value is changed. My source code is followed. #!/usr/bin/python import wx class…
Hans
  • 161
  • 1
  • 11
0
votes
2 answers

How can I bind mouse event like leftdown on one word of TextCtrl. see the code start with #?

I want bind mouse event on a word of TextCtrl when I append Text to . below is the code I write. I am not very good at English. Thanks for any help. import wx class TextFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None,…
0
votes
2 answers

Dynamic suggestions for text ctrl in wxPython?

Is there any way to mimic the dynamic suggestions behavior as per the search field on Google? As in, I type something in a text ctrl, and a list of suggestions pops up below for the user to chose from? If wxPython doesn't have such a feature,…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133