Search found 32 matches

by stefan__o
Sat Oct 05, 2019 5:37 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 3
Views: 161

Re: GTK3 / wxStaticText size

With which DE, and on X11 or Wayland? Cinnamon, X11 It was, and would have been in wx3.0.4. The original patch was replaced, 3.0.4 already has the later version, that's why I thought it was not in there. CallAfter does the trick, this add the end of the function that creates the static texts does n...
by stefan__o
Sat Oct 05, 2019 12:19 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 3
Views: 161

Re: GTK3 / wxStaticText size

I did some further testing: The patch was later replaced by a much simpler solution according to the git logs. I tried the last version with the original patch (9bb5d0435a4cce5bcb7b3956cb730f59c37ea5f6): problem is different: Sizes are still wrong, but text is not cut off, but painted over the borde...
by stefan__o
Fri Oct 04, 2019 8:11 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 3
Views: 161

GTK3 / wxStaticText size

Hello, my application uses a lot of wxStaticText with custom fonts. All works fine in Windows, macOS and GTK2. Unfortunately in GTK3 all the wxStaticText are to small (text doesn't fit) and the problem is immediately resolved after resizing the main window. It can also be fixed by calling Layout() o...
by stefan__o
Thu Feb 21, 2019 1:06 am
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Re: Video player component using ffmpeg?

This sound more like the requirements for a video editor. So, is high performance, hardware accelerated output a necessity? If not, you could just take the frame data, convert it to a bitmap and display it. Not a video editor, because no video export is needed, but actually video analysis. High per...
by stefan__o
Wed Feb 20, 2019 11:29 pm
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Re: Video player component using ffmpeg?

There is nothing like that in wxWidgets. I already assumed that, because I found a lot of posts of people having trouble combining wxWidgets and SDL... Just out of curiosity: What features that you need are missing in libvlc? I need to able to access the raw frame data, which seems to possible but ...
by stefan__o
Wed Feb 20, 2019 9:27 pm
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Re: Video player component using ffmpeg?

As far as I understand the ffmpeg api, what I get is a buffer with a decoded image and metainformation (width, height, pixel format, timestamp...) The functions from the API do not display any video. What I would need is something I could que buffers in and that displays it according to the timestam...
by stefan__o
Wed Feb 20, 2019 4:53 pm
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Re: Video player component using ffmpeg?

I had a look a libvlc, but it doesn't seem to expose all the internals I need to access compared to the ffmpeg api.
Is there a simple way to display video (decoded data from some buffer) using wxWidgets efficiently? Or do I need some other library like SDL for that?
by stefan__o
Mon Feb 18, 2019 9:45 am
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Re: Video player component using ffmpeg?

Thanks for your fast answers! This is a wrapper around FFMpeg that sounds like it does what you want. I know that project, but I don't see any connection to wxWidgets or am I missing something? I'm looking for a connection between ffmpeg and wxWidgets You could also try wxVLC: https://forums.wxwidge...
by stefan__o
Sun Feb 17, 2019 10:58 pm
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 929

Video player component using ffmpeg?

Hey, I'm looking for a way to load video inside a wxWidget application. The format support should be platform independent (not using DirectShow, GStreamer, QuickTime etc.) and it should be possible to access and manipulate the pixel data. My idea is using the ffmpeg libraries for video decoding, but...
by stefan__o
Sat Sep 08, 2018 4:39 pm
Forum: C++ Development
Topic: wxNotebook: Set size of window to fit all tabs
Replies: 5
Views: 404

Re: wxNotebook: Set size of window to fit all tabs

Sorry for the late answer. I removed the wxGridSizer, no difference. I tested on wxGTK and wxMSW, the same issue. Any idea?
I'll try to make an minimal example to show the problem.
by stefan__o
Thu Aug 30, 2018 2:27 pm
Forum: C++ Development
Topic: wxNotebook: Set size of window to fit all tabs
Replies: 5
Views: 404

Re: wxNotebook: Set size of window to fit all tabs

I called notebook->GetBestFittingSize().GetWidth() to find out what is considered the best size: Before adding pages: 6 After adding pages: 256 This is to fit the contents of the tabs, not the tab headers. I can use SetBestFittingSize to increase the width and it works, but how do I get the precise ...
by stefan__o
Thu Aug 30, 2018 9:40 am
Forum: C++ Development
Topic: wxNotebook: Set size of window to fit all tabs
Replies: 5
Views: 404

Re: wxNotebook: Set size of window to fit all tabs

This is the relevant code from the constructor (wxDialaog is the base class) I removed all the parts where widgets get added to the panels): m_win_sizer = new wxGridSizer( 1,1,0,0 ); wxNotebook *notebook = new wxNotebook(this,ID_Notebook,wxDefaultPosition,wxDefaultSize,wxNB_TOP); wxPanel *osmosdr_pa...
by stefan__o
Thu Aug 30, 2018 8:11 am
Forum: C++ Development
Topic: wxNotebook: Set size of window to fit all tabs
Replies: 5
Views: 404

wxNotebook: Set size of window to fit all tabs

Hello, I've got a window with a wxNotebook over the entire width with 5 tabs (fixed). The content of the tabs is adjusting to the window size. The size of the window is the minimal size using SetSizeHints. Unfortunately the window is set to the minimal size to fit the tab content, but not the tab he...
by stefan__o
Wed Sep 10, 2014 8:44 pm
Forum: Platform Related Issues
Topic: Compile for Windows XP
Replies: 9
Views: 2042

Re: Compile for Windows XP

It seems you are using the same wxWidgets source tree with different IDEs/compilers, that will very likely cause problems. Always work with a fresh directory (unzip the file to a new directory) when using another IDE. For Visual Studio 2012 open the solution, mark all projects, change toolset to v11...
by stefan__o
Wed Sep 10, 2014 5:47 am
Forum: Platform Related Issues
Topic: Compile for Windows XP
Replies: 9
Views: 2042

Re: Compile for Windows XP

I had a similar problem, the project files for wxWidgets do not define a subsystem for some reason, without subsystem defined the toolset-setting is ignored. Easiest way to solve: Mark all projects, right-click and open the settings, somewhere you can define the subsystem, you may choose console or ...