Overlay and center wxActivityIndicator over all other widgets Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
sw
Experienced Solver
Experienced Solver
Posts: 56
Joined: Sat Mar 16, 2019 8:09 pm

Overlay and center wxActivityIndicator over all other widgets

Post by sw »

As per the title, how can I get a wxActivityIndicator to be the foremost control in a wxDialog-derived window?

The wxDialog window has a wxCalendarCtrl and wxDataViewCtrl in it and I'm trying to get a wxActivityIndicator to render on top of those controls and center it in the wxDialog window. Once the operation completes, I hide it. Additionally, if I could steal focus or prevent any controls from being active during the operation that would be beneficial too. Is that possible too?

What I've done so far is kind of place the wxActivityIndicator in-between the two controls with ReserveSpaceEvenIfHidden flag to true. But this isn't quite center and the reserved space looks weird when the wxActivityIndicator is hidden.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Overlay and center wxActivityIndicator over all other widgets

Post by doublemax »

There is no easy way to achieve what you want with wxActivityIndicator.

Check if wxBusyCursor, wxBusyInfo or wxProgressDialog could be alternatives.
Use the source, Luke!
Post Reply