Search found 674 matches

by briceandre
Mon Sep 28, 2015 7:25 pm
Forum: Platform Related Issues
Topic: full screen on Mac
Replies: 1
Views: 1936

full screen on Mac

Dear all, With Mac OSX applications, it is common to be able to switch an application to a kind of full screen mode so that it uses another "desktop". Once applications are extended, it is possible to switch from one application to another by using three fingers on the touchpad and switchi...
by briceandre
Sat Jun 14, 2014 5:14 am
Forum: Platform Related Issues
Topic: Mac OSX : existing objective-c app in a wxDialog
Replies: 0
Views: 1380

Mac OSX : existing objective-c app in a wxDialog

Dear all, I would want to integrate a scanner interface to my MAC application, but as I am a noob with cocoa stuff, I looked on internet for an example. I found an application that nealy does what I want, but it's a xcode project implemented in objective-c and written as a standalone application (ht...
by briceandre
Sat Jun 14, 2014 4:54 am
Forum: Platform Related Issues
Topic: Change default language in MacOSX
Replies: 2
Views: 1475

Re: Change default language in MacOSX

Thanks doublemax for your help. I tried to follow the tips in the link you provided to me, but it did not worked. But I am not really sure that the problem comes from there : I am not bothered by strings encoded in wxWidgets code. I am concerned about the dialog button ('yes', 'no', 'cancel', etc.)....
by briceandre
Sun Jun 08, 2014 1:37 pm
Forum: Platform Related Issues
Topic: Change default language in MacOSX
Replies: 2
Views: 1475

Change default language in MacOSX

Dear all, I am porting my wxWidgets application to mac and I have a problem with the dialog buttons : they are in english whilst my Mac system is in french. On windows, not problem : the dialog buttons were always displayed in the language of the OS, but it seems to be frozen to english in the MAC v...
by briceandre
Sun Mar 23, 2014 12:35 pm
Forum: C++ Development
Topic: Retrieve mous click events from parent window
Replies: 2
Views: 1849

Re: Retrieve mous click events from parent window

Thanks, it works like a charm
by briceandre
Sun Mar 23, 2014 11:06 am
Forum: C++ Development
Topic: Retrieve mous click events from parent window
Replies: 2
Views: 1849

Retrieve mous click events from parent window

Dear all, I have a parent window containing several children (text entries, wxStaticBitmap, etc.). In some cases, all children are deactivated and I would want to intercept the mouse click events from the parent to perform some dedicated actions. I tried to bind a wxEVT_LEFT_DOWN to the main panel l...
by briceandre
Sun Mar 16, 2014 9:33 am
Forum: C++ Development
Topic: Problem with size constraints
Replies: 1
Views: 817

Problem with size constraints

Dear all, I have a problem when providing size constraints to some components. I want to compute the minimum size needed by an element for displaying it in a more complex viewer. I simplified my gui structure so that now, this element is only constituted of : - a wxPanel containing : - a wxBoxSizer ...
by briceandre
Sun Mar 09, 2014 12:51 pm
Forum: C++ Development
Topic: Implementation of application plugins with dll
Replies: 1
Views: 901

Implementation of application plugins with dll

Dear all, I have an application that I use for several clients needs. Depending on the client, the configuration of the application is not the same and, for some of them, additional plugins are used to provide additional services. Currently, everything is statically compiled in a single program that...
by briceandre
Sun Sep 08, 2013 3:53 pm
Forum: C++ Development
Topic: Why does this code crashed ?
Replies: 4
Views: 1920

Re: Why does this code crashed ?

The crash does not occur in the empty grid-bag: it occurs in the grid-bag that contains the empty one. And my old app had also empty grid-bags without any problem. It seems that the problem occurs when the grid-bag has only sizers that do not have any elements to display in them. Some parts of the c...
by briceandre
Sun Sep 08, 2013 1:37 pm
Forum: C++ Development
Topic: Why does this code crashed ?
Replies: 4
Views: 1920

Re: Why does this code crashed ?

Probably, but I don't understand the assert... Here is the message: F:\AMS\wxWidgets3\include\wx/sizer.h(810): assert "m_cols" failed in wxGridSizer::CalcRows(): Can't calculate number of cols if number of rows is not specified (1a5c.4c28): Unknown exception - code 00001976 (first chance) ...
by briceandre
Sun Sep 08, 2013 12:47 pm
Forum: C++ Development
Topic: Why does this code crashed ?
Replies: 4
Views: 1920

Why does this code crashed ?

Dear all, I have a code that dynamically changes the structure of a window. When I add some elements, the application crashes and I cannot figure why. I wrote a simple code that simulates the behaviour of my main application and I am able to reproduce the problem. In this small test application, whe...
by briceandre
Sun Jun 09, 2013 6:26 pm
Forum: C++ Development
Topic: Multi-thread application, custom events and gui refresh
Replies: 6
Views: 3900

Re: Multi-thread application, custom events and gui refresh

Hello DoubleMax, Yes, you are right : my problem comes from the fact that I post my custom events too quickly and wxWidgets does not have time to empty the other events (including gui ones). I digged into the code to understand why this did not work and, by doing so, I think I found a proper solutio...
by briceandre
Sun Jun 09, 2013 1:23 pm
Forum: C++ Development
Topic: Multi-thread application, custom events and gui refresh
Replies: 6
Views: 3900

Re: Multi-thread application, custom events and gui refresh

I've never used it, but you could try wxApp::Pending/Dispatch I added this in my main thread job handler and it highly improves the situation. But I stil ldon't like this solution because I have the feeling that it just hides an underlying problem : for me, the way events are posted should prevent ...
by briceandre
Sun Jun 09, 2013 11:10 am
Forum: C++ Development
Topic: Multi-thread application, custom events and gui refresh
Replies: 6
Views: 3900

Re: Multi-thread application, custom events and gui refresh

Hello DoubleMax, Thanks for your help. My application performs database synchronisation. All operations that perform update of the database trigger a callback mechanism. The gui elements can register on those callbacks and perform operations on it (typically: refresh the gui if they display the elem...
by briceandre
Sun Jun 09, 2013 8:40 am
Forum: C++ Development
Topic: Multi-thread application, custom events and gui refresh
Replies: 6
Views: 3900

Multi-thread application, custom events and gui refresh

Hello everyone, I am developping an application that uses 3 threads : The main gui thread One for sending data on a socket One for receiving data from the socket Some operations triggerred by the reception of data on the socket need to be performed in the main thread. In order to do so, I buffer tho...