Search found 31 matches
- Mon Nov 12, 2018 9:41 pm
- Forum: C++ Development
- Topic: Force user to select a value in wxGrid before editing cells
- Replies: 0
- Views: 5949
Force user to select a value in wxGrid before editing cells
Hello, I have created a wxGrid and in column 0 I have created a selection option using wxGridCellChoiceEditor. This works very nice. Now I want to implement what should happen if somebody modifies a value in the grid. For most positions this seems to be rather straight forward, they already have a v...
- Thu Feb 22, 2018 8:22 pm
- Forum: C++ Development
- Topic: WxPanel from thread
- Replies: 2
- Views: 854
Re: WxPanel from thread
Thank you, that is a completely different approach for solving the problem. In fact I don't think the GUI is all that complex, so you are right the majority of the time will be spend loading and processing the configuration files. In my mind this was directly connected to the GUI being loaded and in...
- Wed Feb 21, 2018 7:17 pm
- Forum: C++ Development
- Topic: WxPanel from thread
- Replies: 2
- Views: 854
WxPanel from thread
Hello, I have a wxPanel that takes a while to load, because the content of the panel depends on a configuration file that is parsed in the constructor. To avoid annoying users, I want to create this wxPanel in a worker thread. Once the panel is created I would like to it to be added into a wxNoteboo...
- Thu Jul 31, 2014 8:27 pm
- Forum: C++ Development
- Topic: How to create a wxWindow-pointer without a wxApp
- Replies: 4
- Views: 2162
Re: How to create a wxWindow-pointer without a wxApp
Hello, I gave it a try, but of course I ran into some problems that I don't understand. My attempts did however enable me to pinpoint the problem better. I created two classes to stand in for the app and the main window. #include "MyApp.h" #include <wx/image.h> MyApp::MyApp() { MyDialog Dl...
- Tue Jul 29, 2014 9:50 am
- Forum: C++ Development
- Topic: How to create a wxWindow-pointer without a wxApp
- Replies: 4
- Views: 2162
Re: How to create a wxWindow-pointer without a wxApp
Ok, so like a wxPanel requires a wxWindow, a wxWindow requires a wxApp and there is no way around it. Would it be possible to create a wxApp inside the already running testcase or does wxApp need to be the class the first one there (as I normally do)? In other words, if I need to create a wxApp in o...
- Mon Jul 28, 2014 9:00 pm
- Forum: C++ Development
- Topic: How to create a wxWindow-pointer without a wxApp
- Replies: 4
- Views: 2162
How to create a wxWindow-pointer without a wxApp
Hello, I am creating unit test for an application that uses static wxWidgets 3.0.0 libraries on windows. The project that contains and runs the tests is linked with the libraries, but it is a regular console application, meaning i don't have a wxApp or a wxWindow. Now one of my test requires me to c...
- Sun Dec 08, 2013 9:36 pm
- Forum: Compiler / Linking / IDE Related
- Topic: fatal error: wx/setup.h: No such file
- Replies: 10
- Views: 113486
Re: fatal error: wx/setup.h: No such file
Thanks, I feel a bit stupid but you did get me a big step further.
Kind regards, Nico
Kind regards, Nico
- Sun Dec 08, 2013 8:56 pm
- Forum: C++ Development
- Topic: Monitor wxWidgets app?
- Replies: 3
- Views: 2206
Re: Monitor wxWidgets app?
Thanks for the heads up on wxUIActionSimulator Catalin, that seems to be exactly what I was looking for. I'm not really clear on the wxLog part for obtaining the information. I see that it might work, but I have no idea how to start there. Hopefully that will become clear after I tried it a couple o...
- Sun Dec 08, 2013 8:46 pm
- Forum: Compiler / Linking / IDE Related
- Topic: fatal error: wx/setup.h: No such file
- Replies: 10
- Views: 113486
fatal error: wx/setup.h: No such file
Hello, I am trying to build an older codeblocks plugin that depends on wxWidgets, so my problem might be related to a version difference but I hope somebody here can tell me how to fix it. The plugin includes $(#wx)\include\wx\platform.h where in my case $(#wx) refers to C:\wxWidgets-3.0.0. In plath...
- Thu Dec 05, 2013 10:37 pm
- Forum: C++ Development
- Topic: Monitor wxWidgets app?
- Replies: 3
- Views: 2206
Monitor wxWidgets app?
Hello, For testing purposes I would like to create a program that can start a completed wxWidgets app and is able to keep references to its gui components. It should then use these references to, for example, read the current text and cause fake events (e.g. simulate a mouse click on a gui component...
- Tue Apr 09, 2013 8:53 am
- Forum: C++ Development
- Topic: How to select the items in a wxListCtrl with matching text
- Replies: 4
- Views: 2348
Re: How to select the items in a wxListCtrl with matching te
Got it.
Like you suggested I also tried to do it after the ListCtrl was made visible and then it does work. This means it is a problem with the initialization rather then the code I used to select an item.
Thanks a lot for your help.
Kind regards, Nico
Like you suggested I also tried to do it after the ListCtrl was made visible and then it does work. This means it is a problem with the initialization rather then the code I used to select an item.
Thanks a lot for your help.
Kind regards, Nico
- Tue Apr 09, 2013 7:57 am
- Forum: C++ Development
- Topic: How to select the items in a wxListCtrl with matching text
- Replies: 4
- Views: 2348
Re: How to select the items in a wxListCtrl with matching te
While I probably should know I am not sure about the mode. I did not intentionally declare it as virtual and don't believe I overwriten "OnGetItemText", but neither did I specify that the report mode should be used. Could you tell me how to enforce this, so I can rule this cause out? Kind ...
- Mon Apr 08, 2013 2:53 pm
- Forum: C++ Development
- Topic: How to select the items in a wxListCtrl with matching text
- Replies: 4
- Views: 2348
How to select the items in a wxListCtrl with matching text
Hello, I have a wxListCtrl object containing a number of items all of which are displayed as a wxString. The wxListCtrl object is named "VarsListCtrl" and contains only one column (column 0). Now I would like to create a method that will set those items in the list which match a given wxSt...
- Wed Mar 20, 2013 11:16 am
- Forum: C++ Development
- Topic: Need some help with wxExecute
- Replies: 6
- Views: 3055
Re: Need some help with wxExecute
Maybe this is not the most effective way, but I got it to do what I wanted. I tried to add the arguments before asking the file system to create the appropriate command, where I should have appended them afterward. In addition I made some mistakes in converting the output of the wxFileName object an...
- Tue Mar 19, 2013 12:43 pm
- Forum: C++ Development
- Topic: Need some help with wxExecute
- Replies: 6
- Views: 3055
Re: Need some help with wxExecute
Thank you doublemax that helped a great deal. Like Dave mentioned I added the full path to the script, I would like for that to be a variable though. I am now able to execute the script, but I am still unable to pass it the required arguments. Is there anyone who knows how to do that? wxFileType *ft...