Search found 14862 matches

by doublemax
Sat Jun 13, 2020 5:46 pm
Forum: Platform Related Issues
Topic: macOS on ARM CPU
Replies: 3
Views: 125

Re: macOS on ARM CPU

It's probably not possible yet. But when the time comes, i guess there will just be additional parameters to the configure/make command to set the processor architecture. E.g. here's how to make fat binaries with PowerPC support: https://wiki.wxwidgets.org/Development:_wxMac#Building_32.2F64_bit_Uni...
by doublemax
Sat Jun 13, 2020 5:10 pm
Forum: General Development
Topic: Error decompressing wxmsw30u_core_vc90_x64.dll
Replies: 2
Views: 109

Re: Error decompressing wxmsw30u_core_vc90_x64.dll

I assume there is a pending installation for an application that runs on boot and fails each time.

Run "autoruns" from Sysinternals and try to find the installer that runs on boot and delete it.
https://docs.microsoft.com/en-us/sysint ... s/autoruns
by doublemax
Fri Jun 12, 2020 4:17 pm
Forum: Compiler / Linking / IDE Related
Topic: \wxWidgets-3.1.3\src\xrc\xmlres.cpp(2844,5): error C2065: 'wxID_RESET': undeclared identifier
Replies: 14
Views: 450

Re: \wxWidgets-3.1.3\src\xrc\xmlres.cpp(2844,5): error C2065: 'wxID_RESET': undeclared identifier

I just built wx313 with VS2019 community without any issues.

Which solution file did you use?
Which configuration did you build?
Did you make any changes to the project or in setup.h?
by doublemax
Fri Jun 12, 2020 1:36 pm
Forum: C++ Development
Topic: The program clears my clipboard on shutdown!
Replies: 5
Views: 180

Re: The program clears my clipboard on shutdown!

in the window constructor, but that doesn't solve the problem... You need to call it before you exit the application. E.g. in wxApp::OnExit or the main frame dtor. I tested this in the "stc" sample. Originally the clipboard was not persistent. After adding "wxTheClipboard->Flush();" to "App::OnExit...
by doublemax
Fri Jun 12, 2020 6:19 am
Forum: Platform Related Issues
Topic: fromDPI function under macOS
Replies: 1
Views: 91

Re: fromDPI function under macOS

AFAIK OSX handles HiDPI totally different than Windows. On retina displays the app only "sees" logical screen coordinates that are smaller than the physical ones. Check what you get as screen size.
wxSystemSettings::GetMetric(wxSYS_SCREEN_X)
or
wxDisplay(0).GetGeometry().GetSize()
by doublemax
Thu Jun 11, 2020 8:10 pm
Forum: Database Related
Topic: Crach inserting same objects in wxSqlite3
Replies: 5
Views: 434

Re: Crach inserting same objects in wxSqlite3

If an entry with that id already exists, you need to either DELETE it first, or use UPDATE instead of INSERT.
by doublemax
Thu Jun 11, 2020 7:17 pm
Forum: C++ Development
Topic: Programatically closing a messagebox
Replies: 3
Views: 135

Re: Programatically closing a messagebox

There should be another thread about this topic (but i couldn't find it), where i made several attempts myself. As the message box is a native control under Windows, it doesn't seem to be possible.
by doublemax
Thu Jun 11, 2020 5:41 pm
Forum: C++ Development
Topic: Alpha channel ignored when drawing large bitmaps
Replies: 5
Views: 213

Re: Alpha channel ignored when drawing large bitmaps

It worked for me after changing: auto bmp = wxBitmap(size.GetWidth(), size.GetHeight(), -1); to auto bmp = wxBitmap(size.GetWidth(), size.GetHeight(), 32); I have no idea whatsoever why this is dependent on the bitmap size. BTW: I don't know if you actually want scrollbars or not. If yes, add someth...
by doublemax
Thu Jun 11, 2020 4:49 pm
Forum: Database Related
Topic: Crach inserting same objects in wxSqlite3
Replies: 5
Views: 434

Re: Crach inserting same objects in wxSqlite3

The "crash" is most likely an exception thrown by wxSQLite3. Wrap the code in try/catch and print the exception message. It should tell you what's wrong. (if you don't know how to do that, search the wxSQLite3 sample for "catch (wxSQLite3Exception& e)")
by doublemax
Wed Jun 10, 2020 8:45 pm
Forum: C++ Development
Topic: Converting raw 16 bit unsigned little-endian image into a 24bit bmp
Replies: 2
Views: 135

Re: Converting raw 16 bit unsigned little-endian image into a 24bit bmp

Here's some code that converts a 16bit, one channel, grey raw image without header to a wxImage and saves it as 8bit grey BMP. Maybe this helps: ::wxInitAllImageHandlers(); const wxString source_file = "f:\\Lenna_512x512.raw"; const wxString destination_file = "f:\\Lenna_512x512.bmp"; const int sour...
by doublemax
Mon Jun 08, 2020 9:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Error building wxWidgets 3.0.x
Replies: 5
Views: 201

Re: Error building wxWidgets 3.0.x

Do you have to use the old 3.0.x versions? In the latest version from GIT, the respective code has a comment that mentions this very error message: void wxAMMediaEvtHandler::OnActiveX(wxActiveXEvent& event) { // cast to unsigned long to fix narrowing error with case 0xfffffd9f // when using clang sw...
by doublemax
Mon Jun 08, 2020 6:24 pm
Forum: C++ Development
Topic: Conversion from single byte char (0x0b and others) to Unicode
Replies: 5
Views: 212

Re: Conversion from single byte char (0x0b and others) to Unicode

That does not work for me (MSW, master), charbuffer.length() returns 0 and 0 is displayed with wxLogMessagte()? How is that possible?
Oops, sorry. I had an error in my experimental code, i was actually using a wrong string as source for the conversion. You're right, it doesn't work.
by doublemax
Mon Jun 08, 2020 5:55 pm
Forum: Platform Related Issues
Topic: gtk3 black wxFrame problem
Replies: 13
Views: 314

Re: gtk3 black wxFrame problem

I don't know if it matters, but:

a) If you set wxBG_STYLE_PAINT, you don't need OnEraseBackground

b) You should not create a wxPaintDC inside a EVT_ERASE_BACKGROUND event handler (use wxEraseEvent::GetDC() )

Check if commenting out the SetBackgroundStyle() call makes any difference
by doublemax
Mon Jun 08, 2020 5:20 pm
Forum: C++ Development
Topic: Static Text clumping up
Replies: 4
Views: 206

Re: Static Text clumping up

SetSizerAndFit(masterSizer); Compiler: Which panel is supposed to be using this function? Code: I dunno, man. This one... (chooses the wrong one). For completeness sake: Compilers don't guess ;) The code will call this->SetSizerAndFit(masterSizer), with "this" being your main wxFrame in this case.