Search found 147 matches

by art-ganseforth
Thu May 14, 2020 8:24 pm
Forum: C++ Development
Topic: wxMediaCtrl fails to load any media
Replies: 3
Views: 258

Re: wxMediaCtrl fails to load any media

ONEEYEMAN wrote:
Thu May 14, 2020 8:10 pm
Hi,
Can you reproduce it with the media sample?

Thank you.
The resault is some more information:
The Create()-call (line 1497) fails already. But why?
by art-ganseforth
Thu May 14, 2020 7:37 pm
Forum: C++ Development
Topic: wxMediaCtrl fails to load any media
Replies: 3
Views: 258

wxMediaCtrl fails to load any media

Hey folks, i've just a simple test-program using wx 3.1.2 / MinGW32, that creates a wxMediaCtrl inside a wxFrame: #include <wx/wx.h> #include <wx/mediactrl.h> class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) class MyFrame : public wxFrame { public: MyFrame(const wxString& t...
by art-ganseforth
Thu May 14, 2020 2:01 am
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Re: Windows 10 / wxFrame-scaling on multipe Displays

Addendum: I found out that my problem seems not a wxWidgets-probelm at all. I found i.e. simelar distortions even in the windows-fileexplorer in some subwindows, like i.e. the file-search-field. Anyway i would be interested in retrieving more information concerning the current exact screen-coordinat...
by art-ganseforth
Fri May 08, 2020 8:36 pm
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Re: Windows 10 / wxFrame-scaling on multipe Displays

Hi, Below is very straightforward instructions on how to get the wxWidgets bleeding edge sources. [...] Thank you! thats a nice introduction. I'll try it these days. Currently i'm working on the UI-layout and on parallelisation. Concerning the last point i also have a question, but step by step.......
by art-ganseforth
Fri May 08, 2020 7:02 pm
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Re: Windows 10 / wxFrame-scaling on multipe Displays

Hi, wx 3.1.2 - sorry, i should have mentioned that.. Git master??? What is it? I'm talking about very latest code from the repository. Thank you. I think this wiedely besides my skills. For me as a non-professional, it's always a "fight", just to implement an additional library. I just upgraded to ...
by art-ganseforth
Fri May 08, 2020 6:38 pm
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Re: Windows 10 / wxFrame-scaling on multipe Displays

... Then you will also receive the wxDPIChangedEvent when a window is moved to a display with different DPI. I think this is not really the problem because, all of this would be okay if the position of 'main-window' would have influence on the scaling of the others. But unfortunately it's the other...
by art-ganseforth
Fri May 08, 2020 5:28 pm
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Re: Windows 10 / wxFrame-scaling on multipe Displays

wx 3.1.2 - sorry, i should have mentioned that..

Git master???

What is it?
by art-ganseforth
Fri May 08, 2020 5:17 pm
Forum: Platform Related Issues
Topic: Question about Windows Font scaling
Replies: 6
Views: 517

Re: Question about Windows Font scaling

Probably i have a solution: Declarations: #define _DPI_AWARENESS // The function: SetProcessDPIAware seems to be missing #ifdef __WXMSW__ typedef BOOL WINAPI (*SetProcessDPIAwareFunc)(); #endif class clsApp : public wxApp { private: void MSWEnableHiDPI() { #ifdef __WXMSW__ HMODULE m_user32Dll = Load...
by art-ganseforth
Fri May 08, 2020 4:32 pm
Forum: Platform Related Issues
Topic: Windows 10 / wxFrame-scaling on multipe Displays
Replies: 10
Views: 508

Windows 10 / wxFrame-scaling on multipe Displays

Hello, i have a very strange effect working with multiple monitors and multiple wxFrames. First: It seems, that it has nothing to do, with high-dpi-resolution. I have optionally implemented an DPI-Awarenes-dll. The library works for fonts, but not for bitmaps and positions, but this is no big proble...
by art-ganseforth
Sat Feb 15, 2020 12:51 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 877

Re: wxThread / newbie

On my system, the posted code worked as it is. But for my application i don't even need to initiate the threads by a global timer. I've already a version that doesn't crash my application (but i have to implement a sync-technic). This new version is a fire-and-forget one. I call it with with a char*...
by art-ganseforth
Fri Feb 14, 2020 11:27 pm
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 877

Re: wxThread / newbie

Okay... I think i have what i want. I wrote a very small class derived from wxThreadHelper . Here is the code: ///////////////////////////////////////////////////////////////////////////////////////////// // Test-application to see id and how two // wxThreadHelper-instances work parallel ///////////...
by art-ganseforth
Fri Feb 14, 2020 5:44 am
Forum: Compiler / Linking / IDE Related
Topic: Missing setup.h when upgrading to wx3.1.3
Replies: 13
Views: 1064

Re: Missing setup.h when upgrading to wx3.1.3

I'm from germany. I think, my' problem' is not C::B. It's almost the opposite: I never worked without IDE. I never wrote a makefile etc. So, i don't know how all of this is working together. Years ago i downloaded an old wxDevC++-setup as a package, that worked immideately after installing. This i u...
by art-ganseforth
Fri Feb 14, 2020 2:13 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 877

Re: wxThread / newbie

new clsParserThread(Parser,Code))->Run(); in between. That crashes The Create() is missing (unless you put that into the thread ctor). The whole creation and starting of a thread is a 3-step process. clsParserThread *thread = new clsParserThread(Parser,Code); if( thread->Create() == wxTHREAD_NO_ERR...
by art-ganseforth
Fri Feb 14, 2020 2:13 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 877

Re: wxThread / newbie

But if your main "consumer" of CPU power is that one piece of code that takes a Parser and Code and returns some result, that's where you should start. This is my plan, but it is not so simple. The wxTimer-event calls only one 'entrypoint'. After this, everything is scripted - with several subcalls...
by art-ganseforth
Fri Feb 14, 2020 1:22 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 877

Re: wxThread / newbie

However (step by step), why the answer to my first question is 'No'? (new clsParserThread(Parser,Code))->Entry() This will just create the thread object and then call the Entry method in the context of the main thread. Nothing else. Which would explain why your program still works, but without usin...