Search found 15 matches

by rocvan
Tue Jul 19, 2022 3:45 pm
Forum: C++ Development
Topic: Application resolution different in Visual studio 2022 build
Replies: 5
Views: 431

Re: Application resolution different in Visual studio 2022 build

ONEEYEMAN wrote: Mon Jul 18, 2022 3:45 am Hi,
You can always compile it by yourself.

Thank you.
Need time to study how to build. Not familiar with the build system. Still studying.
by rocvan
Mon Jul 18, 2022 2:42 am
Forum: C++ Development
Topic: Application resolution different in Visual studio 2022 build
Replies: 5
Views: 431

Re: Application resolution different in Visual studio 2022 build

Hi, I believe you are comparing apples and oranges. Bring both builds to the same 3.2.0 version and then compare. Besides - I think the code in your MSYS build is changed as "minimal" sample does not have any buttons in the main frame. Thank you. Thanks Don't know why there is a "Abo...
by rocvan
Mon Jul 18, 2022 2:04 am
Forum: Compiler / Linking / IDE Related
Topic: Which Visual Studio solution type, beginner
Replies: 4
Views: 950

Re: Which Visual Studio solution type, beginner

Hi, I am also new in MSVC. I can only share my experience is that we need to caution on coping the samples to other directory. There are a lot of compiler Macro in the solution setting, the path on the header, resources file are both depend on the location of where is the "samples". It can...
by rocvan
Mon Jul 18, 2022 1:59 am
Forum: C++ Development
Topic: Application resolution different in Visual studio 2022 build
Replies: 5
Views: 431

Application resolution different in Visual studio 2022 build

Hi all, Recently I build the samples "minimal" in visual studio 2022, I found that the resolution is different from build the application in MSYS2 environment. This is build from MSVC 2022 minimal_msvc.png This is build from MSYS2 minimal_msys2.png Why there are two different resolutions? ...
by rocvan
Mon Jun 20, 2022 9:27 am
Forum: wxDev-C++
Topic: Where is MAIN ?
Replies: 6
Views: 8314

Re: Where is MAIN ?

Second - it is generally very good idea to close file handle(s) after you are done and not keep them open until the application is closed. Hello, thanks a lot. The existing code is redirect the stdio to file, so it open the file handle until close. The main purpose is to trace any exception in othe...
by rocvan
Wed Jun 15, 2022 9:29 am
Forum: wxDev-C++
Topic: Where is MAIN ?
Replies: 6
Views: 8314

Re: Where is MAIN ?

Please do not revive ancient threads. If you prefer to keep your main() / WinMain(), you can use one of wxEntry*() functions or wxInitializer. But I think you should have a really good reason to break the usual pattern. Many thanks. I have tried the wxEntry(), the UI resolution is a bit lower, not ...
by rocvan
Fri Jun 10, 2022 10:48 am
Forum: wxDev-C++
Topic: Where is MAIN ?
Replies: 6
Views: 8314

Re: Where is MAIN ?

You're right, OnInit() is the main entrance to your application as it starts the main event loop. The "main" function (or "WinMain" on Windows) gets implemented automatically by using the IMPLEMENT_APP() macro. This macro expands to the correct "main" form for your pla...
by rocvan
Fri Jun 10, 2022 10:34 am
Forum: C++ Development
Topic: wxDataViewCtrl how to Hide the RootItem
Replies: 18
Views: 5837

Re: wxDataViewCtrl how to Hide the RootItem

doublemax wrote: Thu Jun 02, 2022 2:32 pm "MyMusicTreeModel" needs to be modified for this.
Bravo! It works.
by rocvan
Thu Jun 02, 2022 1:28 pm
Forum: C++ Development
Topic: wxDataViewCtrl how to Hide the RootItem
Replies: 18
Views: 5837

Re: wxDataViewCtrl how to Hide the RootItem

I have tried to revise the sample code, replace the m_pop by m_root. The result is "Classical music" under "Pop music", how to make all item in parallel? I don't understand what you mean with all "all item(s) in parallel". I want to the result as follow: sample_datavie...
by rocvan
Thu Jun 02, 2022 9:28 am
Forum: C++ Development
Topic: wxDataViewCtrl how to Hide the RootItem
Replies: 18
Views: 5837

Re: wxDataViewCtrl how to Hide the RootItem

No. What i meant was that you should interpret the data as if it didn't have a root item. Hi, I am studying the dataview sample, and I changed the code to show only the data tree and list in single tab. The diagram as follow: sample_dataview_00100.png Is it possible to doing this kind of tree witho...
by rocvan
Thu Jun 02, 2022 9:11 am
Forum: Compiler / Linking / IDE Related
Topic: MSYS2: using the cmake to created a wxWidgets application
Replies: 6
Views: 1134

Re: MSYS2: using the cmake to created a wxWidgets application

With wxWidgets 3.0, you must add the advanced library, e.g. find_package(wxWidgets 3.0 COMPONENTS adv core base REQUIRED) The advanced library was merged with the core one only in 3.1.2. Thanks, the adv library is added and the sample can be compiled. (besides, I cannot receive any notification (em...
by rocvan
Mon May 23, 2022 9:30 am
Forum: Compiler / Linking / IDE Related
Topic: MSYS2: using the cmake to created a wxWidgets application
Replies: 6
Views: 1134

Re: MSYS2: using the cmake to created a wxWidgets application

Hi, May I bother you on this thread. I have studied this guide and now there is no cmake issue. The minimal sample compiled and executed in MSYS2 in windows 10 successfully. I use the wxWidgets 3.0.5 for MSYS2. (From this package: https://packages.msys2.org/package/mingw-w64-x86_64-wxWidgets?repo=mi...
by rocvan
Mon May 23, 2022 4:43 am
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with MinGW and Code::Blocks
Replies: 5
Views: 592

Re: Using wxWidgets with MinGW and Code::Blocks

In your first post, you wrote that you did install the prebuilt MSYS2 package and even provided the link to it? Yes, see my explanation below. Had you followed the guide, you would have installed the compiler toolchain (see Chapter 3.3) and had no issue like this? I also don't understand how CodeLi...
by rocvan
Fri May 20, 2022 7:32 am
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with MinGW and Code::Blocks
Replies: 5
Views: 592

Re: Using wxWidgets with MinGW and Code::Blocks

Many thanks for your reply. (How to subscribe the reply by receiving email? I haven't realized that this thread has updated). It seems you did not follow my guide but installed MSYS2 prebuilt wxWidgets instead. If you are using MSYS2 prebuilt wxWidgets, you cannot use my guide: (1) You do not have t...
by rocvan
Sat May 14, 2022 10:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with MinGW and Code::Blocks
Replies: 5
Views: 592

Using wxWidgets with MinGW and Code::Blocks

Hi, Many thanks for your guide. I have studied the guide and follow the step to build the wxWidgets in windows 10. I am using the wxWidgets for MSYS2 (https://packages.msys2.org/package/mingw-w64-x86_64-wxWidgets?repo=mingw64). My msys2 doesn't has the mingw32-make, only found the make.exe in C:\msy...