Search found 32 matches

by stefan__o
Wed Sep 10, 2014 5:37 am
Forum: Platform Related Issues
Topic: wxEVT_LEAVE_WINDOW does not work on GTK with some elements
Replies: 0
Views: 699

wxEVT_LEAVE_WINDOW does not work on GTK with some elements

Hello, I want to create an Image-Hyperlink. I used a wxStaticBitmap and made event-functions just like in wxGenericHyperlinkCtrl. But I've got one problem: The event connected to wxEVT_LEAVE_WINDOW is never called on GTK. When I connect it to a wxPanel it is called correctly. Interesting point: When...
by stefan__o
Fri Aug 22, 2014 3:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile wxWidgets for XP on VC++ 2012
Replies: 2
Views: 778

Re: Compile wxWidgets for XP on VC++ 2012

Yes, but I just found the problem by comparing every setting to another dll that was created correctly:
You need to define a subsystem, in the wxWidgets project files subsystem is empty, when I use subsystem console or windows it works.
by stefan__o
Fri Aug 22, 2014 2:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile wxWidgets for XP on VC++ 2012
Replies: 2
Views: 778

Compile wxWidgets for XP on VC++ 2012

Hello, I just noticed that my program does not run on Windows XP, although I changed the platform toolset to "v110_xp", in wxWidgets everywhere and my project. Still Dependency Walker tells me OS / subsystem 6.0. I tried to compile a wxWidgets DLL, the same, DLL requires 6.0. What else do I need to ...
by stefan__o
Thu Aug 21, 2014 4:56 pm
Forum: C++ Development
Topic: Show stdout/stderr output in GUI
Replies: 4
Views: 1525

Re: Show stdout/stderr output in GUI

I´ve seen this topics before, but there is no solution (and because they are 4/10 years old I started a new thread). I found a "solution" on stackoverflow (http://stackoverflow.com/questions/5419356/redirect-stdout-stderr-to-a-string), but it´s not working reliable, probably threading issues. Has an...
by stefan__o
Thu Aug 21, 2014 4:19 am
Forum: C++ Development
Topic: Show stdout/stderr output in GUI
Replies: 4
Views: 1525

Re: Show stdout/stderr output in GUI

Unfortunately the libraries are like fprintf(stderr,"Error %i occured\n",error); I found different examples how to redirect stderr (using dup or setbuf), but they either don´t work or require posix (using fork() etc.). Isn´t there a solution that works fine with wxWidgets, what I would like to have ...
by stefan__o
Mon Aug 18, 2014 8:38 am
Forum: C++ Development
Topic: Application crashes at exit in ~wxEvtHandler
Replies: 4
Views: 1418

Re: Application crashes at exit in ~wxEvtHandler

Thanks, works now with the Wrapper. Why not to use userdata? I don´t like to write several times the same function for another object if I can just pass the object as a parameter. Still I don't understand why it worked before, maybe Objects were deleted in a different order and that didn't caused an...
by stefan__o
Mon Aug 18, 2014 6:50 am
Forum: C++ Development
Topic: Application crashes at exit in ~wxEvtHandler
Replies: 4
Views: 1418

Application crashes at exit in ~wxEvtHandler

Hi, I introduced a bug somewhere and I cannot find it: Each time I close the application and opened a dialog (there is only one) before, it crashes. The crash occurs in the destructor of wxEvtHandler (event.cpp), at line 1147: delete entry->m_callbackUserData; m_callbackUserData is some value, but n...
by stefan__o
Mon Aug 18, 2014 4:33 am
Forum: C++ Development
Topic: Cannot resize elements in a sizer
Replies: 4
Views: 1347

Re: Cannot resize elements in a sizer

Found a simple solution:
Instead of SetSize I use SetMinSize and SetMaxSize to get the desired result.
by stefan__o
Sun Aug 17, 2014 10:14 am
Forum: C++ Development
Topic: Cannot resize elements in a sizer
Replies: 4
Views: 1347

Re: Cannot resize elements in a sizer

Hi, SetSizeHints does not help, all elements get there old size back. These are all my sizers/elements: wxFrame |-wxGridSizer |-wxScrolledWindow |-wxGridSizer |-wxBoxSizer |-wxStaticText |-wxPanel ... |-wxBoxSizer |-wxStaticText |-wxPanel ... |-wxBoxSizer |-wxStaticText |-wxPanel ... ... All I want ...
by stefan__o
Sun Aug 17, 2014 8:21 am
Forum: C++ Development
Topic: Cannot resize elements in a sizer
Replies: 4
Views: 1347

Cannot resize elements in a sizer

Hi, I´ve got some elements in a wxBoxSizer that is in a wxGridSizer. When I resize these elements with SetSize nothing happens. I tried to detach, resize and add them again, that works until I resize the window or call Layout(). It doesn´t matter if I change horizontal or vertical size, smaller or b...
by stefan__o
Thu Aug 07, 2014 12:56 pm
Forum: C++ Development
Topic: Show stdout/stderr output in GUI
Replies: 4
Views: 1525

Show stdout/stderr output in GUI

Hello,
my application is using third-party libraries that print information on stderr. Is there a way to capture that output somehow so in can be shown in a log window? I do not necessarily want to redirect stderr, it can still be shown on console.
Regards
Stefan
by stefan__o
Tue Aug 05, 2014 4:24 pm
Forum: C++ Development
Topic: How to fit sizer inside a Window?
Replies: 6
Views: 1919

Re: How to fit sizer inside a Window?

Layout does not help, but I found a solution:

Code: Select all

wxGridSizer *gsizer = new wxGridSizer(1,1,0,0);
gsizer->Add(scrollwin,0,wxEXPAND|wxALL);
SetSizer(gsizer);
Layout();
Also wxGridSizer is probably not intended for that, it works.
by stefan__o
Tue Aug 05, 2014 2:50 am
Forum: Platform Related Issues
Topic: Problems with wxStaticText
Replies: 2
Views: 890

Re: Problems with wxStaticText

I already tried that, but it doesn´t help very much, because the text always changed (it´s a measured value and the last digit is instable in most cases). I also tried an empty OnEraseBackground function, but the improvement is barely noticeable (maybe it´s just an illusion). The problem seems to be...
by stefan__o
Mon Aug 04, 2014 10:13 pm
Forum: C++ Development
Topic: How to fit sizer inside a Window?
Replies: 6
Views: 1919

Re: How to fit sizer inside a Window?

Sorry, I made a mistake: the code is of course not in the constructor, but in a menu event, so the frame does already exist. In the constructor it works fine, but not in a menu event. It´s the very same when I test your example code. Currently in my code the scrolledwindow is assosiated with the loa...
by stefan__o
Mon Aug 04, 2014 11:08 am
Forum: C++ Development
Topic: How to fit sizer inside a Window?
Replies: 6
Views: 1919

Re: How to fit sizer inside a Window?

Does not work :(
After resizeing main window everything ok, but first all stuff is in the very left top corner within 32 x 32 pixel.