Questions tagged [wxtextctrl]

wxTextCtrl is a text control in wxWidgets that allows text to be displayed and edited

wxTextCtrl is a text control in that allows text to be displayed and edited

105 questions
0
votes
0 answers

wxTE_MULTILINE flag breaks wxTextCtrl font scaling

I'm building an app using wxWidgets. I have a wxTextCtrl created like so: Expression = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxTE_READONLY | wxNO_BORDER | wxTE_RIGHT ); Expression->SetForegroundColour(wxColour(55,…
0
votes
1 answer

wxTextCtrl resizing issue

I'm creating a wxWidgets C++ calculator application. I have a series of wxTextCtrl's for the main expression text and other stuff. They are, of course, positioned using sizers so that they grow larger or smaller as I resize the window. However, if I…
iKebab897
  • 73
  • 2
  • 7
0
votes
1 answer

Hide caret in wxTextCtrl

I'm creating a C++ wxWidgets calculator application. I have a wxTextCtrl that displays the current calculation. It is set to read-only because I'm using wxKeyEvent's to write in it. The problem is, that although it is set to read-only, the caret is…
iKebab897
  • 73
  • 2
  • 7
0
votes
2 answers

How to add label / text to wxStaticBitmap?

I am trying to add label to wxStaticBitmap, but it is not appearing in the panel. Here is my code. bitmap_file_name = _U("numbertwo.png"); wxBitmap Featurebitmap((bitmap_path + bitmap_file_name), wxBITMAP_TYPE_PNG); wxStaticBitmap *pFeature = new…
badai shaibaz
  • 47
  • 1
  • 7
0
votes
1 answer

How to create rounded wxBitmap buttons?

CustomBitmap *bitmapCtrl1 = new CustomBitmap(mainPanel, bitmap1, id+1, rollover_bitmap1, NULL, wxDefaultPosition, wxSize(125, 125)); CustomBitmap class is derived from wxControl. And this is my OnPaint function. void…
badai shaibaz
  • 47
  • 1
  • 7
0
votes
2 answers

How to add wxTextCtrl and wxButton in the same cell of the wxGrid?

I have created a wxGrid, I have 3 rows and 2 columns. I want to add wxTextCtrl and wxButton in the same cell. pGrid->SetCellValue(3,0,"Label"); wxBoxSizer *hSizer = new wxBoxSizer(wxHORIZONTAL); wxTextCtrl *txt = new wxTextCtrl(this, ID,…
badai shaibaz
  • 47
  • 1
  • 7
0
votes
1 answer

Unable to load html video tag in wxHtmlWindow?

I am trying to set html page in wxHtmlWindow. It is loading all the basic tags except html video tag. Note: My HTML file with the same video tag is working fine (Video is playing). html = new wxHtmlWindow(this); html -> SetRelatedFrame(this,…
0
votes
0 answers

Unable to play videos in wxWidgets sample Media player?

I am using wxWidgets samples code for media player. Here first we need to select the file from the wxFileDialog and on clicking play button it will play the video. But I don't want to select the file from the wxFileDialog, I am passing the video…
0
votes
0 answers

How to replace background image and wxBoxSizer in the same frame?

In my mainwindow, I am setting the background Image and added few buttons using the wxBoxSizer in CreateWidgets. Now on clicking one of the buttons, it should replace the background Image and hide the old wxBoxSizer and create a new one. After…
0
votes
1 answer

Unable to Edit wxWidgets files

I want to override "DismissAndNotify" in "popupwin.h", but it is still calling the in-built function. class WXDLLIMPEXP_CORE wxPopupTransientWindowBase : public wxPopupWindow { protected: void DismissAndNotify() { Dismiss(); …
0
votes
1 answer

How to add button in wxRichToolTip, wxWidgets?

I have created a tooltip using wxRichToolTip, but I am unable to figure how to customize it. Like I want to add button in the tooltip. Here is my code. wxRichToolTip tip("Caps Lock is on", "You might have made an error in your password\n" …
badai shaibaz
  • 47
  • 1
  • 7
0
votes
0 answers

Changing focus on wx.panel

Im writing an app which contains rich text panel with scoll. Im doing some manipulations on the text and sometimes after certain action I need to write the text all over again on the screen, but I want the focus to be where it was before the action…
0
votes
1 answer

How to stop wxPython dialogs closing with Cmd+C

I'm working on a multi-platform app where users might open a modal dialog to enter text. However, on macos, instead of copying text, Command+C closes the modal. This only happens with .ShowModal(), not .Show(). Doesn't seem to matter what has focus,…
bonzairob
  • 81
  • 1
  • 4
  • 10
0
votes
2 answers

Why does wx.TextCtrl.SetStyle mishandle emojis?

I'm developing an application using wxPython 4.0.4 in Python 3.7.3, and I've run into a problem when trying to color UTF-8 text in a wx.TextCtrl. Basically, it seems that certain characters are counted incorrectly within wxPython despite them being…
KatzJP
  • 1
  • 1
0
votes
2 answers

Manually trigger an ENTER key press event on wxTextCtrl in wxWidgets for C++?

I have this text control: FTextCtrl = new wxTextCtrl(parent, wxID_ANY, _("Text"), wxPoint(20, 20), wxDefaultSize, wxTE_CENTRE | wxTE_PROCESS_ENTER, wxDefaultValidator, _T("ID_TC")); FTextCtrl->Connect(wxEVT_CHAR,…
Himanshu Poddar
  • 7,112
  • 10
  • 47
  • 93