Search found 32 matches

by ET3D
Thu May 08, 2014 7:22 am
Forum: Platform Related Issues
Topic: SetCursor(wxNullCursor) on Windows calls destroyed window
Replies: 2
Views: 1275

Re: SetCursor(wxNullCursor) on Windows calls destroyed windo

Thanks for the reply. I'll file a bug. The more interesting question is, why you (have to) call it there. I don't have to call it, but to not call it would require an inner class to have more knowledge of the system than it needs to have. Actually, the really interesting question is why a destroyed ...
by ET3D
Wed May 07, 2014 3:01 pm
Forum: Platform Related Issues
Topic: SetCursor(wxNullCursor) on Windows calls destroyed window
Replies: 2
Views: 1275

SetCursor(wxNullCursor) on Windows calls destroyed window

tldr: On the Mac 'SetCursor(wxNullCursor)' simply calls wxBaseWindow::SetCursor. On Windows it sends an event. I have code where a destructor of a class ends up calling 'SetCursor(wxNullCursor)' in some inner window (a toolbar in it Deactivate function). On the Mac this works well, but on Windows wh...
by ET3D
Wed Feb 05, 2014 9:11 am
Forum: C++ Development
Topic: How do I use wxLocale without changing window direction?
Replies: 1
Views: 513

Re: How do I use wxLocale without changing window direction?

What I ended up doing is: const wxLanguageInfo * locale = wxLocale::GetLanguageInfo(wxLocale::GetSystemLanguage()); wxLanguageInfo localeL2R = *locale; localeL2R.Language = wxLANGUAGE_USER_DEFINED; localeL2R.LayoutDirection = wxLayout_LeftToRight; wxLocale::AddLanguage(localeL2R); m_locale.Init(wxLA...
by ET3D
Wed Feb 05, 2014 8:25 am
Forum: C++ Development
Topic: How do I use wxLocale without changing window direction?
Replies: 1
Views: 513

How do I use wxLocale without changing window direction?

I'm trying to use wxLocale, just with the defaults, so the system's locale is used. I need that mainly for number formatting. The problem is, if the program runs on a Hebrew locale the window controls are switched right to left and the menu appears on the right. I don't want this to happen, I just w...
by ET3D
Tue Jan 28, 2014 2:06 pm
Forum: C++ Development
Topic: wxComboBox::Create calls SetValue which fires an event
Replies: 0
Views: 691

wxComboBox::Create calls SetValue which fires an event

When creating a new combo box, a text change event is fired, which in my application caused a chain of events which looked at that combo box variable (not yet set because it's still in the constructor), and therefore caused a crash. This is a result of calling SetValue inside wxComboBox::Create. Sho...
by ET3D
Tue Aug 06, 2013 11:38 am
Forum: C++ Development
Topic: Error writing to log on Windows 8
Replies: 4
Views: 1585

Re: Error writing to log on Windows 8

Here's the top of the stack trace, hopefully this is enough. Regarding the AUI issue, I'm not going to try to research it more at this time. Maybe later. Application.exe!wxStringToNumHashMap_wxImplementation_HashTable::GetNode(const wxString & key) Line 760 + 0x32 bytes C++ Application.exe!wxStringT...
by ET3D
Mon Aug 05, 2013 2:13 pm
Forum: C++ Development
Topic: Error writing to log on Windows 8
Replies: 4
Views: 1585

Error writing to log on Windows 8

There's a problem with SetFocus which apparently happened in my program but I never noticed it until I ran it under Windows 8. The problem is that when the error happens in Windows 8 I get a crash at wxLogRecordInfo::GetNumValue when calling m_data->numValues.find(key). It's hard to debug further be...
by ET3D
Sun Feb 24, 2013 9:32 am
Forum: Compiler / Linking / IDE Related
Topic: operator delete link error when using HeapAgent
Replies: 0
Views: 678

operator delete link error when using HeapAgent

I'm trying to use HeapAgent (memory debug tool) with a program using wxWidgets (2.9.3). I'm compiling the debug configuration in Visual Studio 2010 and getting the error: wxbase29ud.lib(init.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" ([email protected]@Z) already...
by ET3D
Wed Nov 21, 2012 2:25 pm
Forum: C++ Development
Topic: Using utility classes without creating a wx app?
Replies: 3
Views: 1007

Re: Using utility classes without creating a wx app?

It's worth noting that creating a wxInitializer object on the stack inside the 'main' function will call wxInitialize() when it's constructed and wxUninitialize() when leaving the scope.

(Just found this out and figured it's worth putting here for future reference.)
by ET3D
Sun Nov 04, 2012 2:09 pm
Forum: C++ Development
Topic: wxSplashScreen text
Replies: 3
Views: 1549

Re: wxSplashScreen text

Having struggled with this issue, I found out that using "wxPaintDC pdc(GetSplashWindow());" (instead of passing 'this') in OnPaint works well.
by ET3D
Wed Oct 10, 2012 1:25 pm
Forum: C++ Development
Topic: Using utility classes without creating a wx app?
Replies: 3
Views: 1007

Re: Using utility classes without creating a wx app?

Thanks! I'm currently struggling with a link error on an undefined wxRect2DInt::operator=. I guess I'll open another question about it.

Thanks again and for all previous answers. You're very helpful.
by ET3D
Sun Oct 07, 2012 1:19 pm
Forum: C++ Development
Topic: Using utility classes without creating a wx app?
Replies: 3
Views: 1007

Using utility classes without creating a wx app?

I have a working application which using wxWidgets. Now I want to add a small part of it which has to do with file access (zip files in particular) to another application which isn't wx based. Is it possible to do this without converting the other application into a wx application? I don't need to u...
by ET3D
Mon Sep 03, 2012 2:53 pm
Forum: C++ Development
Topic: wxTextCtrl only editable after context switch (Windows)
Replies: 1
Views: 583

wxTextCtrl only editable after context switch (Windows)

I have a dialogue with a wxTextControl. This shows as output only. If I switch to another program and back to mine, then the text is editable.

Any idea? I'm using wxWidgets 2.9.3 on Windows 7.
by ET3D
Tue Aug 07, 2012 9:42 am
Forum: C++ Development
Topic: Can't set wxAUI floating panel size
Replies: 0
Views: 819

Can't set wxAUI floating panel size

I'm trying to change an application's interface to use AUI. One of the windows changes its content depending on context by showing and hiding sizers (which are all under a top sizer). The original window changes its size to match the currently shown sizer, but I'm not able to get this using AUI. Usi...
by ET3D
Sun Jul 22, 2012 12:37 pm
Forum: Platform Related Issues
Topic: Windows: Should wxMiniFrame move to front?
Replies: 0
Views: 683

Windows: Should wxMiniFrame move to front?

I have an application with a couple of wxMiniFrame windows. On the Mac when an app window moves to the front these windows also do. On Windows they don't. I'm using wxWidgets 2.9.3 on Windows 7. The windows are all child windows on and MDI frame, which doesn't show at all on the Mac but on Windows t...