Color aColor = rStyleSettings.GetHighlightColor(); if ( IsControlForeground() )
aColor = GetControlForeground(); if ( aColor.IsRGBEqual( GetBackground().GetColor() ) )
{ if ( aColor.GetLuminance() > 100 )
aColor.DecreaseLuminance( 64 ); else
aColor.IncreaseLuminance( 64 );
}
GetOutDev()->SetLineColor();
GetOutDev()->SetFillColor( aColor ); /* FIXME: !!! We do not support text output at the moment SetTextColor(aColor); SetTextFillColor();
*/
}
// Make sure the progressbar is actually painted even if the caller is busy with its task, // so the main loop would not be invoked.
Idle aIdle("ProgressBar::SetValue aIdle");
aIdle.SetPriority(TaskPriority::POST_PAINT);
aIdle.Start(); while (aIdle.IsActive() && !Application::IsQuit())
{
Application::Yield();
}
}
}
void ProgressBar::StateChanged( StateChangedType nType )
{ /* FIXME: !!! We do not support text output at the moment if((nType==StateChangedType::Zoom)|| (nType==StateChangedType::ControlFont)) { ImplInitSettings(true,false,false); Invalidate(); } else
*/ if ( nType == StateChangedType::ControlForeground )
{
ImplInitSettings( false, true, false );
Invalidate();
} elseif ( nType == StateChangedType::ControlBackground )
{
ImplInitSettings( false, false, true );
Invalidate();
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.