Search found 15820 matches

by doublemax
Thu Apr 15, 2021 10:24 am
Forum: C++ Development
Topic: central alignement within panel
Replies: 1
Views: 7

Re: central alignement within panel

I don't quite understand the question. Can you show a screenshot?
by doublemax
Wed Apr 14, 2021 11:57 pm
Forum: C++ Development
Topic: Is there a way to make the radio button as button style?
Replies: 1
Views: 36

Re: Is there a way to make the radio button as button style?

You can't change the style of the radio buttons. However, they should look exactly like any other native radio button under Windows. If you get an interface that looks like Windows 95, then your executable is missing the manifest file.
by doublemax
Wed Apr 14, 2021 10:48 pm
Forum: General Development
Topic: wxWidgets independednt static library
Replies: 1
Views: 56

Re: wxWidgets independednt static library

I'm not sure it's going to work that way. All the main applications will have their own event loop which will collide with the wxWidgets event loop in your library. Especially in case 2 where the host application does also use wxWidgets. But in that case you could provide a dedicated call in the lib...
by doublemax
Wed Apr 14, 2021 10:37 pm
Forum: C++ Development
Topic: Help creating a wxProcess/wxGenericProgressDialog combo!
Replies: 4
Views: 154

Re: Help creating a wxProcess/wxGenericProgressDialog combo!

I don't think you have to derive from any GUI class for this. Assuming you already have a main frame from which the action is triggered by the user somehow, just start the thread and show a progress dialog until the thread is finished. I would do it like this: Demo thread and simple class for thread...
by doublemax
Wed Apr 14, 2021 3:58 pm
Forum: The Code Dump
Topic: Simple wxSwitchCtrl class
Replies: 6
Views: 117

Re: Simple wxSwitchCtrl class

AmadeusK525 wrote:
Wed Apr 14, 2021 2:44 pm
Done :)
Thanks!
by doublemax
Wed Apr 14, 2021 5:41 am
Forum: C++ Development
Topic: How to change style of scrollbar
Replies: 10
Views: 2347

Re: How to change style of scrollbar

My suggestion went only as far as creating a custom wxScrollBar, a separate control, which would be sufficient if your scrolled window was 100% custrom drawn. You'd only have to handle virtual size and scroll position in the drawing code. If however, you wanted a complete wxScrollWindow implementati...
by doublemax
Tue Apr 13, 2021 5:23 pm
Forum: C++ Development
Topic: ClientData mysery
Replies: 1
Views: 49

Re: ClientData mysery

If you use the overload that takes a "void*", the object must be allocated on the heap and you're responsible for deleting it. If you use the overload that takes a "wxClientData*", the object must also be allocated on the heap but the listbox takes ownership and deletes it. If you only want to store...
by doublemax
Tue Apr 13, 2021 3:51 pm
Forum: The Code Dump
Topic: Simple wxSwitchCtrl class
Replies: 6
Views: 117

Re: Simple wxSwitchCtrl class

Thanks for the contribution =D>

FWIW, as it's essentially a (dual state) wxCheckBox, i would have used the same event for it.
by doublemax
Tue Apr 13, 2021 5:27 am
Forum: Compiler / Linking / IDE Related
Topic: MSW: 3.1.2 + CMake3.19 install link errors (VS2015) (Edited: actually FindwxWidgets.cmake mostly)
Replies: 13
Views: 181

Re: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)

Code: Select all

CMAKE_INSTALL_PREFIX C:/Program Files (x86)/wxWidgets
I would suspect that the space in the path causes trouble.
by doublemax
Mon Apr 12, 2021 4:34 pm
Forum: C++ Development
Topic: Redirection of a process output
Replies: 8
Views: 156

Re: Redirection of a process output

But the thing is that wxExecute doesn't handle redirection Really? What about wxProcess::Redirect(), wxProcess::GetInputStream(), wxProcess::GetOutputStream() etc? You need to subclass wxProcess, create an instance of it and pass it to wxExecute. Check the "exec" sample, look for occurrences of "My...
by doublemax
Sun Apr 11, 2021 10:02 pm
Forum: C++ Development
Topic: How to draw only completely visible items in wxScrolledCanvas
Replies: 5
Views: 135

Re: How to draw only completely visible items in wxScrolledCanvas

I didn't have time for a deeper look, but the clearing of the background with DrawRectangle() seems to be the problem. If i just add dc.Clear() before or after DoPrepareDC(), the redraw issue goes away.
by doublemax
Sun Apr 11, 2021 4:11 pm
Forum: C++ Development
Topic: How to draw only completely visible items in wxScrolledCanvas
Replies: 5
Views: 135

Re: How to draw only completely visible items in wxScrolledCanvas

Can you create a minimal, compilable sample that shows the problem?
by doublemax
Sun Apr 11, 2021 9:47 am
Forum: C++ Development
Topic: How to draw only completely visible items in wxScrolledCanvas
Replies: 5
Views: 135

Re: How to draw only completely visible items in wxScrolledCanvas

Try adding the wxFULL_REPAINT_ON_RESIZE window style flag. Despite its name, it sometimes fixed redraw issues in scrolled windows, even when they're happening while scrolling, not resizing.
by doublemax
Sun Apr 11, 2021 9:45 am
Forum: C++ Development
Topic: Stationary background with wxScrolled
Replies: 5
Views: 148

Re: Stationary background with wxScrolled

Try adding the wxFULL_REPAINT_ON_RESIZE window style flag. Despite its name, it sometimes fixed redraw issues in scrolled windows, even when they're happening while scrolling, not resizing.
by doublemax
Sat Apr 10, 2021 8:49 pm
Forum: C++ Development
Topic: Retrieve image indices in wxTreeListCtrl
Replies: 1
Views: 54

Re: Retrieve image indices in wxTreeListCtrl

I looked into the sources, and it seems there is no way to read these values.