Exemplo n.º 1
0
 protected override void WndProc(ref Message AMessage)
 {
     base.WndProc(ref AMessage);
     if (AMessage.Msg == FEndRenameMessage)
     {
         if (FRenameHover != null)
         {
             FRenameHover.Dispose();
             FRenameHover = null;
         }
     }
 }
Exemplo n.º 2
0
 private void RenameMenuClicked(object ASender, EventArgs AArgs)
 {
     if (FRenameHover == null)
     {
         FRenameHover           = new RenameTextBox();
         FRenameHover.Text      = Object.Description;
         FRenameHover.OnSave   += new EventHandler(RenameSave);
         FRenameHover.OnCancel += new EventHandler(RenameCancel);
         FRenameHover.AutoSize  = false;
         Controls.Add(FRenameHover);
         FRenameHover.Focus();
     }
 }