add an explicit Cancel handler
This commit is contained in:
@@ -163,6 +163,8 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
|
|||||||
aFeaturesLink.SetBackground();
|
aFeaturesLink.SetBackground();
|
||||||
aFeaturesLink.SetClickHdl( LINK( this, AboutDialog, HandleHyperlink ) );
|
aFeaturesLink.SetClickHdl( LINK( this, AboutDialog, HandleHyperlink ) );
|
||||||
|
|
||||||
|
aCancelButton.SetClickHdl( LINK( this, AboutDialog, CancelHdl ) );
|
||||||
|
|
||||||
Color aTextColor( rSettings.GetWindowTextColor() );
|
Color aTextColor( rSettings.GetWindowTextColor() );
|
||||||
aVersionText.SetControlForeground( aTextColor );
|
aVersionText.SetControlForeground( aTextColor );
|
||||||
aCopyrightText.SetControlForeground( aTextColor );
|
aCopyrightText.SetControlForeground( aTextColor );
|
||||||
@@ -288,6 +290,13 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
|
|||||||
SetHelpId( CMD_SID_ABOUT );
|
SetHelpId( CMD_SID_ABOUT );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------
|
||||||
|
IMPL_LINK_NOARG(AboutDialog, CancelHdl)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
IMPL_LINK( AboutDialog, HandleHyperlink, svt::FixedHyperlink*, pHyperlink )
|
IMPL_LINK( AboutDialog, HandleHyperlink, svt::FixedHyperlink*, pHyperlink )
|
||||||
|
@@ -72,7 +72,8 @@ protected:
|
|||||||
public:
|
public:
|
||||||
AboutDialog( Window* pParent, const ResId& rId);
|
AboutDialog( Window* pParent, const ResId& rId);
|
||||||
|
|
||||||
DECL_LINK( HandleHyperlink, svt::FixedHyperlink * );
|
DECL_LINK(CancelHdl, void *);
|
||||||
|
DECL_LINK(HandleHyperlink, svt::FixedHyperlink *);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // #ifndef _ABOUT_HXX
|
#endif // #ifndef _ABOUT_HXX
|
||||||
|
Reference in New Issue
Block a user