void HelpLabel_MouseClick(object sender, MouseEventArgs e)
{
Point pt = new Point(Width,0);
//--- Popup Help Message ---//
String message = "The Help Key has not been set for this item.";
if( !String.IsNullOrEmpty( helpMessageKey ) )
message = MessageManager.getMessage(helpMessageKey);
string newMessageText = HelpMessageBox.Show( message,
"Information",
HelpMessageBox.enumMessageIcon.Information,
HelpMessageBox.enumMessageButton.OK, this.PointToScreen(pt));
if ( HelpMessageBox.EditMode //--- Make sure we are in edit mode ---//
&& !String.IsNullOrEmpty( helpMessageKey ) //--- Must have a help message key set ---//
&& !newMessageText.Equals(message)) //--- Make sure the message actually changed ---//
{ //----------------------------------------------//
MessageManager.saveMessage( helpMessageKey, newMessageText );
}
}