tools::Rectangle aRect( aPos, Size() ); if (!pMenu->GetHelpText(nId).isEmpty())
Help::ShowBalloon( pMenuWindow, aPos, aRect, pMenu->GetHelpText( nId ) ); else
{ // give user a chance to read the full filename
sal_uLong oldTimeout=ImplChangeTipTimeout( 60000, pMenuWindow ); // call always, even when strlen==0 to correctly remove tip
Help::ShowQuickHelp( pMenuWindow, aRect, pMenu->GetTipHelpText( nId ) );
ImplChangeTipTimeout( oldTimeout, pMenuWindow );
}
bDone = true;
} elseif ( ( rHEvt.GetMode() &HelpEventMode::QUICK ) && pMenuWindow )
{
Point aPos = rHEvt.GetMousePosPixel();
tools::Rectangle aRect( aPos, Size() ); // give user a chance to read the full filename
sal_uLong oldTimeout=ImplChangeTipTimeout( 60000, pMenuWindow ); // call always, even when strlen==0 to correctly remove tip
Help::ShowQuickHelp( pMenuWindow, aRect, pMenu->GetTipHelpText( nId ) );
ImplChangeTipTimeout( oldTimeout, pMenuWindow );
bDone = true;
} elseif ( rHEvt.GetMode() & HelpEventMode::CONTEXT )
{ // is help in the application selected
Help* pHelp = Application::GetHelp(); if ( pHelp )
{ // Check if there is a Help ID available, or else use // the command URL
OUString aCommand = pMenu->GetItemCommand( nId );
OUString aHelpId;
// If no entry is selected, use the general menu Help ID if (nId <= 0)
aHelpId = pMenu->GetHelpId(); else
aHelpId = pMenu->GetHelpId(nId);
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.