private void Button5_MouseHover(object sender, EventArgs e) { ToolTip1.IsBalloon = true; ToolTip1.UseAnimation = true; ToolTip1.ToolTipTitle = ""; ToolTip1.SetToolTip(Button5, "Retrieve book info and staff info from list of books reservation"); }
private void InitTooltip() { ToolTip1.SetToolTip(LinkLabelTweet, _home); ToolTip1.SetToolTip(LinkLabelFollowing, _following); ToolTip1.SetToolTip(LinkLabelFollowers, _followers); ToolTip1.SetToolTip(LinkLabelFav, _favorites); }
private void Button3_MouseHover(object sender, EventArgs e) { ToolTip1.IsBalloon = true; ToolTip1.UseAnimation = true; ToolTip1.ToolTipTitle = ""; ToolTip1.SetToolTip(Button3, "Retrieve Staff info from list of Staffs"); }
private void StateManager_Cleared(object sender, EventArgs e) { this.InvokeSafe(new System.Action(() => { if (Monitor.TryEnter(lpScannedFiles, TIMEOUT)) { try { foreach (ItemControl cnt in lpScannedFiles.Controls) { cnt.Click -= new EventHandler(ImageIconControl_Click); cnt.Updated -= new EventHandler(ImageIconControl_Updated); //cnt.DisposeSf(); ItemControl.SetInstance(cnt); } ToolTip1.RemoveAll(); lpScannedFiles.Controls.Clear(); tbTransferFile.Clear(); m_ScanFileOrganizer.Clear(); m_SendFileOrganizer.Clear(); lblItemsWithErr.Text = null; lblMessage.Text = string.Empty; } finally { Monitor.Exit(lpScannedFiles); } } //m_ControlIndexes.Clear(); })); }
internal void UpdateHotPointTooltip() { // ホットポイントが定義されている場合はツールチップを変更 foreach (var hpoint in SRC.Event.HotPointList) { if (hpoint.Left <= GUI.MouseX && GUI.MouseX < hpoint.Left + hpoint.Width && hpoint.Top <= GUI.MouseY && GUI.MouseY < hpoint.Top + hpoint.Height) { if (hpoint.Caption == "非表示" || string.IsNullOrEmpty(hpoint.Caption)) { break; } if (hpoint.Name != LastHostSpot && !string.IsNullOrEmpty(LastHostSpot)) { break; } // ツールチップの表示 ToolTip1.Show(hpoint.Caption, this, (int)GUI.MouseX, (int)GUI.MouseY); // ここではマウスイベントを処理しつつカーソルの状態を変えるのでグローバルなカーソル状態操作にはしない picMain.Cursor = Cursors.Hand; LastHostSpot = hpoint.Name; return; } } // ホットポイント上にカーソルがなければツールチップを消す HideToolTip(); return; }
private void Button4_MouseHover(object sender, EventArgs e) { ToolTip1.IsBalloon = true; ToolTip1.UseAnimation = true; ToolTip1.ToolTipTitle = ""; ToolTip1.SetToolTip(Button4, "Retrieve book info from Issued books List"); }
private void txtCreateAccountRetypePassword_Leave(object sender, EventArgs e) { String retype_password = txtCreateAccountRetypePassword.Text; // Khi ô Text này rỗng thì sẽ thông báo, và không xử lý if (retype_password == "") { ToolTip1.Show("Sorry, The password is not null", txtCreateAccountRetypePassword); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_RetypePassword.ForeColor = Color.Red; lblResult_RetypePassword.Text = "!"; CreateAccountRetypePassword_Error = true; return; } if (!retype_password.Equals(txtCreateAccountPassword.Text)) { //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_RetypePassword.ForeColor = Color.Red; lblResult_RetypePassword.Text = "!"; lblResult_RetypePassword_.Text = "Retype password is not matched"; lblResult_RetypePassword_.Visible = true; CreateAccountRetypePassword_Error = true; return; } CreateAccountRetypePassword_Error = false; lblResult_RetypePassword.ForeColor = Color.Green; lblResult_RetypePassword.Text = "o"; lblResult_RetypePassword_.ForeColor = Color.Green; lblResult_RetypePassword_.Text = "Retype password is matched"; lblResult_RetypePassword_.Visible = true; }
private void txtCreateAccountPassword_Leave(object sender, EventArgs e) { String password = txtCreateAccountPassword.Text; // Khi ô Text này rỗng thì sẽ thông báo, và không xử lý if (password == "") { ToolTip1.Show("Sorry, The password is not null", txtCreateAccountPassword); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Password.ForeColor = Color.Red; lblResult_Password.Text = "!"; CreateAccountPassword_Error = true; return; } if (password.Length <= 5) { ToolTip1.Show("Sorry, The password is least 6 characters", txtCreateAccountPassword); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Password.ForeColor = Color.Red; lblResult_Password.Text = "!"; CreateAccountPassword_Error = true; return; } lblResult_Password.ForeColor = Color.Green; lblResult_Password.Text = "o"; CreateAccountPassword_Error = false; }
public void ShowDataBaseStatus(Lawyer.Common.CS.ConfigFile.Config c) { try { ToolTip1.SetToolTip(btnRestore, "نصب نشده"); btnRestore.Image = global::WFControls.CS.Properties.Resources.noInstalData24; if (IsCorrectConnection(c)) { btnConfig.Image = global::WFControls.CS.Properties.Resources.Connect; CreateDataBase(c); if (IsInstallDataBase(c)) { if (IsAttachDataBase(c)) { ToolTip1.SetToolTip(btnRestore, "نصب شده"); btnRestore.Image = global::WFControls.CS.Properties.Resources.InstallData24; } } } } catch (Exception) { } }
private void Button1_MouseHover(object sender, EventArgs e) { ToolTip1.IsBalloon = true; ToolTip1.UseAnimation = true; ToolTip1.ToolTipTitle = ""; ToolTip1.SetToolTip(Button2, "Retrieve Staff's Info from Employee List"); }
/// <summary> /// 加载鼠标到关联控件显示信息 /// </summary> private void LoadToolTip() { //绑定控件和显示显示信息 ToolTip1.SetToolTip(picDelete, "删除"); ToolTip1.SetToolTip(picFend, "查询"); ToolTip1.SetToolTip(picUpdate, "修改"); }
/// <summary> /// Прорисовка инвентаря /// </summary> public void UpdateInventory(List<IItem> items) { var itemsCount = items.Count; MaxPages = itemsCount % ItemsPerPage == 0 & itemsCount != 0 ? itemsCount / ItemsPerPage : itemsCount / ItemsPerPage + 1; if (MaxPages < CurrentPage) CurrentPage = MaxPages; _firstItemIndex = ItemsPerPage * (CurrentPage - 1); var itemsOnPage = items.Count <= ItemsPerPage * CurrentPage ? items.Count - _firstItemIndex : ItemsPerPage; PictureBox[] pb = new PictureBox[itemsOnPage]; InventoryPanel.Controls.Clear(); for (int i = 0; i < pb.Length; i++) { pb[i] = new PictureBox { BorderStyle = BorderStyle.FixedSingle, Image = items[i + _firstItemIndex].Image, Size = new Size(45, 45) }; InventoryPanel.Controls.Add(pb[i]); ToolTip1.SetToolTip(InventoryPanel.Controls[i], items[i + _firstItemIndex].ToString()); InventoryPanel.Controls[i].MouseDown += InventoryPanelControls_MouseDown; } }
private void Button2_MouseHover(object sender, EventArgs e) { ToolTip1.IsBalloon = true; ToolTip1.UseAnimation = true; ToolTip1.ToolTipTitle = ""; ToolTip1.SetToolTip(Button2, "Retrieve Student info from Student List"); }
private void TextLink_MouseHover(object sender, EventArgs e) { if (string.IsNullOrEmpty(TipInfoText)) { return; } ToolTip1.SetToolTip(this.textLink, TipInfoText); }
private void PreprocessorText_TextChanged(object sender, EventArgs e) { TextBox t = sender as TextBox; ml_config.imports.PreprocessorDefinitions = t.Text; string tooltip_text = ml_config.imports.ReplaceMacro(this.PreprocessorText.Text); ToolTip1.SetToolTip(PreprocessorText, tooltip_text); }
private void txtCreateAccountEmail_Leave(object sender, EventArgs e) { String email = txtCreateAccountEmail.Text; // Khi ô Text này rỗng thì sẽ thông báo, và không xử lý if (email == "") { ToolTip1.Show("Sorry, The email is not null", txtCreateAccountEmail); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Email.ForeColor = Color.Red; lblResult_Email.Text = "!"; CreateAccountEmail_Error = true; return; } Regex match_email = new Regex(@"^[\w\.]+@[\w]+\.[\w]+"); // ^ bắt đầu bằng chữ, [\w] word (chữ, số, _) \. dấu chấm, + có một hoặc nhiều if (!match_email.IsMatch(email)) { ToolTip1.Show("Sorry, The email is not match format", txtCreateAccountEmail); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Email.ForeColor = Color.Red; lblResult_Email.Text = "!"; CreateAccountEmail_Error = true; return; } lblResult_Email.ForeColor = Color.Green; lblResult_Email.Text = "o"; String checked_result = ""; sent.Write("CheckEmail-Email=" + email); sent.Flush(); //Chứa kết quả khi server phản hồi checked_result = received.ReadLine(); received.DiscardBufferedData(); // Username đã tồn tại if (checked_result.Contains("IsUsed")) { ToolTip1.Show("Sorry, it looks like " + email + " belongs to an existing !", txtCreateAccountEmail); CreateAccountEmail_Error = true; //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Email.ForeColor = Color.Red; lblResult_Email.Text = "!!!"; return; } else if (checked_result.Contains("NotUsed")) { CreateAccountEmail_Error = false; //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Email.Text = "o"; lblResult_Email.ForeColor = Color.Green; return; } }
private void ToolTip_Setup() { ToolTip1.SetToolTip(cboMode, "Set how the text will be animated on the notes."); ToolTip1.SetToolTip(cboSpeed, "Set how fast text effects happen during animations."); ToolTip1.SetToolTip(cboHoldTime, "How long to show the text after animations are done."); ToolTip1.SetToolTip(cboAlign, "Set the text alignment. This is not used for some animations."); ToolTip1.SetToolTip(tbDelim, "Some animations combine all text. This string will be placed between each line of text."); ToolTip1.SetToolTip(tbXoff, "Modify the position of text so it can align with images being used."); ToolTip1.SetToolTip(tbYoff, "Modify the position of text so it can align with images being used."); }
private void AddProduct(string strName, string strDesc, bool classic) { ArrayList chk = _chkProds; ArrayList txt = _txtQtys; if (classic) { chk = _chkProdsClassic; txt = _txtQtysClassic; } CheckBox cb = (CheckBox)chk[0]; TextBox tb; if (cb.Text.Equals("Start")) { cb.Text = strName; ToolTip1.SetToolTip(cb, strDesc); } else { cb = new CheckBox(); tb = new TextBox(); this.fmeProds.Controls.Add(cb); this.fmeProds.Controls.Add(tb); CheckBox cb1 = (CheckBox)chk[chk.Count - 1]; TextBox tb1 = (TextBox)txt[txt.Count - 1]; cb.Text = strName; ToolTip1.SetToolTip(cb, strDesc); cb.Location = new Point(cb1.Left, cb1.Top + HORZ_INC); cb.Size = new Size(cb1.Width, cb1.Height); cb.Visible = true; cb.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); tb.Location = new Point(tb1.Left, tb1.Top + HORZ_INC); tb.Size = new Size(tb1.Width, tb1.Height); tb.Visible = true; tb.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); if (!classic) { this.fmeProds.Height += HORZ_INC; //this.txtOutput.Height += HORZ_INC; this.Height += HORZ_INC; } chk.Add(cb); txt.Add(tb); } }
private void SetLinklabelWeb(string data) { string webtext = _owner.TwitterInstance.PreProcessUrl("<a href=\"" + data + "\">Dummy</a>"); webtext = ShortUrl.Resolve(webtext, false); string jumpto = Regex.Match(webtext, "<a href=\"(?<url>.*?)\"").Groups["url"].Value; ToolTip1.SetToolTip(LinkLabelWeb, jumpto); LinkLabelWeb.Tag = jumpto; LinkLabelWeb.Text = data; }
private void IncludePathText_TextChanged(object sender, EventArgs e) { TextBox t = sender as TextBox; ml_config.imports.IncludePath = t.Text; string tooltip_text; CheckResult chk = ml_config.imports.CheckIncludePath(out tooltip_text); SetCheckInfo(IncludePathCheck, chk, tooltip_text); tooltip_text = ml_config.imports.ReplaceMacro(this.IncludePathText.Text); ToolTip1.SetToolTip(IncludePathText, tooltip_text); }
private void DependsText_TextChanged(object sender, EventArgs e) { TextBox t = sender as TextBox; ml_config.imports.Dependencies = t.Text; string tooltip_text; CheckResult chk = ml_config.imports.CheckDependencies(out tooltip_text); SetCheckInfo(DependsCheck, chk, tooltip_text); tooltip_text = ml_config.imports.ReplaceMacro(this.DependsText.Text); ToolTip1.SetToolTip(DependsText, tooltip_text); }
private void WebBrowser_StatusTextChanged(object sender, EventArgs e) { var browser = (WebBrowser)sender; if (browser.StatusText.StartsWith("http")) { ToolTip1.Show(browser.StatusText, this, PointToClient(MousePosition)); } else if (string.IsNullOrEmpty(DescriptionBrowser.StatusText)) { ToolTip1.Hide(this); } }
private void Form1_Load(object sender, EventArgs e) { BasePath = Properties.Settings.Default.bs; if (BasePath == "not set") { MessageBox.Show("Select a folder to begin sorting"); choose_new_basepath(); } else { SetBasePath(BasePath); } ToolTip1.SetToolTip(CheckBox1, "Enable image moving by clicking on the image to the selected category"); }
private void BackRestore_Load(object sender, EventArgs e) { ToolTip1.SetToolTip(btnStart, "Start"); ToolTip1.SetToolTip(btnCancel, "Cancel"); ToolTip1.SetToolTip(btnBrows, "مشخص کردن فایل"); ////////ToolTip1.SetToolTip(btnClose, "نمایش جزئیات"); //pnlDetail.Visible = false; lblMessage.Text = string.Empty; }
private void ImageIconControl_Updated(object sender, EventArgs e) { ItemControl cnt = (ItemControl)sender; var item = cnt.Item; if (item == null) { return; } this.InvokeSafe(new System.Action(() => { ToolTip1.SetToolTip(cnt, (cnt.Item.State == StateManager.eState.Err ? cnt.Item.Message : cnt.Item.ToString())); })); }
private void LockUnlockUserField() { if (!string.IsNullOrEmpty(MunisUser.Number)) { CurrentUserTextBox.BackColor = Colors.EditColor; CurrentUserTextBox.ReadOnly = true; ToolTip1.SetToolTip(CurrentUserTextBox, "Munis Linked Employee - Double-Click to change."); } else { CurrentUserTextBox.BackColor = Color.Empty; CurrentUserTextBox.ReadOnly = false; ToolTip1.SetToolTip(CurrentUserTextBox, ""); } }
public PictureBox AddActionImage(PictureBox p, string tooltip) { p.Size = new Size(16, 16); p.BackColor = Color.Transparent; ToolTip1.SetToolTip(p, tooltip); action_images.Add(p); Controls.Add(p); p.MouseEnter += new EventHandler(ContactItem_MouseEnter); p.MouseLeave += new EventHandler(ContactItem_MouseLeave); return(p); }
public void UpdateSellingItems(List<IItem> items) { _sellingItems = items; SellingItemsPanel.Controls.Clear(); for (int i = 0; i < items.Count; i++) { var pictureBox = new PictureBox { BorderStyle = BorderStyle.FixedSingle, Image = items[i].Image, Size = new Size(45, 45) }; SellingItemsPanel.Controls.Add(pictureBox); ToolTip1.SetToolTip(SellingItemsPanel.Controls[i], items[i].ToString()); SellingItemsPanel.Controls[i].MouseDown += SellingItemsPanelControls_MouseDown; } }
private void SetToolTip(string toReceive) { ToolTip1.SetToolTip(ComboBoxTasks, $"Выбор команды для редактирования и отправки на {toReceive}"); ToolTip1.SetToolTip(TextBoxURLSend, $"Сетевой адрес контейнера команды посылаемой на {toReceive}"); ToolTip1.SetToolTip(TextBoxURLReceive, $"Сетевой адрес контейнера команды пришедшей от {toReceive}"); ToolTip1.SetToolTip(TextBoxPipeServerStatus, $"Статус контейнера для команды посылаемой на {toReceive}"); ToolTip1.SetToolTip(SendTextBox, $"Текст команды посылаемой на {toReceive} в формате XML"); ToolTip1.SetToolTip(ListTaskSend, $"Список всех команд посылаемых на {toReceive} в текущем сеансе работы"); ToolTip1.SetToolTip(DataGridSend, $"Значения параметров команды посылаемой {toReceive}"); ToolTip1.SetToolTip(ButtonSend, $"Послать {toReceive} выбранную команду для исполнения"); ToolTip1.SetToolTip(TimeStampTextBox, $"Время получения команды от {toReceive}"); ToolTip1.SetToolTip(ReceiveTextBox, $"Текст команды пришедшей от {toReceive} в формате XML"); ToolTip1.SetToolTip(DataGridReceive, $"Значения параметров команды принятой от {toReceive}"); ToolTip1.SetToolTip(ListTaskReceive, $"Список всех пришедших команд от {toReceive} в текущем сеансе работы"); ToolTip1.SetToolTip(TextBoxError, $"Текст ошибки соединения с {toReceive} по сети"); }
private void txtCreateAccountName_Leave(object sender, EventArgs e) { String name = txtCreateAccountName.Text.Trim(); // Khi ô Text này rỗng thì sẽ thông báo, và không xử lý if (name == "") { ToolTip1.Show("Sorry, The name is not null", txtCreateAccountName); //Xử lý cho thay đổi label kết quả kế bên textbox lblResult_Name.ForeColor = Color.Red; lblResult_Name.Text = "!"; CreateAccountName_Error = true; return; } lblResult_Name.ForeColor = Color.Green; lblResult_Name.Text = "o"; CreateAccountName_Error = false; }