Search found 12 matches

by lpx
Mon Aug 21, 2017 3:59 am
Forum: C++ Development
Topic: How to call a function when pressing enter in the textctrl
Replies: 3
Views: 675

Re: How to call a function when pressing enter in the textctrl

New Pagodi wrote:Create the control with a style including wxTE_PROCESS_ENTER and then handle the wxEVT_TEXT_ENTER event.
Thanks for replying. I read the class reference and it's helpful. I solve the problem by connecting the function and the event, that is what the handling means right?
Thanks.
by lpx
Sun Aug 20, 2017 7:23 am
Forum: Compiler / Linking / IDE Related
Topic: CB wssmith: update problem between .wxs and .cpp
Replies: 2
Views: 476

CB wssmith: update problem between .wxs and .cpp

I a starter in wxwidgets so I used wxSmith to graphically assist me to build a GUI program. The preview of the Frame and everything on it is saved in a *.wxs file. I notice that editing the *.wxs file(which shows elements graphically) will also have an effect on the main file(.cpp). For instance, ad...
by lpx
Sun Aug 20, 2017 4:20 am
Forum: C++ Development
Topic: How to call a function when pressing enter in the textctrl
Replies: 3
Views: 675

How to call a function when pressing enter in the textctrl

I want to call a function when I presses enter in the textcrtl, there should be a function called "onenterpress...", but I can't find this function. Can anyone teach me how to do it?
by lpx
Sat Aug 19, 2017 7:14 am
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks: building a program with static lib
Replies: 6
Views: 1030

Re: Code::Blocks: building a program with static lib

New Pagodi wrote:Are you asking you to change which target to build? If so, you can do this by selecting a different target in the toolbar
or in the build menu.
Thanks a lot!
by lpx
Sat Aug 19, 2017 3:22 am
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks: building a program with static lib
Replies: 6
Views: 1030

Re: Code::Blocks: building a program with static lib

C::B does allow compiling all "targets" (debug, release, or whatever you have created) in one shot. Thanks for replying. I asked the question because I chose both versions in the "wizard": 1.png but I only get the debug version in the bin file. I checked settings in "properties", it looks like this...
by lpx
Sat Aug 19, 2017 3:11 am
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks: building a program with static lib
Replies: 6
Views: 1030

Re: Code::Blocks: building a program with static lib

Hi, 1. All those libraries that are displayed as "Additional libraries" are in fact additional libraries. Let me explain. There are only 2 main libraries in wxWidgets - wxBase and wxCore. wxBase is the library that contains all non-GUI stuff - string and STL-like classes. wxCore is the library that...
by lpx
Fri Aug 18, 2017 1:31 pm
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks: building a program with static lib
Replies: 6
Views: 1030

Code::Blocks: building a program with static lib

I tried to build a program with static lib, I did not choose "use wxwidgets dll" in the project wizard. 2.png at first I neglected the following step 3.png which turned out unable to compiled. selecting all in this step won compile either. I searched how to build a static link and some said instead ...
by lpx
Thu Aug 17, 2017 2:12 pm
Forum: Compiler / Linking / IDE Related
Topic: dismatch problem occur when running the widgets sample program
Replies: 1
Views: 433

Re: dismatch problem occur when running the widgets sample program

I'm so sorry that I made a mistake. I thought codeblocks uses the compiler in the PATH, but actually there's a setting in the "compiler setting". It detected MinGW first then set the default compiler the one in MinGW. later when I compiled the library, I used TDM-GCC, that why there's a mismatch. I'...
by lpx
Thu Aug 17, 2017 6:32 am
Forum: Compiler / Linking / IDE Related
Topic: dismatch problem occur when running the widgets sample program
Replies: 1
Views: 433

dismatch problem occur when running the widgets sample program

I build four widgets library with parameters "SHARED=0,1 BUILD=release, debug(UNICODE=1)". I created a new widgets program choosing "enable Unicode" and "use wxwidgets dll", the program builds without error, but when I runs, there's a fatal error: Mismatch between the program and library build versi...
by lpx
Sun Aug 13, 2017 1:39 pm
Forum: Compiler / Linking / IDE Related
Topic: mingw being unable to compile wxwidgets
Replies: 10
Views: 3492

Re: mingw being unable to compile wxwidgets

Thanks a lot, it seems that my previous compiler is not working as expected. The TDM-GCC can successfully makefile.
THANKS A LOT.

(BTW, I said I installed mingw, what i meant was i installed mingw-get only, there are no packages in the bin file)
by lpx
Sun Aug 13, 2017 1:31 pm
Forum: Compiler / Linking / IDE Related
Topic: mingw being unable to compile wxwidgets
Replies: 10
Views: 3492

Re: mingw being unable to compile wxwidgets

doublemax wrote:Please try again with TDM-GCC which is known to work:
http://tdm-gcc.tdragon.net/download

Also, make sure you only have only one GCC version in your %PATH%
It seems like my previous compiler didn't work. Using TDM-GCC solves the problem.
THANKS A LOT.
by lpx
Sun Aug 13, 2017 5:22 am
Forum: Compiler / Linking / IDE Related
Topic: mingw being unable to compile wxwidgets
Replies: 10
Views: 3492

mingw being unable to compile wxwidgets

I've recently downloaded codeblocks for GUI projects. I downloaded the newest MinGW from https://sourceforge.net/projects/mingw/files/latest/download?source=files and installed MinGW. Then I installed MinGW32-make(gcc, g++ and gdb) and downloaded wxwidgets 3.0.3 from the official site(both zip and s...