Search found 15836 matches
- Tue Apr 20, 2021 4:50 pm
- Forum: General Development
- Topic: How to contribute to the wxwidgets C++ Project?
- Replies: 4
- Views: 56
Re: How to contribute to the wxwidgets C++ Project?
Unfortunately all these sites have their own user management, the accounts are not shared among them.
- Tue Apr 20, 2021 4:11 pm
- Forum: General Development
- Topic: How to contribute to the wxwidgets C++ Project?
- Replies: 4
- Views: 56
Re: How to contribute to the wxwidgets C++ Project?
In general it's to good starting point to check the list of open bugs and try to fix one. http://trac.wxwidgets.org/ You can also check recent Google Summer of Code projects and project ideas: https://www.wxwidgets.org/gsoc/projects/ Some of them might already be implemented by now. Before you start...
- Tue Apr 20, 2021 1:56 pm
- Forum: C++ Development
- Topic: size of elements
- Replies: 3
- Views: 66
- Mon Apr 19, 2021 8:03 pm
- Forum: C++ Development
- Topic: size of elements
- Replies: 3
- Views: 66
Re: size of elements
I think this is a good introduction to understand the basic concept behind sizers:
http://neume.sourceforge.net/sizerdemo/
http://neume.sourceforge.net/sizerdemo/
- Mon Apr 19, 2021 6:11 pm
- Forum: C++ Development
- Topic: How to efficiently create wxBitmap from std::vector<std::vector<wxColour>>
- Replies: 2
- Views: 53
Re: How to efficiently create wxBitmap from std::vector<std::vector<wxColour>>
Use wxPixelData to write directly into the bitmap, without the vectors: https://docs.wxwidgets.org/trunk/classwx_pixel_data.html As you're just writing into memory, it's safe from multiple threads. But you must destroy the wxPixelData instance before you use the bitmap for any other operation, like ...
- Sun Apr 18, 2021 8:57 pm
- Forum: Component Writing
- Topic: Creating a custom LED indicator
- Replies: 10
- Views: 213
Re: Creating a custom LED indicator
Pass as "style" to the wxWindow ctor.
And must not have the "dc.Clear();" in the paint event handler.
Code: Select all
Led::Led(wxWindow *parent, wxWindowID id, wxPoint Position, int Size, char color)
: wxWindow(parent, id, Position, wxSize(Size,Size), wxTRANSPARENT_WINDOW )
- Sun Apr 18, 2021 8:28 am
- Forum: C++ Development
- Topic: wxEVT_CHAR works, wxEVT_KEY_UP does not
- Replies: 7
- Views: 135
- Sun Apr 18, 2021 8:15 am
- Forum: Component Writing
- Topic: Creating a custom LED indicator
- Replies: 10
- Views: 213
Re: Creating a custom LED indicator
Add the wxTRANSPARENT_WINDOW style flag.
Call SetBackgroundStyle(wxBG_STYLE_PAINT); in the ctor, so that its background does not get cleared.
Memory leak: You need to call "delete gc;" at the end of the paint event handler.
Call SetBackgroundStyle(wxBG_STYLE_PAINT); in the ctor, so that its background does not get cleared.
Memory leak: You need to call "delete gc;" at the end of the paint event handler.
- Sat Apr 17, 2021 4:58 pm
- Forum: Component Writing
- Topic: Creating a custom LED indicator
- Replies: 10
- Views: 213
Re: Creating a custom LED indicator
int x0=100,y0=100,x1=0,y1=0,x2=0,y2=0,D1=40,D2=60; I suspect these hard-coded coordinates to be responsible. Inside a paint event handler for a specific window, the coordinates are relative to the window position, i.e. they always start at (0,0) in the upper left corner. I guess you're drawing outs...
- Fri Apr 16, 2021 5:15 pm
- Forum: C++ Development
- Topic: wxEVT_CHAR works, wxEVT_KEY_UP does not
- Replies: 7
- Views: 135
Re: wxEVT_CHAR works, wxEVT_KEY_UP does not
Is this all about avoiding to delete multiple items because of the key-repeat of the delete key?
Under Windows you can get this information from wxKeyEvent::GetRawKeyFlags(). If bit 30 is set, the event is the result of an auto-repeat.
Under Windows you can get this information from wxKeyEvent::GetRawKeyFlags(). If bit 30 is set, the event is the result of an auto-repeat.
Code: Select all
bool isRepeat = (keyevent.GetRawKeyFlags() & 0x40000000) != 0;
- Fri Apr 16, 2021 12:59 pm
- Forum: C++ Development
- Topic: redirect output of wxExecute?
- Replies: 1
- Views: 39
- Thu Apr 15, 2021 9:38 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Some samples won't compile
- Replies: 3
- Views: 79
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.
If you try to build them in CodeLite, you'll probably have to add the missing libraries to the linker options yourself.
- Thu Apr 15, 2021 4:19 pm
- Forum: Platform Related Issues
- Topic: GTK3 / wxStaticText size
- Replies: 21
- Views: 981
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...
- Thu Apr 15, 2021 2:57 pm
- Forum: Platform Related Issues
- Topic: GTK3 / wxStaticText size
- Replies: 21
- Views: 981
Re: GTK3 / wxStaticText size
It's horrible indeed. Please remove *all* Fit() and Layout() calls. What happens on the "broken" page when you resize the frame manually?The code is a little bit verbose because it comes from wxFormBuilder...
- Thu Apr 15, 2021 2:53 pm
- Forum: Platform Related Issues
- Topic: Getting windows mousepointer icon = black square
- Replies: 25
- Views: 403
Re: Getting windows mousepointer icon = black square
Off-topic:
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.i'm still waiting for a reply about the questions i wrote here about the wxStopWatch class members.