Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » how to do to stop progress zip file ?
Re: how to do to stop progress zip file ? [message #57079 is a reply to message #57076] Fri, 21 May 2021 09:31 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hello BetoValle,

You don't have to call WhenProgress. Your fx() function IS the WhenProgress callback:

bool fx(int a,int b){                                                                  <- Gate variants should return boolean value, not integer.
  float f= static_cast<double>(a) / b * 100;
  Cout() <<"avaliando " << a << " " << b << " % " << Format("%.1f%%", f ) << EOL;
  return boolean_condition;                                                           // <---- boolean_condition is up to you to define. If it is true, it will stop progressing. If false (default) it will continue the progress. 
}



Best regards,
Obilvion


[Updated on: Fri, 21 May 2021 10:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Setting a timer to call Ctrl::Refresh in Ctrl::Paint()
Next Topic: TimerCallBack interval resolution
Goto Forum:
  


Current Time: Thu May 16 04:14:23 CEST 2024

Total time taken to generate the page: 0.02502 seconds