Beispiel #1
0
//---------------------------------------------------------------------------
void __fastcall TTVPMainForm::ApplicationRestore(TObject *Sender)
{
	ApplicationNotMinimizing = true;

	// set sound volume
	TVPResetVolumeToAllSoundBuffer();
}
Beispiel #2
0
//---------------------------------------------------------------------------
void __fastcall TTVPMainForm::ApplicationDeactivate(TObject *Sender)
{
	ApplicationActivating = false;

	TVPHideModalAtAppDeactivate();
	TVPHideFontSelectFormAtAppDeactivate();

	TVPMinimizeFullScreenWindowAtInactivation();


	// fire compact event
	TVPDeliverCompactEvent(TVP_COMPACT_LEVEL_DEACTIVATE);

	// set application-level stay-on-top state
	if(ApplicationStayOnTop)
		SetWindowPos(Application->Handle,HWND_TOPMOST ,0,0,0,0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE);
	else
		SetWindowPos(Application->Handle,HWND_NOTOPMOST ,0,0,0,0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE);

	// set sound volume
	TVPResetVolumeToAllSoundBuffer();

	// trigger System.onDeactivate event
	TVPPostApplicationDeactivateEvent();
}
Beispiel #3
0
//---------------------------------------------------------------------------
void __fastcall TTVPMainForm::ApplicationMinimize(TObject *Sender)
{
	// fire compact event
	ApplicationNotMinimizing = false;

	TVPDeliverCompactEvent(TVP_COMPACT_LEVEL_MINIMIZE);

	// set sound volume
	TVPResetVolumeToAllSoundBuffer();
}
Beispiel #4
0
//---------------------------------------------------------------------------
void __fastcall TTVPMainForm::ApplicationActivate(TObject *Sender)
{
	ApplicationActivating = true;

	TVPRestoreFullScreenWindowAtActivation();
	TVPShowModalAtAppActivate();
	TVPShowFontSelectFormAtAppActivate();
	TVPResetVolumeToAllSoundBuffer();

	// trigger System.onActivate event
	TVPPostApplicationActivateEvent();
}
Beispiel #5
0
void tTVPApplication::OnActivate( HWND hWnd )
{
	if( hWnd != GetMainWindowHandle() ) return;

	application_activating_ = true;
	
	TVPRestoreFullScreenWindowAtActivation();
	TVPResetVolumeToAllSoundBuffer();

	// trigger System.onActivate event
	TVPPostApplicationActivateEvent();
}
Beispiel #6
0
void tTVPApplication::OnDeactivate( HWND hWnd )
{
	if( hWnd != GetMainWindowHandle() ) return;

	application_activating_ = false;
	
	TVPMinimizeFullScreenWindowAtInactivation();
	
	// fire compact event
	TVPDeliverCompactEvent(TVP_COMPACT_LEVEL_DEACTIVATE);

	// set sound volume
	TVPResetVolumeToAllSoundBuffer();

	// trigger System.onDeactivate event
	TVPPostApplicationDeactivateEvent();
}