Example #1
0
void Progress::MultiCtrlHandler::Refresh ()
{
	// Refresh caption
	_caption.SetText (_dlgData.GetCaption ());

	int min, max, step;
	// Refresh overall meter
	if (_overall.GetRange (min, max, step))
		_overallBar.SetRange (min, max, step);
	int position;
	if (_overall.GetPosition (position))
		_overallBar.StepTo (position);
	if (_overall.GetActivity (_overallActivityStr))
		_overallActivity.SetText (_overallActivityStr);

	// Refresh specific meter
	if (_specific.GetRange (min, max, step))
		_specificBar.SetRange (min, max, step);
	if (_specific.GetPosition (position))
		_specificBar.StepTo (position);
	if (_specific.GetActivity (_specificActivityStr))
		_specificActivity.SetText (_specificActivityStr);

	Win::Dow::Handle dlgWin (GetWindow ());
	dlgWin.Update ();
}
Example #2
0
void Progress::SingleCtrlHandler::Refresh ()
{
	_caption.SetText (_dlgData.GetCaption ());

	int min, max, step;
	if (_channel.GetRange (min, max, step))
		_bar.SetRange (min, max, step);
	int position;
	if (_channel.GetPosition (position))
		_bar.StepTo (position);
	if (_channel.GetActivity (_activityStr))
		_activity.SetText (_activityStr);

	Win::Dow::Handle dlgWin (GetWindow ());
	dlgWin.Update ();
}