Search found 15825 matches

by doublemax
Thu Apr 15, 2021 9:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Some samples won't compile
Replies: 1
Views: 15

Re: Some samples won't compile

How exactly did you try to build the samples? They all should build fine from the command line using the provided make files.

If you try to build them in CodeLite, you'll probably have to add the missing libraries to the linker options yourself.
by doublemax
Thu Apr 15, 2021 4:19 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 14
Views: 839

Re: GTK3 / wxStaticText size

I usually don't work under Linux, but i have a faint memory that window creation under GTK is somehow delayed compared to window creation under Windows. I assume the Layout is calculated before the wxStaticText is aware of its new font size. I thought there was an open ticket about this on http://tr...
by doublemax
Thu Apr 15, 2021 2:57 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 14
Views: 839

Re: GTK3 / wxStaticText size

The code is a little bit verbose because it comes from wxFormBuilder...
It's horrible indeed. Please remove *all* Fit() and Layout() calls. What happens on the "broken" page when you resize the frame manually?
by doublemax
Thu Apr 15, 2021 2:53 pm
Forum: Platform Related Issues
Topic: Getting windows mousepointer icon = black square
Replies: 11
Views: 187

Re: Getting windows mousepointer icon = black square

Off-topic:
i'm still waiting for a reply about the questions i wrote here about the wxStopWatch class members.
I think Vadim gave you a pretty clear answer. And in case you don't know him, he's the main wxWidgets maintainer. His word has weight.
by doublemax
Thu Apr 15, 2021 2:50 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 14
Views: 839

Re: GTK3 / wxStaticText size

How is that a "small" test case? Small maybe, but not minimal. Is the wxSimpleBook relevant for the problem? Probably not. What about the buttons? I would suspect that a single wxPanel with 3 wxStaticTexts should be sufficient to show the issue.
by doublemax
Thu Apr 15, 2021 10:24 am
Forum: C++ Development
Topic: central alignement within panel
Replies: 2
Views: 31

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: 46

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: 61

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: 158

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: 132

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: 2353

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: 51

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: 132

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: 14
Views: 217

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: 157

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...