Search found 12 matches

by BenKissBox
Sun Jul 12, 2020 6:11 am
Forum: Platform Related Issues
Topic: wxDC drawing in modal dialog (works on Mac, not PC)
Replies: 5
Views: 185

Re: wxDC drawing in modal dialog (works on Mac, not PC)

Hi Doublemax, thank you for your help (if one day you come in France, make me a sign, you *really* deserve a beer 8) I realized just after closing the computer that everything was related to a Connect/Bind issue... :lol: I dig a little in the source code, and apparently, there are minor differences ...
by BenKissBox
Sat Jul 11, 2020 9:29 pm
Forum: Platform Related Issues
Topic: wxDC drawing in modal dialog (works on Mac, not PC)
Replies: 5
Views: 185

Re: wxDC drawing in modal dialog (works on Mac, not PC)

Arrrrggg !!! :( Just made a test right now : I removed the wxStaticBox, and my bargraphs appeared. So apparently, the wxStatic is the child which "hides" the drawings. I will look again tomorrow in the wxStaticBox documentation, as I did not find how to "draw" on it (that's why I thought it should n...
by BenKissBox
Sat Jul 11, 2020 9:24 pm
Forum: Platform Related Issues
Topic: wxDC drawing in modal dialog (works on Mac, not PC)
Replies: 5
Views: 185

Re: wxDC drawing in modal dialog (works on Mac, not PC)

How do you connect the paint event andler and does the dialog really have no children? (If it has you need to draw onto the panel or whatever is the "visible" element). Hi Max, the Paint event is connected like this BEGIN_EVENT_TABLE(CDMXMonitorDlg, wxDialog) EVT_BUTTON (ID_PREV_DMX_PAGE, CDMXMonit...
by BenKissBox
Sat Jul 11, 2020 8:02 pm
Forum: Platform Related Issues
Topic: wxDC drawing in modal dialog (works on Mac, not PC)
Replies: 5
Views: 185

wxDC drawing in modal dialog (works on Mac, not PC)

Hello all, I am facing a very strange problem with my wxWidgets application. The application uses a modal dialog to display monitoring data, and a timer is used to refresh the view. The code works perfectly on Mac OS, but nothing is draw on Windows. In the constructor, I make the following call wxCl...
by BenKissBox
Wed Jul 08, 2020 5:11 am
Forum: Platform Related Issues
Topic: ~wxRESIZE_BORDER not working on Mac OS (frame still sizable)
Replies: 3
Views: 143

Re: ~wxRESIZE_BORDER not working on Mac OS (frame still sizable)

frame->SetWindowStyle (wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)); When do you call this? Not all window styles can be changed after the window has already been fully created (this can also be platform dependent). Try passing these flags to the constructor. Hi Max, yep, you got it...
by BenKissBox
Tue Jul 07, 2020 8:31 pm
Forum: Platform Related Issues
Topic: macOS on ARM CPU
Replies: 3
Views: 264

Re: macOS on ARM CPU

Things may not be so easy, from what I can see for now. First thing : for now, Apple is only giving very limited access to the ARM platform they intend to use for their new computer. You have to buy a specific platform (looking like a Mac Mini), pay it $500 and return it to Apple in a few months... ...
by BenKissBox
Tue Jul 07, 2020 8:08 pm
Forum: Platform Related Issues
Topic: ~wxRESIZE_BORDER not working on Mac OS (frame still sizable)
Replies: 3
Views: 143

~wxRESIZE_BORDER not working on Mac OS (frame still sizable)

Hello everybody, I am facing a strange issue for an wxWidgets application I ported on Mac OS. The main frame is created using the following style frame->SetWindowStyle (wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)); as recommended from here https://docs.wxwidgets.org/stable/classwx_fr...
by BenKissBox
Sat Feb 01, 2020 4:23 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets samples XCode compilation tutorial
Replies: 1
Views: 351

wxWidgets samples XCode compilation tutorial

Hello everybody, I found that only one "samples" project has a XCode project files, all other sample projects only have VS and Linux related project files. Creating XCode projects for the samples is not a complex tasks but I wanted to share my work, if it can help any other users. Instructions given...
by BenKissBox
Fri Jan 31, 2020 1:23 pm
Forum: Compiler / Linking / IDE Related
Topic: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)
Replies: 6
Views: 379

Re: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)

Hi ONEEYEMAN, thank you for explanations about command line compilation. Meanwhile, I have performed some tests and I confirm the root cause of the issue : if I drag/drop the .a file from the osx/build/ directory, XCode does not see the library and fails during link edition (however I can see the co...
by BenKissBox
Thu Jan 30, 2020 6:19 pm
Forum: Compiler / Linking / IDE Related
Topic: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)
Replies: 6
Views: 379

Re: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)

Hi ONEEYEMAN, I think I have solved the issue... I tried something very basic : I moved the library from the /build directory directly into the project source directory. Don't ask me why, but after that, I have been able to compile minimal.app without the linker error. No idea why, since the file lo...
by BenKissBox
Thu Jan 30, 2020 6:04 pm
Forum: Compiler / Linking / IDE Related
Topic: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)
Replies: 6
Views: 379

Re: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)

Now in order to fix your problem - you said that you were able to successfully build the minimal sample from the Xcode project supplied. Open that Xcode project again and check where in the options does it say that it needs those files. Remember - the name for the library is not starting with "lib"...
by BenKissBox
Thu Jan 30, 2020 2:54 pm
Forum: Compiler / Linking / IDE Related
Topic: XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)
Replies: 6
Views: 379

XCode linker error (wx_osx_cocoa_static / libwx_osx_cocoa_static)

Hello everybody, I am trying to port a wxWidgets application on Mac OS. My configuration is : MacOS X 10.13.6 (High Sierra) wxWidgets 3.1.3 XCode 7 I have been able to compile the static library using wxcocoa.xcodeproj, which produced libwx_osx_cocoa_static.a (compiled as Debug and Release configura...