Search found 224 matches

by ollydbg23
Thu Feb 25, 2021 1:47 am
Forum: Announcements and Discoveries
Topic: Multi-lingual interface for Dynamo
Replies: 1
Views: 3375

Re: Multi-lingual interface for Dynamo

Where can we find/download the application Dynamo?

Dynamo : A network analysis tool - wxWidgets Discussion Forum

But this tool is lost?
by ollydbg23
Thu Feb 25, 2021 1:09 am
Forum: C++ Development
Topic: parameters in this constructor is different from wxEvent VS wxCommandEvent
Replies: 2
Views: 172

Re: parameters in this constructor is different from wxEvent VS wxCommandEvent

PB wrote:
Wed Feb 24, 2021 2:51 pm
My guess would be the obvious: the different order allows you to specify the event type while not forcing you to list the values of other parameters.
OK, for wxCommandEvent like event, the most important parameter is event type.
by ollydbg23
Wed Feb 24, 2021 3:03 pm
Forum: C++ Development
Topic: wxAuiManager::SavePerspective() Problem
Replies: 20
Views: 3296

Re: wxAuiManager::SavePerspective() Problem

Thanks for the information, by reading this, I found that I have a wrong usage of the wxAuiPanelInfo. I have some thing like: wxAuiPaneInfo().Name(_T("My Panel")).Caption(_("My Panel")) Now, I think I should not use _T for the Name() function, because the actual name changes in different language. ...
by ollydbg23
Wed Feb 24, 2021 2:46 pm
Forum: C++ Development
Topic: parameters in this constructor is different from wxEvent VS wxCommandEvent
Replies: 2
Views: 172

parameters in this constructor is different from wxEvent VS wxCommandEvent

Today, I try to design a custom event, so I follow the wiki: https://wiki.wxwidgets.org/Custom_Events Then I copy some code, and design my own. class MyFooEvent: public wxCommandEvent { public: MyFooEvent(wxEventType commandType = MY_NEW_TYPE, int id = 0) : wxCommandEvent(commandType, id) { } // You...
by ollydbg23
Wed Feb 24, 2021 2:29 pm
Forum: Announcements and Discoveries
Topic: Mathplot update
Replies: 1
Views: 485

Re: Mathplot update

Good work! I used this control in my work a lot. Here are some suggestions: 1, I see you have MathPlotConfig.h/cpp, would you mind to also upload the wxSmith file? Because Those files are automatically generated from the wxSmith designer. 2, There are many wxMathPlot project hosted in github, https:...
by ollydbg23
Wed Feb 24, 2021 10:13 am
Forum: C++ Development
Topic: Sharing wxDEFINE_EVENT in two cpp fiels
Replies: 5
Views: 1152

Re: Sharing wxDEFINE_EVENT in two cpp fiels

Today, I found a similar issue, I see that I should use this: wxDECLARE_EXPORTED_EVENT(__declspec(dllexport), MyEventType, MyEvent); With this code, I can export the event type from the dll, and the other client link to the dll can use it, otherwise, there will be a linker error. Hope that this can ...
by ollydbg23
Sun Feb 21, 2021 8:10 am
Forum: C++ Development
Topic: wxAuiManager::SavePerspective() Problem
Replies: 20
Views: 3296

Re: wxAuiManager::SavePerspective() Problem

Apologies for the thread necromancy, but having found this thread after investigating and Googling this exact problem, I thought it was worth detailing the ultimate solution. You must give your panels consistent, deterministic wxAuiPanelInfo::Name() properties If you do not specify a Name() when ad...
by ollydbg23
Sun Jan 31, 2021 3:02 pm
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets 微信群
Replies: 2
Views: 3638

Re: wxWidgets 微信群

之前有一个QQ群,但是这个群里面现在从来不讨论wx的相关内容,感觉也没啥意思。
所以需要讨论,还是直接论坛发帖比较靠谱。
by ollydbg23
Mon Jan 04, 2021 2:48 pm
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

this is what I implemented: Nice, though I think it would be better to match between total amount of characters(value that passed into Remove method) and amount of messages in log (counter variable). If you want to keep only N messages where N not very long and messages also not very big, I would u...
by ollydbg23
Mon Jan 04, 2021 2:38 pm
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

Why deriving from wxLogTextCtrl when you are not using any of its functionality? Would it not be better to derive directly from wxLog? Thanks, I also found this issue. First LogTextCtrlLimit was derive from wxLogTextCtrl, and I would like to access wxLogTextCtrl::m_pTextCtrl from my derived class L...
by ollydbg23
Mon Jan 04, 2021 12:21 pm
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

Thanks guys for the help, this is what I implemented: /** a log control has content limit */ class LogTextCtrlLimit : public wxLogTextCtrl { public: LogTextCtrlLimit(wxTextCtrl *pTextCtrl); protected: // implement sink function virtual void DoLogText(const wxString& msg); private: // the control we ...
by ollydbg23
Sat Jan 02, 2021 8:06 am
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

I think the answer my be platform specific. AFAIK, on MSW, regular wxTextCtrl (without wxTE_RICH2) has a limit of 64 kB of text after which it probably crashes. With wxTE_RICH2, the theoretical limit is probably the RAM available. It will never remove any lines by itself. However, I think in practi...
by ollydbg23
Sat Jan 02, 2021 8:04 am
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

Re: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

Thanks. 1. That's really depend on your OS because wxWidgets is try to use native controls mostly. It is the Windows OS. Default value for wxTectCtrl under Windows is 64KB of text. So it would be better to use wxStyledTextCtrl instead. wxStyledTextCtrl may also have a content limit? Another option -...
by ollydbg23
Sat Jan 02, 2021 7:37 am
Forum: C++ Development
Topic: wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit
Replies: 15
Views: 566

wxLogTextCtrl send too many logs to the wxTextCtrl, does wxTextCtrl have a row number limit

Hi, I have an application which use wxLogTextCtrl, and the application will runs for a long time, and there are many log messages send to the wxTextCtrl. The question is: will the wxTextCtrl get a row number limit? What happens if it reaches the limit, will the old lines get automatically removed? W...
by ollydbg23
Thu Dec 24, 2020 8:35 am
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with Win10, msys2, mingw64 and CLion
Replies: 11
Views: 1271

Re: Using wxWidgets with Win10, msys2, mingw64 and CLion

This is the way to hack the cmake, and make usage of wx library supplied by msys2 under mingw32-make.exe. Suppose you have cmake install by pacman (mingw64/mingw-w64-x86_64-cmake 3.17.3-1): $ which cmake /mingw64/bin/cmake Suppose you have wxWidgets installed by pacman (mingw64/mingw-w64-x86_64-wxWi...