Search found 10897 matches

by doublemax
Fri May 26, 2017 7:57 pm
Forum: C++ Development
Topic: running wxApp main loop by hand?
Replies: 1
Views: 11

Re: running wxApp main loop by hand?

I realize and know from experience wxWidgets GUIs cannot run in a thread that is not main. To be exact: All gui operations must happen in the same thread in that wxWidgets was initialized. I.e. you can create a secondary thread, initialize the library there and all gui operations can and will happe...
by doublemax
Fri May 26, 2017 8:41 am
Forum: C++ Development
Topic: Using std::thread to create GUI
Replies: 2
Views: 32

Re: Using std::thread to create GUI

Don't touch the GUI from secondary threads. Ever. I have a situation that my panel contains some 50 controls which is well organized in column manner with sizer. But to load the panel it is taking time like 2-3 seconds. Like i said in the other thread, creating 50 controls should not take that long....
by doublemax
Thu May 25, 2017 6:02 pm
Forum: Component Writing
Topic: Component Editor for CEDAR Logic Simulator
Replies: 14
Views: 250

Re: Component Editor for CEDAR Logic Simulator

I installed version 1.5 which doesn't have the "My library" and "User library". But this seems to be more like a Cedar usage question than a wxWidgets programming question. I understand you want to create a new element that has the combination of the three (2 x AND + 1 x OR) insi...
by doublemax
Thu May 25, 2017 5:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Cross Compile to Windows from Linux with wxWidgets
Replies: 10
Views: 86

Re: Cross Compile to Windows from Linux with wxWidgets

Just for clarification: Do you really want to "cross-compile"? Cross-compiling means that you compile under Linux, but create a Windows executable in the process.

Or you do you just want to carry your project that already works under Linux, over to a Windows machine and build it there?
by doublemax
Thu May 25, 2017 3:46 pm
Forum: Component Writing
Topic: Component Editor for CEDAR Logic Simulator
Replies: 14
Views: 250

Re: Component Editor for CEDAR Logic Simulator

You've totally lost me. I've no idea what to do with those XML files or what you expect from me.
by doublemax
Thu May 25, 2017 11:58 am
Forum: Component Writing
Topic: Component Editor for CEDAR Logic Simulator
Replies: 14
Views: 250

Re: Component Editor for CEDAR Logic Simulator

I still haven't see the software, so i don't know if this can be done by extending the present code. If you need to do this from scratch, it'll be some work and i can only give you a general idea: Create a baseclass for the different gates and then subclasses for the individual gates. The classes ne...
by doublemax
Wed May 24, 2017 8:47 am
Forum: General Development
Topic: grey out a button in wxPython [SOLVED]
Replies: 1
Views: 17

Re: grey out a button in wxPython [SOLVED]

wxWindow::Enable(false);
Then you need a timer with a 5 second timeout.
wxWindow::Enable(true); to enable it again.
by doublemax
Tue May 23, 2017 8:23 pm
Forum: General Development
Topic: hi! I'm new here! pls help
Replies: 6
Views: 91

Re: hi! I'm new here! pls help

Learning wxWidgets without knowing C++ first will be challenging. In addition to what the others said, i'd like to recommend this tutorial: http://zetcode.com/gui/wxwidgets/ Parallel to this, study the "minimal" sample, like David said. It's important to have at least a basic understanding...
by doublemax
Tue May 23, 2017 6:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems with wxCalendarCtrl and wxDateTimePickerCtrl [SOLVED]
Replies: 6
Views: 48

Re: Problems with wxCalendarCtrl and wxDateTimePickerCtrl [SOLVED]

Don't bother with trying to reduce the exe size. Even if you strip some unneeded libraries, the decrease in size will be very small. It's just not worth the effort.
by doublemax
Tue May 23, 2017 4:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems with wxCalendarCtrl and wxDateTimePickerCtrl [SOLVED]
Replies: 6
Views: 48

Re: Problems with wxCalendarCtrl and wxDateTimePickerCtrl [SOLVED]

wxCalendarCtrl and wxDateTimePickerCtrl are inside the "wxAdvanced" library, which is probably not in the list of libraries in your CB project. If you're using wxWidgets 3.0.x, the filenames for that library will be: libwxmsw30u_adv.a (release configuration) libwxmsw30ud_adv.a (debug confi...
by doublemax
Tue May 23, 2017 5:28 am
Forum: C++ Development
Topic: How can i use wxSocketBase in wxThread to listen port?
Replies: 3
Views: 72

Re: How can i use wxSocketBase in wxThread to listen port?

I can't give you any details, but i can tell you that when using threads, you have to use sockets in blocking mode and you won't use events. So in the same loop you send data and then you just sit there and wait for a response or vice versa. In principle this should be easier than event-driven trans...
by doublemax
Mon May 22, 2017 9:43 pm
Forum: wxCode
Topic: PDF Polygons with cutouts
Replies: 6
Views: 68

Re: PDF Polygons with cutouts

It's unclear which component you're using. wxPDFDocument?
What type is "dc" in the code you've shown?
by doublemax
Mon May 22, 2017 9:39 pm
Forum: C++ Development
Topic: Intercepting keyboard accelerator keys inside TextCtrl
Replies: 5
Views: 78

Re: Intercepting keyboard accelerator keys inside TextCtrl

The only workaround i found was to manage the accelerator tables manually. Unfortunately that means that you can't show the keyboard shortcuts in the menu. I do agree that disabling the menu entries should disable the shortcut and this would also be the easiest solution. Try asking about this on the...
by doublemax
Mon May 22, 2017 5:55 am
Forum: C++ Development
Topic: How to send close command to all wxFrames [SOLVED]
Replies: 5
Views: 89

Re: How to send close command to all wxFrames [SOLVED]

This is a common problem, there was another thread about this issue recently. The problem here is that
a) modal dialogs have their own event loop
b) some dialogs are just wrappers around native dialogs (e.g. wxMessageDialog, wxFileDialog ) so they can't be closed from "outside" easily
by doublemax
Sun May 21, 2017 6:13 pm
Forum: C++ Development
Topic: Intercepting keyboard accelerator keys inside TextCtrl
Replies: 5
Views: 78

Re: Intercepting keyboard accelerator keys inside TextCtrl

I don't know if it works, but i'd try this first: In the event handler for ctrl-up, check if a wxTextCtrl has focus. If yes, call event.Skip() and do nothing. Otherwise let the handler do its job. wxTextCtrl *tc = wxDynamicCast( wxWindow::FindFocus(), wxTextCtrl ); if( tc != NULL ) { event.Skip(); r...

Go to advanced search