Search found 40 matches

by Serge_N
Thu Mar 03, 2022 9:41 am
Forum: C++ Development
Topic: How to move up/down wxPGProperty in wxPropertyGrid's hierarchy tree?
Replies: 2
Views: 303

Re: How to move up/down wxPGProperty in wxPropertyGrid's hierarchy tree?

I don't have time to test the code myself at the moment, but the first step would be test removing and inserting a property separately. Maybe one of them works fine and the other one is responsible for the errors. If I comment Insert() function, there is no errors, so it looks like Insert function ...
by Serge_N
Wed Mar 02, 2022 3:08 pm
Forum: C++ Development
Topic: How to move up/down wxPGProperty in wxPropertyGrid's hierarchy tree?
Replies: 2
Views: 303

How to move up/down wxPGProperty in wxPropertyGrid's hierarchy tree?

Hi all. There is wxPGProperty::GetIndexInParent() function to GET position in parent's array. It's OK. But how can I SET position in parent's array? Or how can I move up/down wxPGProperty in wxPropertyGrid's tree-hierarchy? To emulate this behavior I use wxPropertyGrid::RemoveProperty()/Insert() pai...
by Serge_N
Tue Mar 01, 2022 12:39 pm
Forum: wxWidgets Development (Russian)
Topic: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty
Replies: 6
Views: 5703

Re: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty

Dobrogo vremeni sutok, Moget poprobovat cherez CallAfter() vstavljat. I esche - proverte kak budet rabotat v 3.1.5/ git master... Moget vse uge pofikseno. Spasibo. Спасибо, попробовал 3.1.5 из git master результат тот же, что и 3.1.5 не из git. CallAfter() ещё не пробовал, как попробую напишу, но с...
by Serge_N
Tue Feb 22, 2022 9:59 am
Forum: wxWidgets Development (Russian)
Topic: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty
Replies: 6
Views: 5703

Re: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty

В общем, погонял немного этот пример. Как по мне, там действительно какой-то баг, связанный с тем, что не чистится выделение перед удалением. А если добавить пропертю повторно, то там старые флаги остаются. Попробуй сделать фабричный метод для пропертей и добавлять новый инстанс, вместо старого, а ...
by Serge_N
Mon Feb 21, 2022 1:48 pm
Forum: wxWidgets Development (Russian)
Topic: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty
Replies: 6
Views: 5703

Re: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty

В документации написано что удаления не происходит фактически до следующего idle евента. Мне кажется что есть смысл wxYield() вызвать перед вставкой, чтобы все события отработали. Или добавление вынести куда-то в событие и его через AddPendingEvent() тригернуть (зависит от логики приложения). Спаси...
by Serge_N
Fri Feb 18, 2022 1:02 pm
Forum: wxWidgets Development (Russian)
Topic: wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty
Replies: 6
Views: 5703

wxPropertyGrid ругня после RemoveProperty - Insert wxPGProperty

Что-то не могу понять в чём дело. Нужно поднять вверх или опустить вниз wxPGProperty в wxPropertyGrid. На wx3.0.4 Удаляю и сразу вставляю wxPGProperty в обработчике кнопки всё нормально опускается-поднимается вверх-низ, но когда кликаю на wxPGProperty получаю матюки: ../src/propgrid/propgrid.cpp(414...
by Serge_N
Mon Nov 08, 2021 1:38 pm
Forum: C++ Development
Topic: wxGridBagSizer doesn't stretch not first item
Replies: 6
Views: 2250

Re: wxGridBagSizer doesn't stretch not first item

ONEEYEMAN wrote: Mon Nov 08, 2021 1:23 pm Hi,
You don't need a grid bag sizer for that. A simple box sizer will do.

Thank you.
I have to place many wxMediaCtrl in 4 x 4 matrix, and any items should be grab next 2 neighbour cells.
So I'm not sure is it really box sizer suit for it.
by Serge_N
Mon Nov 08, 2021 1:32 pm
Forum: C++ Development
Topic: wxGridBagSizer doesn't stretch not first item
Replies: 6
Views: 2250

Re: wxGridBagSizer doesn't stretch not first item

doublemax@work wrote: Mon Nov 08, 2021 1:26 pm Add this line and it should work:

Code: Select all

gbSizer->SetEmptyCellSize(wxDefaultSize);
Ohh... thanks doublemax!
It works.
You are really God :)))
by Serge_N
Mon Nov 08, 2021 1:15 pm
Forum: C++ Development
Topic: wxGridBagSizer doesn't stretch not first item
Replies: 6
Views: 2250

Re: wxGridBagSizer doesn't stretch not first item

ONEEYEMAN wrote: Mon Nov 08, 2021 1:08 pm Hi,
Is there a reason you are using grid bag sizer and not any other ones?

Thank you.
Yes, I wanna span any items in wxGridBagSizer.
Actually I'd like to maximize any Panel on double click, i.e. hide all Panels except that clicked on and then expand it.
by Serge_N
Mon Nov 08, 2021 11:34 am
Forum: C++ Development
Topic: wxGridBagSizer doesn't stretch not first item
Replies: 6
Views: 2250

wxGridBagSizer doesn't stretch not first item

Hi all. I am trying to figure out how does wxGridBagSizer work. I have main frame with wxGridBagSizer and 4 wxPanels and 2 wxButtons. When I click button1 it hides Panels 2,3,4 and expand panel1 to all size of main frame. And when I click Button2 (after restart application) it hides Panels 1,2,3 and...
by Serge_N
Sun Sep 19, 2021 6:04 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl->FindText и русские символы
Replies: 11
Views: 16166

Re: wxStyledTextCtrl->FindText и русские символы

Для удобства добавил wxTextCtrl в котором вводим искомое слово #include <wx/app.h> #include <wx/frame.h> #include <wx/button.h> #include <wx/stc/stc.h> #define wxID_BUTTON_1 1000 class MyFrame : public wxFrame { wxButton *m_button1; wxTextCtrl *m_textCtrl; wxStyledTextCtrl *m_styledTextCtrl; wxStrin...
by Serge_N
Sun Sep 19, 2021 5:53 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 17888

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

судя по вашей логике для кирилицы это норамально, а для латиницы ненормально? с Scintilla у меня ума не хватает, и времени нет Мы уже обсуждали это https://forums.wxwidgets.org/viewtopic.php?f=33&t=47081&sid=02fbc63e01f2e64c6c233dd4925289df Спасибо Ответ написал в ветке по теме: https://for...
by Serge_N
Sun Sep 19, 2021 5:52 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl->FindText и русские символы
Replies: 11
Views: 16166

Re: wxStyledTextCtrl->FindText и русские символы

Заинтересовался этим "багом" Собрал тестовое приложение и как я и предполагал, бага нет (по крайней мере на Xubuntu 20.04) #include <wx/app.h> #include <wx/frame.h> #include <wx/button.h> #include <wx/stc/stc.h> #define wxID_BUTTON_1 1000 class MyFrame : public wxFrame { wxButton *m_button...
by Serge_N
Sun Sep 19, 2021 5:05 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 17888

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

я правда Remove не использовал, но зато у меня в кирилице FindText() ищет только если регистры букв совпадают, и это уже давно. Уже несколько версий wx сменил, одно и тоже. и code::blocks, тоже с.ка ищет только если регистры совпадают в Кирилице По всей видимости это нормальное поведение. Функция и...
by Serge_N
Mon Sep 13, 2021 8:14 pm
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl::Remove - Не до конца удаляет текст на кириллице
Replies: 16
Views: 17888

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

Dobrogo vremeni sutok, A zachem nugna staticheskaja sborka v *nix? Eto g kakaja golovnaja bol - perekompilirovat vse prilogenie tolko dlja togo chtoby upgradenut kakuju-to odnu maljusenkuju biblioteku i pri etom ubit kluchu vremeni. A samoe glavnoe - chto esli licensija pomenjaetsja u etoj bibliote...