Example #1
0
// ****************************************************************************
//
//  Function Name:	RCursor::SetCursor( )
//
//  Description:		Set the cursor to have the given ID
//
//  Returns:			Nothing
//
//  Exceptions:		None
//
// ****************************************************************************
//
void	RCursor::SetCursor( YResourceId cursorId )
	{
	//	Assume that if the cursor is the same, it is already being used
	if (cursorId != m_CursorId)
		{
		YResourceCursor	resource = GetResourceManager().GetResourceCursor( cursorId );
		if (resource != NULL)
			MacWinDos( ::SetCursor( resource ), ::SetCursor( resource ), xxx );
		m_CursorId = cursorId;
		}
	}
Example #2
0
// ****************************************************************************
//
//  Function Name:	RAlert::AlertUser( )
//
//  Description:		Alert the user of a problem with an Alert and an OK button
//							Retrieve the message from a resource file.
//
//  Returns:			Nothing
//
//  Exceptions:		None
//
// ****************************************************************************
//
void	RAlert::AlertUser( LPCSZ lpszAlert )
	{
	YAlertFlags	flags = MacWinDos( 0, MB_ICONSTOP|MB_OK, xxx );
	
	// Note (DCS) any error messages come through after the resource
	// manager has been shutdown will contain empty strings, don't
	// display these.
	if ( strlen(lpszAlert) > 0 )
		DisplayMessage( flags, lpszAlert );
	else
		TRACE( "RAlert::AlertUser called with an empty string. Resource manager already gone??\n" );
	}
Example #3
0
// ****************************************************************************
//
//  Function Name:	RAlert::AskUser( )
//
//  Description:		Ask the user a question with an inform icon and OK
//							button.
//							Use the given message.
//
//  Returns:			kAlertYes, kAlertNo, or kAlertCancel
//
//  Exceptions:		None
//
// ****************************************************************************
//
YAlertValues	RAlert::AskUser( LPCSZ lpszInform )
	{
	YAlertFlags	flags = MacWinDos( 0, MB_ICONINFORMATION|MB_OKCANCEL, xxx );
	return DisplayMessage( flags, lpszInform );
	}
Example #4
0
// ****************************************************************************
//
//  Function Name:	RAlert::ConfirmUser( )
//
//  Description:		Ask the user a question with an Alert and Yes/No/Cancel
//							buttons.
//							Use the given message.
//
//  Returns:			kAlertYes, kAlertNo, or kAlertCancel
//
//  Exceptions:		None
//
// ****************************************************************************
//
YAlertValues	RAlert::ConfirmUser( LPCSZ lpszConfirm )
	{
	YAlertFlags	flags = MacWinDos( 0, MB_ICONQUESTION|MB_YESNOCANCEL, xxx );
	return DisplayMessage( flags, lpszConfirm );
	}
Example #5
0
// ****************************************************************************
//
//  Function Name:	RAlert::QueryUser( )
//
//  Description:		Ask the user a question with an Alert and Yes/No buttons.
//							Use the given message.
//
//  Returns:			kAlertYes or kAlertNo
//
//  Exceptions:		None
//
// ****************************************************************************
//
YAlertValues	RAlert::QueryUser( LPCSZ lpszQuery )
	{
	YAlertFlags	flags = MacWinDos( 0, MB_ICONQUESTION|MB_YESNO, xxx );
	return DisplayMessage( flags, lpszQuery );
	}
Example #6
0
// ****************************************************************************
//
//  Function Name:	RAlert::WarnUser( )
//
//  Description:		Warn the user of a problem with an Alert and an OK
//							and Cancel button.
//							Retrieve the message from a resource file.
//
//  Returns:			kAlertOk or kAlertCancel
//
//  Exceptions:		None
//
// ****************************************************************************
//
YAlertValues	RAlert::WarnUser( LPCSZ lpszWarning )
	{
	YAlertFlags	flags = MacWinDos( 0, MB_ICONSTOP|MB_OKCANCEL, xxx );
	return DisplayMessage( flags, lpszWarning );
	}
Example #7
0
// ****************************************************************************
//
//  Function Name:	RCursor::HideCursor( )
//
//  Description:		If the cursor count is > 0, show the cursor
//
//  Returns:			Nothing
//
//  Exceptions:		None
//
// ****************************************************************************
//
void	RCursor::HideCursor( )
	{
	MacWinDos( ::HideCursor(), ::ShowCursor( FALSE ), xxx );
	}
Example #8
0
// ****************************************************************************
//
//  Function Name:	RCursor::ShowCursor( )
//
//  Description:		Call the system ShowCursor routine
//
//  Returns:			Nothing
//
//  Exceptions:		None
//
// ****************************************************************************
//
void	RCursor::ShowCursor( )
	{
	MacWinDos( ::ShowCursor(), ::ShowCursor( TRUE ), xxx );
	}