Search found 16000 matches

by doublemax
Tue Jun 01, 2021 8:05 am
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1466

Re: wxDataViewTreeCtrl - How to check if a container has child items?

Do you handle any other events from the wxDVC?
by doublemax
Tue Jun 01, 2021 7:09 am
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1466

Re: wxDataViewTreeCtrl - How to check if a container has child items?

If this is a wxEVT_DATAVIEW_ITEM_BEGIN_DRAG handler, it should be fine.
by doublemax
Mon May 31, 2021 10:27 pm
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1466

Re: wxDataViewTreeCtrl - How to check if a container has child items?

I guess you have some other event handlers on the wxDVC that disturb the selection behavior. When you have multiple files selected, click any of them and keep the button pressed. The selection should not change until you release the mouse. If it behaves differently, check your other event handlers a...
by doublemax
Mon May 31, 2021 4:30 pm
Forum: C++ Development
Topic: Fire & Forget wxTimers
Replies: 10
Views: 848

Re: Fire & Forget wxTimers

You can just delete it. I'm not sure if you can delete a timer from inside a timer event handler, if not use wxTheApp->ScheduleForDestruction()
https://docs.wxwidgets.org/trunk/classw ... 22f9de9d90
by doublemax
Mon May 31, 2021 4:19 pm
Forum: C++ Development
Topic: Fire & Forget wxTimers
Replies: 10
Views: 848

Re: Fire & Forget wxTimers

Nothing stops you from using boost in a wxWidgets app. You just need to make sure the handler code is executed from the main thread if it accesses GUI elements.
by doublemax
Mon May 31, 2021 4:16 pm
Forum: C++ Development
Topic: wxProgressDialog doesn't close
Replies: 11
Views: 643

Re: wxProgressDialog doesn't close

Creating dialogs on the stack is not a rule, but it makes your life much easier. If the progressdialog doesn't close automatically, you can either try to hunt the reason down, or just close/destroy it yourself (which is what i would do).
by doublemax
Mon May 31, 2021 2:02 pm
Forum: C++ Development
Topic: EVT_BUTTON problem
Replies: 5
Views: 450

Re: EVT_BUTTON problem

I wanted to redirect the cout stream to textctrl window (line 78, 79), but it doesn't work. You're creating wxStreamToTextRedirector on the stack, it gets destroyed when it goes out of scope and the redirection stops. Is there different way how to make in the statusbar updated (line 98) than using ...
by doublemax
Mon May 31, 2021 11:10 am
Forum: C++ Development
Topic: Close all panes in wxAuiManager
Replies: 2
Views: 388

Re: Close all panes in wxAuiManager

Try wxAuiPaneInfoArray& instead of auto.
by doublemax
Mon May 31, 2021 5:45 am
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1466

Re: wxDataViewTreeCtrl - How to check if a container has child items?

Get the position from the event, then wxDataViewCtrl::HitTest() to find the item at that position. This works, but I'm only able to drag and drop one item at a time, if I select multiple items from wxDataViewListCtrl and try to drop them on wxDataViewTreeCtrl only the item I clicked on to drag gets...
by doublemax
Sun May 30, 2021 3:02 pm
Forum: C++ Development
Topic: wxGrid cell cursor missing since 3.1.5
Replies: 1
Views: 401

Re: wxGrid cell cursor missing since 3.1.5

It seems the fix hasn't made it into the master branch yet. But there is only one line you need to change if you want to fix it in your local copy:
https://github.com/wxWidgets/wxWidgets/ ... 3208049fdf
by doublemax
Sun May 30, 2021 2:45 pm
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1466

Re: wxDataViewTreeCtrl - How to check if a container has child items?

Get the position from the event, then wxDataViewCtrl::HitTest() to find the item at that position.
by doublemax
Sun May 30, 2021 1:29 pm
Forum: C++ Development
Topic: SIGSEGV message during debugging, but not consistently
Replies: 14
Views: 832

Re: SIGSEGV message during debugging, but not consistently

Code: Select all

wxString askstring = "Product not loaded. Load?";
Where is this code line? If it's a global variable, that could be the problem.

Otherwise there is not much to go on. Can you provide a full call stack?
by doublemax
Sat May 29, 2021 2:32 pm
Forum: C++ Development
Topic: wxProgressDialog doesn't close
Replies: 11
Views: 643

Re: wxProgressDialog doesn't close

And show some code. The wxProgressDialog should close when it goes out of scope anyway. Did you create it on the stack?
by doublemax
Sat May 29, 2021 2:30 pm
Forum: C++ Development
Topic: wxPopupWindow Do Not Receive focsu or its any child
Replies: 3
Views: 591

Re: wxPopupWindow Do Not Receive focsu or its any child

It makes no sense to create a wxPopupWindow in a constructor of a frame. They are usually created when you need them. What are you trying to do?