Replies: 3 comments
-
@lsoft this isn't directed at you or what you wrote, I'm just talking generally. Details like this should be totally hidden from the user of the API. All these cookies and weird names come from 20-odd years ago, if not more, using arcane COM naming standards and practices. We should be aiming to hide all of that behind a more modern and simpler facade.
Whatever the implementation ends up being, it shouldn't drive what the API looks like.
All start bar operations would need something like:
|
Beta Was this translation helpful? Give feedback.
-
@yannduran I completely agree. But, regardless of statusbar API design, I would like to know how to operate with cookies 100% correctly. It was my primary point to open this issue. Thanks for your thoughs! |
Beta Was this translation helpful? Give feedback.
-
@lsoft fair enough :-) Perhaps it'd be better to add your question to discussions. Might I suggest 'How to properly handle cookies?' as a title? Your title for this issue was a bit misleading if what you want to know is 'how to operate with cookies 100% correctly'. |
Beta Was this translation helpful? Give feedback.
-
Do we really need to send cookie = 0 in each invocation of
statusBar.Progress
? If I understand status bar API correcty, I think we need to reuse same value of the cookie between our progress change invocation.So we need to grab an our new cookie:
and then reuse it until our progress has finished. I really don't know what way is 100% correct, can anyone shed light on it?
if I right about reusing cookie value, I would suggest the following API:
In this design we allowed to use
currentStep = 0
to temporarily hide progress, because animation stops in theDispose
method. Also, both examples in the last episode demonstrates same behaviour with cookie.any thoughs?
Thanks guys!
Beta Was this translation helpful? Give feedback.
All reactions