Search found 129 matches

by Kvaz1r
Sun Oct 20, 2019 11:27 am
Forum: C++ Development
Topic: Static Text strings in wxwidgets
Replies: 7
Views: 93

Re: Static Text strings in wxwidgets

Static text can contains several lines and you it's easy to update value without re-creating control, but can you provide a bit code for better understanding your issue?
by Kvaz1r
Fri Oct 11, 2019 10:00 am
Forum: wxWidgets Development (Russian)
Topic: send message to proccess
Replies: 3
Views: 122

Re: send message to proccess

Не специалист, но звучит как обычное клиент-серверное приложение. Посмотрите IPC пример и темы, связанные с использованием сокетов.
by Kvaz1r
Wed Oct 02, 2019 9:25 pm
Forum: General Development
Topic: Plotting scatterplots
Replies: 3
Views: 204

Re: Plotting scatterplots

As for wxCharts...if chosen chart type has support of updating chart data you can update it by timer or whenever it needs. From sample.
by Kvaz1r
Thu Sep 05, 2019 5:53 pm
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 426

Re: Get wxEvtHandler from event???

Why it should been stored there? If you have event you are already in handlers. And event can have any amount(none, only one or several) of handlers, it just redundant information at all.

Btw, do you know where it's implemented this way?
by Kvaz1r
Thu Sep 05, 2019 5:31 pm
Forum: C++ Development
Topic: Problem with a percentage (%) sign in wxString
Replies: 2
Views: 72

Re: Problem with a percentage (%) sign in wxString

For escaping '%' you can double it.
Example:

Code: Select all

wxString::Format("%%%s%%", "abs")
by Kvaz1r
Mon Sep 02, 2019 5:48 pm
Forum: C++ Development
Topic: wxMoveEvent and wxButton
Replies: 2
Views: 88

Re: wxMoveEvent and wxButton

Yeah, thanks, now I see. I am going to open ticket on trac.
by Kvaz1r
Mon Sep 02, 2019 6:07 am
Forum: C++ Development
Topic: wxMoveEvent and wxButton
Replies: 2
Views: 88

wxMoveEvent and wxButton

According to the documentation wxMoveEvent is holds information about wxTopLevelWindow move change events then why it also generates the event for moving wxButton which isn't wxTopLevelWindow? MCVE: #include <wx/wx.h> #include <wx/dataview.h> class MyFrame : public wxFrame { public: MyFrame(const wx...
by Kvaz1r
Sun Aug 25, 2019 8:31 pm
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 204

Re: UTF8 characters corrupt on GUI in Windows

Are your sure that VisualStudio use utf8 encoding for file?
by Kvaz1r
Wed Aug 21, 2019 7:34 pm
Forum: C++ Development
Topic: Customize X (close) button behaviour
Replies: 1
Views: 48

Re: Customize X (close) button behaviour

Handle OnClose event.

Events in wxWidgets
by Kvaz1r
Sat Aug 17, 2019 8:29 pm
Forum: C++ Development
Topic: Generating New ID
Replies: 3
Views: 86

Re: Generating New ID

bandali99 wrote:
Sat Aug 17, 2019 6:59 pm
also, i was looking through custom examples on the wxwidgets tutorial and they made id a type int. What's the difference if its type wxWindow and type int?
It's an alias.
Used for readability.
by Kvaz1r
Sat Aug 17, 2019 8:26 pm
Forum: C++ Development
Topic: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED
Replies: 4
Views: 102

Re: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED

It would be better if you provided reproducible example. Does this code works for you? #include <wx/wx.h> class MyFrame : public wxFrame { public: MyFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) { wxBoxSizer* topSizer = new wxBoxSizer(wxVERTICAL); wxString m_choiceChoices[] = { wxT("...
by Kvaz1r
Sat Aug 17, 2019 6:52 am
Forum: C++ Development
Topic: Help to create a button Very simple.
Replies: 7
Views: 112

Re: Help to create a button Very simple.

I don't know why it happens, but usually one can use sizers for widget layouting. So you can do it this way: #include <wx/wx.h> class FrmPrincipal : public wxFrame { public: FrmPrincipal() : wxFrame(NULL, wxID_ANY, "2019") { wxBoxSizer* topSizer = new wxBoxSizer(wxVERTICAL); wxButton* MyButton = new...
by Kvaz1r
Thu Aug 15, 2019 7:06 am
Forum: C++ Development
Topic: Restore wxStyledTextCtrl Multicursor after replace
Replies: 5
Views: 168

Re: Restore wxStyledTextCtrl Multicursor after replace

How exactly it didn't work? Carets are not restored or they restored on wrong positions?
by Kvaz1r
Sun Aug 11, 2019 8:00 am
Forum: C++ Development
Topic: wxRichTextCtrl Text Not Centering
Replies: 6
Views: 292

Re: wxRichTextCtrl Text Not Centering

I've opened a new ticket - https://trac.wxwidgets.org/ticket/18464