Search found 1248 matches
- Sat Jun 25, 2022 1:47 pm
- Forum: C++ Development
- Topic: How to properly resize a list ctrl columns
- Replies: 4
- Views: 2974
Re: How to properly resize a list ctrl columns
void TestFrame::CreateControls() { ////@begin TestFrame content construction // Generated by DialogBlocks, 25/06/2022 16:43:23 (unregistered) TestFrame* itemFrame1 = this; wxBoxSizer* itemBoxSizer1 = new wxBoxSizer(wxVERTICAL); itemFrame1->SetSizer(itemBoxSizer1); m_Panel = new wxScrolledWindow( it...
- Sat Jun 25, 2022 8:47 am
- Forum: C++ Development
- Topic: How to properly resize a list ctrl columns
- Replies: 4
- Views: 2974
Re: How to properly resize a list ctrl columns
void TestFrame::CreateControls() { ////@begin TestFrame content construction // Generated by DialogBlocks, 25/06/2022 11:36:49 (unregistered) TestFrame* itemFrame1 = this; wxBoxSizer* itemBoxSizer1 = new wxBoxSizer(wxVERTICAL); itemFrame1->SetSizer(itemBoxSizer1); m_Panel = new wxPanel( itemFrame1,...
- Sat Jun 25, 2022 8:24 am
- Forum: C++ Development
- Topic: How to properly resize a list ctrl columns
- Replies: 4
- Views: 2974
Re: How to properly resize a list ctrl columns
You probably should not use the timer for resizing. Try to use Freeze()/Thaw() calls to reduce the flicker if needed. What kind of issues are you facing? Probably it would be better to show your code here to let others understand what's going on.
- Sat Jun 11, 2022 8:50 am
- Forum: C++ Development
- Topic: Custom Control that displays an Image
- Replies: 11
- Views: 1608
Re: Custom Control that displays an Image
Well, actually, you can create a non-rectangular control but you need to use platform-specific API like SetWindowRgn() . However this may not work for all platforms and solution may be quite complex. So, in general, yes, if you don't want to have a custom background under that circular control then ...
- Fri May 20, 2022 10:37 am
- Forum: wxWidgets Development (Russian)
- Topic: std::string to wxString
- Replies: 6
- Views: 5760
Re: std::string to wxString
Может это или что-то подобное?
Можно и вручную проверять наличие BOM в начале.
Можно и вручную проверять наличие BOM в начале.
- Fri May 20, 2022 9:35 am
- Forum: wxWidgets Development (Russian)
- Topic: std::string to wxString
- Replies: 6
- Views: 5760
Re: std::string to wxString
void TestFrame::CreateControls() { ////@begin TestFrame content construction // Generated by DialogBlocks, 20/05/2022 12:04:23 (unregistered) TestFrame* itemFrame1 = this; ////@end TestFrame content construction wxIPV4address address; address.Service(3000); address.Hostname(wxT("localhost"...
- Fri May 20, 2022 7:24 am
- Forum: wxWidgets Development (Russian)
- Topic: std::string to wxString
- Replies: 6
- Views: 5760
Re: std::string to wxString
Вопрос не очень понятен, нужно в серверном коде получить читаемую строку, или в отправляющем коде сформировать командную строку для CURL в кодировке, в которую умеет сервер?
- Fri May 13, 2022 12:56 pm
- Forum: wxWidgets Development (Russian)
- Topic: представить дату на english Wed, 22 Sep 2021 15:05:03 +0300
- Replies: 7
- Views: 5431
Re: представить дату на english Wed, 22 Sep 2021 15:05:03 +0300
Как себя ведет если доставить в систему пакет с локализациями? Например locales-all.
- Thu Apr 14, 2022 9:49 am
- Forum: C++ Development
- Topic: Setting Horizontal Scroll to 0 in listCtrl
- Replies: 4
- Views: 2565
Re: Setting Horizontal Scroll to 0 in listCtrl
void TestFrame::CreateControls() { ////@begin TestFrame content construction // Generated by DialogBlocks, 14/04/2022 12:31:52 (unregistered) TestFrame* itemFrame1 = this; wxBoxSizer* itemBoxSizer1 = new wxBoxSizer(wxVERTICAL); itemFrame1->SetSizer(itemBoxSizer1); m_ListCtrl = new wxListCtrl( itemF...
- Thu Apr 14, 2022 9:05 am
- Forum: C++ Development
- Topic: Setting Horizontal Scroll to 0 in listCtrl
- Replies: 4
- Views: 2565
- Sat Apr 02, 2022 3:07 pm
- Forum: wxWidgets Development (Russian)
- Topic: which wFrame style to be like modal wxDialog?
- Replies: 11
- Views: 7972
Re: which wFrame style to be like modal wxDialog?
В общем, если без диалога, то только костыльные костыли. Я вон вижу что раньше у wxFrame был метод MakeModal(), но его задепрекейтили. Можно посмотреть более старый код библиотеки и реализацию этого метода. Если не получится аналогично сделать (например там приватные методы какие-то используются, не...
- Thu Mar 31, 2022 10:01 am
- Forum: wxWidgets Development (Russian)
- Topic: which wFrame style to be like modal wxDialog?
- Replies: 11
- Views: 7972
Re: which wFrame style to be like modal wxDialog?
BTW, а в чем причина необходимости именно wxFrame?
- Wed Mar 30, 2022 1:00 pm
- Forum: wxWidgets Development (Russian)
- Topic: which wFrame style to be like modal wxDialog?
- Replies: 11
- Views: 7972
Re: which wFrame style to be like modal wxDialog?
Чегойто? Сделать обработчик фокуса у формы или что-то экзотическое с таймером или оверрайдом на процессинг оконных сообщений, брать GetFocus(), от него GetTopLevelParent(), если там другая форма, то возвращать фокус и делать окну Raise().
Мне кажется что план рабочий.
Мне кажется что план рабочий.
- Wed Mar 30, 2022 11:36 am
- Forum: wxWidgets Development (Russian)
- Topic: which wFrame style to be like modal wxDialog?
- Replies: 11
- Views: 7972
Re: which wFrame style to be like modal wxDialog?
Можно отлавливать изменение фокуса и возвращать фокус на нужную форму, будет приблизительно как модальный диалог.
- Wed Mar 30, 2022 10:36 am
- Forum: C++ Development
- Topic: Question about sizing a wxPanel inside of a wxPanel
- Replies: 4
- Views: 704
Re: Question about sizing a wxPanel inside of a wxPanel
The code is autogenerated by DialogBlocks. It may contain redundant calls, but yes, thanks for pointing.