Search found 12724 matches

by doublemax
Thu Nov 15, 2018 10:30 am
Forum: C++ Development
Topic: editable column in wxTreeListCtrl
Replies: 1
Views: 14

Re: editable column in wxTreeListCtrl

is it possible to allow the user to edit e.g. the second column in a wxTreeListCtrl?
No. You'll have to use wxDataViewCtrl for this. Unfortunately that takes more effort to set up and use, check the "dataview" sample that comes with wxWidgets.
by doublemax
Thu Nov 15, 2018 8:52 am
Forum: C++ Development
Topic: Is it possible to do drag&drop on toolbutton of wxToolBar?
Replies: 1
Views: 19

Re: Is it possible to do drag&drop on toolbutton of wxToolBar?

As wxToolBar derives from wxWindow, it should work as a drop target (wxWindow::SetDropTarget). Then you could use wxToolBar::FindToolForPosition() to find the button where the drop happened. But i can't think of any way to start a drag from a toolbar button if a click on that button should also work...
by doublemax
Thu Nov 15, 2018 8:39 am
Forum: Platform Related Issues
Topic: Inconsistent handling of textlabel background color in 3.0
Replies: 1
Views: 17

Re: Inconsistent handling of textlabel background color in 3.0

I assume you're talking about wxStaticText? Try wxGenericStaticText instead: #include <wx/generic/stattextg.h> ... wxGenericStaticText *gstc = new wxGenericStaticText( panel, wxID_ANY, "some text", wxPoint(10,90), wxSize(200,-1) ); gstc->SetBackgroundColour( *wxRED );
by doublemax
Sat Nov 10, 2018 10:21 pm
Forum: C++ Development
Topic: best practice on frame creation and deletion
Replies: 3
Views: 61

Re: best practice on frame creation and deletion

@1) From an OOP point of view, i would put any persistence related code into the destructor of each individual object. This might also be interesting: https://docs.wxwidgets.org/trunk/overview_persistence.html @2) That wouldn't work. If you call Destroy(), wxWidgets itself will call delete on the po...
by doublemax
Sat Nov 10, 2018 9:05 pm
Forum: C++ Development
Topic: best practice on frame creation and deletion
Replies: 3
Views: 61

Re: best practice on frame creation and deletion

The default behavior of a wxFrame is to destroy itself when it's closed. And the default behavior of wxApp is to terminate the application when there are no more toplevel windows. So in most cases you don't have to do call "delete frame_p;". And if you ever wanted to do this, you should ca...
by doublemax
Sat Nov 10, 2018 12:01 pm
Forum: C++ Development
Topic: Bug in wx
Replies: 6
Views: 114

Re: Bug in wx

It is possible that it is fixed in master, however. Can you try with 3.0.2? I couldn't build 3.0.2 (some error in scintilla), but i tested with 3.0.4 and i couldn't create a crash there either. Tested with my code and your change to the "text" sample, both with and without removing the ev...
by doublemax
Sat Nov 10, 2018 12:21 am
Forum: C++ Development
Topic: Bug in wx
Replies: 6
Views: 114

Re: Bug in wx

Does your derived class override any other methods that could interfere? I've tested the following code with a fresh wxWidgets version from GIT, under Windows and Q4OS (Was the only working Linux VM i had at hand) and it worked fine. (GTK2 build under Linux) wxPanel *panel = new wxPanel(this, wxID_A...
by doublemax
Fri Nov 09, 2018 9:59 pm
Forum: C++ Development
Topic: wxFont::SetPointSize and wxMemoryDC::SetFont does not change wxDC font size [SOLVED]
Replies: 4
Views: 89

Re: wxFont::SetPointSize and wxMemoryDC::SetFont does not change wxDC font size [SOLVED]

wxSYS_SYSTEM_FONT could be a bitmap font. Try wxSYS_DEFAULT_GUI_FONT instead. If that doesn't work, use a specific font, e.g: wxFont font(16, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Tahoma")); wxFONTSIZE_XX_LARGE is not a valid enum for this SetPointSize()....
by doublemax
Fri Nov 09, 2018 5:16 pm
Forum: General Forum Issues
Topic: British English, but no American English
Replies: 5
Views: 250

Re: British English, but no American English

While "colour" does bother me to some extent, the fact that there is an explicit "British" English option but no American English option is what sparked me to create this post... In that case, maybe we could rename "British English" to just "English"? (I have...
by doublemax
Fri Nov 09, 2018 11:20 am
Forum: C++ Development
Topic: wxThread Kill()
Replies: 31
Views: 475

Re: wxThread Kill()

Also I think I need joinable Thread as I don´t want to use new. There are very few situations where it makes sense to create a thread object on the stack, because it would be destroyed when it goes out of scope. In 99% of cases they should be created on the heap (= with new). Apart from that: I wou...
by doublemax
Thu Nov 08, 2018 8:33 am
Forum: C++ Development
Topic: Upgrading to 3.0
Replies: 3
Views: 61

Re: Upgrading to 3.0

ONEEYEMAN wrote:doublemax,
So they are cause for the assert?
I'm not 100% sure, i haven't checked. Just try it out.
by doublemax
Wed Nov 07, 2018 11:45 pm
Forum: General Forum Issues
Topic: British English, but no American English
Replies: 5
Views: 250

Re: British English, but no American English

@LoganDark

Your request has been noted. However, i can't tell you when it will be fulfilled, if ever. And if the spelling of "colour" disturbs you, you may try to find help somewhere else.
by doublemax
Wed Nov 07, 2018 11:34 pm
Forum: C++ Development
Topic: Upgrading to 3.0
Replies: 3
Views: 61

Re: Upgrading to 3.0

Try calling AddGrowableXXX after adding the items.
by doublemax
Wed Nov 07, 2018 9:28 pm
Forum: C++ Development
Topic: Drawing on a wxBitmap which already has a mask [SOLVED]
Replies: 7
Views: 131

Re: Drawing on a wxBitmap which already has a mask [SOLVED]

Or find a way that deleting the mask does not result in black pixels?
Interesting, I had no idea that happens. I'd have to make some experiments myself. In the worst case, you'll have to keep a copy of the unmodified bitmap before applying the mask.

Go to advanced search