Search found 1107 matches

by PB
Tue Mar 28, 2017 12:47 pm
Forum: C++ Development
Topic: Move a dialog
Replies: 8
Views: 58

Re: Move a dialog

Well, I'm out of ideas then. I assume you ran the code from my first post and/or tried to add that dialog to your code and it worked as expected.
by PB
Tue Mar 28, 2017 12:23 pm
Forum: C++ Development
Topic: Move a dialog
Replies: 8
Views: 58

Re: Move a dialog

There's too much irrelevant code for me to go through it thoroughly. Assuming MyRearrangeList is a class derived from wxRearrangeList... The only thing I find odd there is that you create a dialog whose parent is not a top level window. Try to change the parent from the rearrange list to the dialog/...
by PB
Tue Mar 28, 2017 11:18 am
Forum: C++ Development
Topic: Move a dialog
Replies: 8
Views: 58

Re: Move a dialog

As usual:
1. List your wxWidgets version and the OS where do you observe the unexpected behaviour and run the code below to see how that behaves.
2. Show your code (as SSCEE).

Also, where do you call your Move() from?
by PB
Tue Mar 28, 2017 10:17 am
Forum: C++ Development
Topic: Move a dialog
Replies: 8
Views: 58

Re: Move a dialog

Your question is not very clear, but generally: yes, wxWidgets dialogs can be moved, as demonstrated in two different ways by simple code below #include <wx/wx.h> class MyDlg : public wxDialog { public: MyDlg() : wxDialog(NULL, wxID_ANY, "Test dialog") { (new wxButton(this, wxID_ANY, "...
by PB
Mon Mar 27, 2017 7:33 am
Forum: C++ Development
Topic: wxTimePickerCtrl
Replies: 1
Views: 35

Re: wxTimePickerCtrl

Adding wxTimePickerCtrl is no different from adding other similar controls. Have you tried to debug the code to see if the control construction is: (1) called as expected, (2) does not fail somewhere? When adding a control manually to the GUI-generator-produced code, I would make sure I am adding th...
by PB
Sun Mar 26, 2017 2:52 pm
Forum: C++ Development
Topic: MDI and modal dialogs
Replies: 4
Views: 52

Re: MDI and modal dialogs

I'm afraid if you want that kind of behavior, you'll have to implement it yourself. That shouldn't be too hard though, catch the wxEVT_MOVE event and check if the dialog is outside its parents bounds. I don't think that limiting modal dialogs to the MDI window area will be ever possible, not at lea...
by PB
Fri Mar 24, 2017 6:55 am
Forum: C++ Development
Topic: How to know when user switches between two different application?
Replies: 1
Views: 46

Re: How to know when user switches between two different application?

Have you tried to Bind the wxEVT_ACTIVATE_APP event in your application: http://docs.wxwidgets.org/trunk/classwx_activate_event.html

There is also wxApp::IsActive() method.
by PB
Wed Mar 22, 2017 6:32 am
Forum: Compiler / Linking / IDE Related
Topic: Eclipse, CDT, MinGW, missing wx-config
Replies: 9
Views: 120

Re: Eclipse, CDT, MinGW, missing wx-config

Stahta01, I'm just curious: Why do you strongly suggest that, i.e., why does the order matter. I obviously assume there is no other GCC-based toolchain in the path, as people who allow adding compiler tools to the path probably have added TDM-GCC there too.
by PB
Tue Mar 21, 2017 7:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Eclipse, CDT, MinGW, missing wx-config
Replies: 9
Views: 120

Re: Eclipse, CDT, MinGW, missing wx-config

FWIW, this is a batch file I use to build 32-bit wxWidgets on 32-bit MSW with TDM-GCC-64 : PATH=%PATH%;C:\TDM-GCC-64\bin cd %WXWIN%\build\MSW REM static debug mingw32-make -f makefile.gcc CPP="gcc -E -D_M_IX86 -m32" CFLAGS="-m32" CXXFLAGS="std=gnu++11 -m32" CPPFLAGS=&qu...
by PB
Tue Mar 21, 2017 3:26 pm
Forum: Compiler / Linking / IDE Related
Topic: C++ GTEST & wxWidgets 3.1 [SOLVED]
Replies: 5
Views: 43

Re: C++ GTEST & wxWidgets 3.1 [SOLVED]

Disclaimer: I have no experience with OSX nor GTests. To me it looks like you are missing the required wxWidgets libraries. I do not know much about CMake myself, but in my simple Windows only project, I use (needs wxWidgets 3.1 and only core and base libraries) find_package(wxWidgets 3.1.0 COMPONEN...
by PB
Tue Mar 21, 2017 11:17 am
Forum: Compiler / Linking / IDE Related
Topic: Eclipse, CDT, MinGW, missing wx-config
Replies: 9
Views: 120

Re: Eclipse, CDT, MinGW, missing wx-config

Sorry for the stupid question, but: Have you followed the official documentation provided in wxwin\docs\msw\install.txt , particularly the Building Applications Using wxWidgets part? I have never used Eclipse, but I believe those instructions apply to pretty much any IDE with C++ support - I followe...
by PB
Fri Mar 17, 2017 11:19 am
Forum: C++ Development
Topic: Multilingual application
Replies: 20
Views: 332

Re: Multilingual application

You may also check the output of the i18 debug trace, which shows the looked-up paths and files, as described here https://forums.wxwidgets.org/viewtopic.php?f=1&t=42414#p171997
by PB
Wed Mar 15, 2017 9:03 am
Forum: C++ Development
Topic: Linux : WxWidgets 3.1 migration
Replies: 18
Views: 314

Re: Linux : WxWidgets 3.1 migration

Please don't crosspost on the forum and the mailing list. Please stop cross-posting. Ask your questions either here or on wx-users, but not both. sapthagiri, you must realize that crossposting is very rude and even more so when ignoring multiple requests to stop doing that, while still asking peopl...
by PB
Mon Mar 13, 2017 5:04 pm
Forum: C++ Development
Topic: wxBitmap.CreateScaled creates black block
Replies: 5
Views: 93

Re: wxBitmap.CreateScaled creates black block

I am just being curious: If the scaled wxBitmap is just a black block, how can you tell it is the original rescaled? And how is wxBitmap containing only black pixels different from a freshly created wxBitmap with the same dimensions as the "scaled" one? Edit When in doubt, check the source...
by PB
Fri Mar 10, 2017 7:19 pm
Forum: C++ Development
Topic: wxBitmap.CreateScaled creates black block
Replies: 5
Views: 93

Re: wxBitmap.CreateScaled creates black block

I am probably missing something but as the function name implies it creates a bitmap with the provided parameters. I.e., it is no different from the other Create* functions, meaning you will lose what data you had in the bitmap before, no transformation of the current bitmap is being done.

Go to advanced search