Search found 15838 matches
- Wed Apr 21, 2021 4:21 pm
- Forum: General Development
- Topic: Run wx projects on embedded board
- Replies: 4
- Views: 46
Re: Run wx projects on embedded board
OK, how about other embedded systems? If it runs Linux with GTK or X11, there is a good chance, wxWidgets will build on it. There is also wxDFB (FB for framebuffer) which displays a Gui by writing directly into the framebuffer of the graphics card (without running GTK, X11 or similar), but i don't ...
- Wed Apr 21, 2021 1:11 pm
- Forum: General Development
- Topic: Run wx projects on embedded board
- Replies: 4
- Views: 46
Re: Run wx projects on embedded board
If you're talking about a Raspi with GUI (GTK or X11), it definitely works.
- Tue Apr 20, 2021 4:50 pm
- Forum: General Development
- Topic: How to contribute to the wxwidgets C++ Project?
- Replies: 4
- Views: 67
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: 67
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: 5
- Views: 100
- Mon Apr 19, 2021 8:03 pm
- Forum: C++ Development
- Topic: size of elements
- Replies: 5
- Views: 100
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: 58
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: 225
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: 225
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: 225
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: 82
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: 1009
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...