Search found 21 matches

by vouk
Mon May 25, 2020 4:20 pm
Forum: General Development
Topic: Process flow components lib
Replies: 2
Views: 223

Process flow components lib

Does anybody know if there is a process flow lib for wxWidgets / c++?

I'd like to configure and visualize the processing of data.
Here is a scribble of what I think of:
processflow.png
processflow.png (14.25 KiB) Viewed 223 times
An animated view would be fantastic.
by vouk
Wed Mar 18, 2020 10:49 am
Forum: Platform Related Issues
Topic: wxWidgets in a dynamic library on MacOS
Replies: 1
Views: 248

Re: wxWidgets in a dynamic library on MacOS

Can't believe it was so simple.
Seems the event loop on a Mac does not need these kind of hacks:

Code: Select all

(new wxApp());
wxInitialize();

myDialog dia; // keep parent == NULL
int res = dia.ShowModal();
by vouk
Tue Mar 17, 2020 11:08 am
Forum: Platform Related Issues
Topic: wxWidgets in a dynamic library on MacOS
Replies: 1
Views: 248

wxWidgets in a dynamic library on MacOS

On windows I successfully use WxWidgets in a plugin DLL (for Adobe products) using this approach: https://simon.rozman.si/computers/wxwidgets/wxwidgets-dll-plugin Now I'd like to do this with MacOS / Cocoa in XCode with WxWidgets 3.1.3. Did anybody do this already or knows how to do this? I'd just l...
by vouk
Wed Jun 26, 2019 11:20 am
Forum: C++ Development
Topic: wxRichTextCtrl and unicode / utf-8
Replies: 2
Views: 192

Re: wxRichTextCtrl and unicode / utf-8

Sorry, i was not precise enough. The value is coming from external JSON: [{"name":"Valnir\u00c6sirsson"}] I read that in with wxHTTP and it is stored in a wxString like this: res = {m_impl=L"[{\"name\":\"Valnir\\u00c6sirsson\"}]"} So unfortunately it is an actual backslash in there. So it seems I ne...
by vouk
Wed Jun 26, 2019 9:01 am
Forum: C++ Development
Topic: wxRichTextCtrl and unicode / utf-8
Replies: 2
Views: 192

wxRichTextCtrl and unicode / utf-8

I am using wxWidgets 3.1.2 on Windows with MSVC. I have this code:

Code: Select all

richText.WriteText("Valnir\u00c6sirsson"); // Got this from external JSON data
Unfortunately it appears as:

Code: Select all

ValnirÆsirsson
It should be:

Code: Select all

ValnirÆsirsson
How can I fix this? Thank you.
by vouk
Tue Apr 30, 2019 5:41 am
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

Re: wxPropertyGrid issues with Win 7 and Win 8.1

I installed VS in the VM and the debugger breaks into the exception now. Null pointer exception: m_rendererNative was nullptr wx/renderer.h: virtual void DrawTreeItemButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0) wxOVERRIDE { m_rendererNative.DrawTreeItemButton(win, dc, rect, fla...
by vouk
Mon Apr 29, 2019 4:23 pm
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

Re: wxPropertyGrid issues with Win 7 and Win 8.1

This is the information that windbg shows: (fbc.920): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. *** WARNING: Unable to verify checksum for C:\Program Files\Adobe\Common\Plug-ins\CS6\...
by vouk
Mon Apr 29, 2019 9:23 am
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

Re: wxPropertyGrid issues with Win 7 and Win 8.1

Yes, i will install a debug build later and will check what i can find out with the debugger.
by vouk
Mon Apr 29, 2019 8:29 am
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

Re: wxPropertyGrid issues with Win 7 and Win 8.1

There are some issues with SDK 7.1. I can't install it on Windows 10 because it complains about missing .NET components.

But i am using SDK 8.1 (I downgraded from SDK 10 already) but users still complain about this error on windows 8.1.
by vouk
Mon Apr 29, 2019 8:05 am
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

Re: wxPropertyGrid issues with Win 7 and Win 8.1

Yes, I just edited the original post. It only occurs when the user is using the classic theme.
by vouk
Mon Apr 29, 2019 5:40 am
Forum: Platform Related Issues
Topic: wxPropertyGrid issues with Classic Windows Theme
Replies: 10
Views: 1086

wxPropertyGrid issues with Classic Windows Theme

First, in my case under Win 10 everything works fine. No issues at all and I really love to work with wxWidgets. My application is built with wx 3.1.2 / VS 2017 / Win 10 and a plugin to Adobe Premiere running in an DLL by using this technique: https://simon.rozman.si/computers/wxwidgets/wxwidgets-dl...
by vouk
Sat Apr 13, 2019 3:02 pm
Forum: C++ Development
Topic: wxLog examples
Replies: 1
Views: 202

wxLog examples

I'd like to know if anybody knows some good example code on how to work with wxLog, esp. with wxLogBuffer. My goal is to write log entries to some string buffer that i can access later on. In fact i would like to view/copy this buffer in a text control when i open the gui again. But when I call getB...
by vouk
Wed Mar 13, 2019 1:56 pm
Forum: C++ Development
Topic: wxBitmap from wxBITMAP_PNG_FROM_DATA is not Ok()
Replies: 2
Views: 241

Re: wxBitmap from wxBITMAP_PNG_FROM_DATA is not Ok()

Thank you!

Adding "wxInitAllImageHandlers();" helped!

Btw, I found the hint to use this macro here:

https://wiki.wxwidgets.org/Embedding_PNG_Images
by vouk
Wed Mar 13, 2019 12:41 pm
Forum: C++ Development
Topic: wxBitmap from wxBITMAP_PNG_FROM_DATA is not Ok()
Replies: 2
Views: 241

wxBitmap from wxBITMAP_PNG_FROM_DATA is not Ok()

I am using wxWidgets 3.1.2 on Windows with MSVC. I converted an image to a C char array with: xxd -i -a image.png Whenever I try to load it IsOk() returns always false. unsigned char IMG_ICON_VIDEO_png[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, ... }; wxBitmap img = wxBITMAP_PNG_FROM_DATA(IMG_I...
by vouk
Fri Feb 22, 2019 10:21 am
Forum: C++ Development
Topic: wxPropertyGrid with additional checkbox to each property
Replies: 7
Views: 658

Re: wxPropertyGrid with additional checkbox to each property

New Pagodi, thanks alot! This was really helpful. I can really start migrating from MFC to wxWidgets now.

ONEEYEMAN, I did not find this in the propgrid example.