Search found 1517 matches

by PB
Fri May 18, 2018 5:33 pm
Forum: Platform Related Issues
Topic: Minimal sample won't run under Windows10
Replies: 4
Views: 76

Re: Minimal sample won't run under Windows10

Now to find that gcc library that is causing all this. You could use the "where" command. I.e., launch the command prompt and type something like (you may use the version number your GCC uses instead of the asterisk) where libstdc++-*.dll You should see all the files matching the pattern ...
by PB
Fri May 18, 2018 11:24 am
Forum: C++ Development
Topic: Unvanted focus
Replies: 7
Views: 76

Re: Unvanted focus

I just tested on MSW and returning false has no effect on the control being focusable. #include <wx/wx.h> class UnfocusableTextCtrl : public wxTextCtrl { public: UnfocusableTextCtrl(wxWindow* parent) : wxTextCtrl(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxT...
by PB
Fri May 18, 2018 8:35 am
Forum: C++ Development
Topic: Unvanted focus
Replies: 7
Views: 76

Re: Unvanted focus

For starters, you actually did not override the method, notice the missing "const" specifier. If you use a compiler with support for C++11 or newer, you can use "override" specifier and the compiler tells you when you make such a mistake. Still, even overriding the method may not...
by PB
Fri May 18, 2018 8:30 am
Forum: Platform Related Issues
Topic: Minimal sample won't run under Windows10
Replies: 4
Views: 76

Re: Minimal sample won't run under Windows10

Cursory Google search indicates that the issue may be the DLL mismatch problem, i.e., there is a GCC library in the path but it is different than the one the application was built with. Try what is described in the linked solution: Copying the DLL (libstdc++- <version> .dll) from your MinGW bin dire...
by PB
Thu May 17, 2018 10:20 am
Forum: C++ Development
Topic: wxBufferedDC and Alpha Channel
Replies: 10
Views: 86

Re: wxBufferedDC and Alpha Channel

I believe the code posted has several issues. Many of them are shared with another recent thread, perhaps reading at least this post may somewhat help: https://forums.wxwidgets.org/viewtopic.php?f=1&t=44596&start=15#p184333
by PB
Wed May 16, 2018 4:02 pm
Forum: C++ Development
Topic: wxWidgets 3.1.1 and german letters
Replies: 17
Views: 312

Re: wxWidgets 3.1.1 and german letters

Natulux wrote:There got to be some changes compared to widgets prior to 3.1.1 - because all of it predecessors work for me without any changes or macros.


As I wrote above, it works for me with the (almost) current version from the GIT master.
by PB
Wed May 16, 2018 1:50 pm
Forum: C++ Development
Topic: Strange behaviour in DC [SOLVED]
Replies: 27
Views: 434

Re: Strange behaviour in DC [SOLVED]

If you want the grid to be visible over the bitmap, you need to either: 1) Draw it after you drew the bitmap. 2) The bitmap needs to have transparency (either via alpha or mask). You should construct wxPaintDC with a wxWindow* pointing to a window you are trying to draw as a parameter. BTW, the draw...
by PB
Tue May 15, 2018 2:32 pm
Forum: wxCode
Topic: wxPdfDocument to image is it possible?
Replies: 4
Views: 68

Re: wxPdfDocument to image is it possible?

I have never used it but it seems PoDoFo can also manipulate PDFs; it seems a bit less dead and has more permissive licence than PDFEdit?
by PB
Mon May 14, 2018 7:19 pm
Forum: Compiler / Linking / IDE Related
Topic: library problem
Replies: 16
Views: 461

Re: library problem

I guess I have to surrender, at least until M$ decides you can install Visual Studio somewhere besides the C directory. Is it really impossible: https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#install2 Anyway, making wxWidgets work with GCC on MSW is really easy even for ...
by PB
Mon May 14, 2018 10:58 am
Forum: C++ Development
Topic: Scroll checklistbox by dragging?
Replies: 5
Views: 61

Re: Scroll checklistbox by dragging?

philjynx wrote:Nowt coming up in my documentation, so I suspect I don't have it. :(


It has been added in 3.1.1 (last December), its use is demonstrated in the Event sample.
by PB
Mon May 14, 2018 10:18 am
Forum: C++ Development
Topic: Scroll checklistbox by dragging?
Replies: 5
Views: 61

Re: Scroll checklistbox by dragging?

I imagine it is possible but do not know where to start to capture the 'mouse' movements. Have you looked into wxGestureEvent (/wxPanGestureEvent)? I have no experience with it myself. It has been added quite recently and may not have been extensively tested, as there is not that many touch-enabled...
by PB
Mon May 14, 2018 6:52 am
Forum: C++ Development
Topic: Strange behaviour in DC [SOLVED]
Replies: 27
Views: 434

Re: Strange behaviour in DC [SOLVED]

dkaip wrote:Putting a bitmap as background, i must over it to design shape.
My line goes under bitmap.


Sorry, I assume there is a question but I do not understand it.
by PB
Sat May 12, 2018 5:34 am
Forum: C++ Development
Topic: Strange behaviour in DC [SOLVED]
Replies: 27
Views: 434

Re: Strange behaviour in DC [SOLVED]

But if i want line before any paint process maybe i must put the draw line in constructor. But no line appears. here i must put the drawline process for appear line on startup of program and before any other process? All i must do is at strart up of the program open a picture and showing immediatel...
by PB
Thu May 10, 2018 3:11 pm
Forum: C++ Development
Topic: Strange behaviour in DC [SOLVED]
Replies: 27
Views: 434

Re: Strange behaviour in DC [SOLVED]

Bind(wxEVT_MOUSE_CAPTURE_LOST, &ImageDialog::OnMouseCaptureLost, this); As doublemax wrote above, you need to call Bind on the window that captures the mouse. In your case it is proably not a dialog but one of its child controls, such as wxStaticBitmap: childControl->Bind(wxEVT_MOUSE_CAPTURE_LO...
by PB
Thu May 10, 2018 3:09 pm
Forum: C++ Development
Topic: Strange behaviour in DC [SOLVED]
Replies: 27
Views: 434

Re: Strange behaviour in DC [SOLVED]

It seems that wxFormBuilder does not support wxMouseCaptureLostEvent. When you check the "OnMouseEvents", it just binds all the mouse events listed in the wxMouseEvent list. wxMouseCaptureLostEvent is different from wxMouseEvent. You need to Bind the event by yourself. Nevertheless, I just...

Go to advanced search