Search found 1454 matches

by PB
Fri Apr 20, 2018 10:58 am
Forum: C++ Development
Topic: Issue of changing background color of wxAuiToolbar
Replies: 3
Views: 40

Re: Issue of changing background color of wxAuiToolbar

Sounds like the function was not supported. Why was it not added while refactoring wxAui. Just mere existence of an inherited method does not guarantee anything. For example, many controls ignore Set(Background)Colour() as the underlying native control does not support it, this can differ even betw...
by PB
Fri Apr 20, 2018 10:00 am
Forum: C++ Development
Topic: Issue of changing background color of wxAuiToolbar
Replies: 3
Views: 40

Re: Issue of changing background color of wxAuiToolbar

It seems that this would need to be done via a custom wxAuiToolBarArt provider, overriding Draw(Plain)Background and possibly other methods.
by PB
Fri Apr 20, 2018 6:48 am
Forum: C++ Development
Topic: Assert Error: wxClassInfo:Register()
Replies: 1
Views: 20

Re: Assert Error: wxClassInfo:Register()

This kind of error should show when linking to the same (dynamic) library more than once.

It is odd though, as you say you do not use GUI so you should not be linking against wxAdvanced anyway (unless you are using a monolithic DLL).
by PB
Fri Apr 20, 2018 5:53 am
Forum: C++ Development
Topic: wxGetApp() in plugins / dynamic libraries
Replies: 1
Views: 27

Re: wxGetApp() in plugins / dynamic libraries

Speaking of plugins: I am not familiar with the example in the link you posted, but did you also check the DLL sample bundled with wxWidgets (including its readme.txt)? There is also this: https://wxwidgets.info/wxwidgets-app-with-plugins-windowslinuxmac-sample-source-code/
by PB
Thu Apr 19, 2018 8:24 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 16
Views: 110

Re: Change wxPaintDC to wxBufferedPaintDC

ONEEYEMAN wrote:PB, Did you try that with 3.1.1?


I have actually tried it with 3.1.2, about two weeks old GIT-master.
by PB
Thu Apr 19, 2018 8:22 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 16
Views: 110

Re: Change wxPaintDC to wxBufferedPaintDC

I have a faint memory that wxMemoryDCs (which are used internally by wxBufferedPaintDC) don't inherit all properties of the "master" wxDC. But i can't remember if this was a bug or a limitation. As I cannot find this documented anywhere, I would classify it as a bug, as bugs are just undo...
by PB
Thu Apr 19, 2018 8:05 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 16
Views: 110

Re: Change wxPaintDC to wxBufferedPaintDC

wxPaintDC dc(this); wxPaintDC dd(okno1); wxPaintDC de(okno2); This is a big no-no. In a paint event handler you can only draw onto the window that initiated the paint event. And it doesn't make sense anyway. I did not point this issue out as removing the invalid code had no effect on the main issue.
by PB
Thu Apr 19, 2018 8:03 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 16
Views: 110

Re: Change wxPaintDC to wxBufferedPaintDC

I tested with the bundled drawing sample. In the sample, you can mirror the axis (<Ctrl+N> for vertical mirroring) and move the origin (<Ctrl+D> for moving it down). How to reproduce the issue in the drawing sample 0. Run the drawing sample 1. Press <Ctrl+N> and observe that that the drawings mostly...
by PB
Thu Apr 19, 2018 7:26 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC
Replies: 16
Views: 110

Re: Change wxPaintDC to wxBufferedPaintDC

ONEEYEMAN asked about wxWidgets version. Your IDE version, aside from being listed in the OP, does not tell that. Even if wxWidgets version is somehow unfortunately tied to wxDevC++ version, people who are not unfamiliar with that still cannot tell. BTW, you can display the version info in any wxWid...
by PB
Thu Apr 19, 2018 1:09 pm
Forum: C++ Development
Topic: The division of Windows into the work areas
Replies: 6
Views: 89

Re: The division of Windows into the work areas

I think there are at least two issues with your code: 1. You need to create static texts with scrolled_panel as their parent. 2. You should add wxEXPAND parameter when adding scrolled_panel to the main sizer. This code with those two changes from above seems to be basically working, aside from needi...
by PB
Thu Apr 19, 2018 12:35 pm
Forum: C++ Development
Topic: wxComboBox with different font in each line [SOLVED]
Replies: 1
Views: 24

Re: wxComboBox with different font in each line [SOLVED]

I think you would need to use ownder drawn wxComboBox, see the combo sample for inspiration. It should not be difficult. Just don't forget that you cannot draw names of all fonts in their font only, e.g., it would make the list somewhat useless for symbol fonts or fonts using alphabet unfamiliar to ...
by PB
Thu Apr 19, 2018 9:09 am
Forum: C++ Development
Topic: The division of Windows into the work areas
Replies: 6
Views: 89

Re: The division of Windows into the work areas

How to make the buttons always remain at the bottom, but only the text scrolls? I did not read the thread thoroughly, but if you do not with something to scroll, do not add it to the (same) wxScrolled. See e.g. the code here https://forums.wxwidgets.org/viewtopic.php?f=19&t=44435#p183153
by PB
Tue Apr 17, 2018 12:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with visual studio 17 and wxwidget3.1
Replies: 17
Views: 132

Re: Problem with visual studio 17 and wxwidget3.1

In addition to what was being said above, e.g. about dangers and mismatches when static CRT linking.

You are using a preview version of the compiler. Can you try doing the same with an official version of the compiler? It is not likely that the issue is with the compiler but it is still possible...
by PB
Tue Apr 17, 2018 12:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with visual studio 17 and wxwidget3.1
Replies: 17
Views: 132

Re: Problem with visual studio 17 and wxwidget3.1

Cursory google search hints that this issue can arise when trying to link an application with a library compiled using a different (older) compiler. As catalin said, you need to provide details about how the wxWidgets were built. BTW, I strongly believe that you cannot use statically-linked CRT when...
by PB
Tue Apr 17, 2018 10:56 am
Forum: C++ Development
Topic: Easy way to scale and save images
Replies: 6
Views: 58

Re: Easy way to scale and save images

I'm sorry, I'm quite a beginner and I even don't know where to find the errors that the wxLog functions might set... :( The errors and messages produced by wxLog..() functions are in GUI programs shown using a message dialog, so you really cannot miss them. Have you verified that OnButton1Click() i...

Go to advanced search