Search found 317 matches

by Kvaz1r
Sun Sep 19, 2021 6:14 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 8
Views: 188

Re: Looking for a tile layout kind of widget.

wxBitmapButton seems like a good option, but in the previous post doublemax said, it is possible run in to window handle limit, and I will be needing a lot of buttons. I am basically trying to make a app store for the operating system that I'm using. You can update bitmaps when user scroll your win...
by Kvaz1r
Sun Sep 19, 2021 4:43 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 8
Views: 188

Re: Looking for a tile layout kind of widget.

If all that you need are images and text and we are talking about reasonable amount of them - I'd start with just wxFlexGridSizer with wxBitmapButtons and wxStaticTexts inside. And by user click provide some pop-up modal dialog with additional info. But without knowing use-case it's hard to tell som...
by Kvaz1r
Wed Sep 08, 2021 7:54 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 1310

Re: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице

Потому, что согласно документации, у этого метода 4-аргумента https://docs.wxwidgets.org/3.0/classwx_styled_text_ctrl.html#aa9d3189469c4c1826cb75e2cbff84341 Не обижайте метод Find он хороший :)) Обновитесь, этот аргумент был добавлен в 3.1.1: findEnd (Optional) This parameter can optionally be used...
by Kvaz1r
Wed Sep 08, 2021 5:06 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 1310

Re: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице

Не уверен что это баг - в Юникоде (UTF8) одна буква может занимать несколько байт, а позиции могут отмерять как раз по байтам. Я думаю, что в том числе для этого придумали крайний аргумент, используйте его и таких проблем не будет: int to; int valPos = m_styledTextCtrl->FindText(0, docLength, findTe...
by Kvaz1r
Tue Sep 07, 2021 9:12 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 1310

Re: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице

Привет. Если в англоязычном разделе никто не знает, то тут тем более не подскажут.
Если предоставите минимальный воспроизводимый пример, то попробую протестировать под виндой.
by Kvaz1r
Sun Sep 05, 2021 2:42 pm
Forum: C++ Development
Topic: upgrading wxWidgets version
Replies: 7
Views: 781

Re: upgrading wxWidgets version

No, 3.0 is a stable, 3.1 - development (because not fully compatible with previous one). More info here - Backwards Compatibility
I'd recommend update to the latest release as it contains not only bugfixes but also new features.
by Kvaz1r
Tue Aug 24, 2021 7:32 am
Forum: C++ Development
Topic: Segmentation fault during changing of cell color of wxGrid
Replies: 3
Views: 727

Re: Segmentation fault during changing of cell color of wxGrid

Our threads are: 1. Main - Wait for all data and UI updates to end while performing wxsafeyield (to allow ui to update). 2. Thread A - Generate data for the row (takes less than 10 ms or up to 10 seconds) and sends OnMessage event to Thread B. 3. Thread B - Handles OnMessage event, adds row to grid...
by Kvaz1r
Fri Aug 13, 2021 7:05 pm
Forum: C++ Development
Topic: wxCommandEvent get name of Control
Replies: 6
Views: 1317

Re: wxCommandEvent get name of Control

Could you elaborate your use case?
As for me usual pointer and GetEventObject as written above should be enough.
by Kvaz1r
Fri Aug 13, 2021 7:00 pm
Forum: C++ Development
Topic: Why event table.
Replies: 7
Views: 1388

Re: Why event table.

TheGates wrote:
Fri Aug 13, 2021 6:19 pm
Okay, I get it. Actually not using wxFormBuilder for generating event functions is far easier, as I can just do it outside of the generated code.
Yeah, I do the same :P
by Kvaz1r
Fri Aug 13, 2021 4:56 pm
Forum: C++ Development
Topic: Why event table.
Replies: 7
Views: 1388

Re: Why event table.

Is it actually necessary to unbind the events previously connected with Bind? No. For more details see Dynamic Event Handling Ah, okay I get it, but wxFormBuilder uses the connect feature. and connects to a generated virtual function in the same class, and then I have to derive from that class to s...
by Kvaz1r
Thu Aug 12, 2021 8:29 pm
Forum: C++ Development
Topic: wxAuiToolbar does not resize
Replies: 7
Views: 1081

Re: wxAuiToolbar does not resize

It seems like a bug to me, so it would be better to open a ticket here - https://trac.wxwidgets.org
by Kvaz1r
Mon Aug 02, 2021 5:10 pm
Forum: C++ Development
Topic: Best way to render Large Size images
Replies: 12
Views: 1398

Re: Best way to render Large Size images

I'd recommend to filter out those of points that overlapped with others with some reasonable precise. In that case you will have much less drawing.
by Kvaz1r
Fri Jun 25, 2021 7:19 pm
Forum: C++ Development
Topic: Template Help
Replies: 2
Views: 1185

Re: Template Help

What does compiler say and do you try to find answer by yourself?
by Kvaz1r
Wed Jun 23, 2021 10:06 am
Forum: C++ Development
Topic: C++ String Converting with wx
Replies: 7
Views: 1286

Re: C++ String Converting with wx

Just combine code from previous messages:

Code: Select all

widget->SetLabel(wxString::Format("%i", i));
where widget is your wxStaticText.
by Kvaz1r
Wed Jun 23, 2021 7:21 am
Forum: C++ Development
Topic: C++ String Converting with wx
Replies: 7
Views: 1286

Re: C++ String Converting with wx

Code: Select all

m_button->SetLabel(labelText);
Btw, there is widgets sample that allow to see what one can do with different widgets.