Discussion:
taskbar button progres
Marian 'VooDooMan' Meravy
2014-09-24 14:13:14 UTC
Permalink
Greetings,

I am up to implement task bar button progressing (IIRC it was GSoC).

my question is: on Win it should work well (thought I didn't try it).

what about other platforms, is there a dummy function that does nothing
at all, when it is not supported, or it is causing compile error?

best,
vdm
.
Bryan Petty
2014-09-24 17:18:23 UTC
Permalink
On Wed, Sep 24, 2014 at 8:13 AM, Marian 'VooDooMan' Meravy
Post by Marian 'VooDooMan' Meravy
what about other platforms, is there a dummy function that does nothing
at all, when it is not supported, or it is causing compile error?
No dummy functions at this point, though wxAppProgressIndicator is
designed so that it can be used that way eventually (it's always
available on Windows regardless of wxUSE_TASKBARBUTTON support or not
- it still needs to be extended to the remaining platforms though).

Use of MSWGetTaskBarButton() currently requires platform guards,
though in reality, you probably want to use wxUSE_TASKBARBUTTON guards
anyway to provide fallback progress indicators.

It's use could certainly be improved though, patches welcome as always.
--
Regards,
Bryan Petty
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Marian 'VooDooMan' Meravy
2014-09-25 11:49:57 UTC
Permalink
Greetings,
Post by Bryan Petty
On Wed, Sep 24, 2014 at 8:13 AM, Marian 'VooDooMan' Meravy
Post by Marian 'VooDooMan' Meravy
what about other platforms, is there a dummy function that does nothing
at all, when it is not supported, or it is causing compile error?
No dummy functions at this point, though wxAppProgressIndicator is
designed so that it can be used that way eventually (it's always
available on Windows regardless of wxUSE_TASKBARBUTTON support or not
- it still needs to be extended to the remaining platforms though).
Use of MSWGetTaskBarButton() currently requires platform guards,
though in reality, you probably want to use wxUSE_TASKBARBUTTON guards
anyway to provide fallback progress indicators.
It's use could certainly be improved though, patches welcome as always.
It would be nice to implement this feature for other platforms, so we
won't need wxUSE_TASKBARBUTTON guards.

Isn't possible adjust WX code to guard them on platforms that is not
supporting this feature yet, and instead use e.g. wxAppProgressIndicator
for compatibility's sake as a fallback?

best,
vdm
.

Loading...