ToolTip.ReshowDelay Özellik

Tanım

İşaretçi bir denetimden diğerine taşınırken sonraki Araç İpucu pencereleri görünmeden önce geçmesi gereken süreyi alır veya ayarlar.

public:
 property int ReshowDelay { int get(); void set(int value); };
public int ReshowDelay { get; set; }
member this.ReshowDelay : int with get, set
Public Property ReshowDelay As Integer

Özellik Değeri

Int32

Sonraki Araç İpucu pencerelerinin görünmesi için gereken milisaniye cinsinden süre.

Örnekler

Aşağıdaki kod örneği sınıfının bir örneğini ToolTip oluşturur ve örneği, örneğin oluşturulduğu örnekle Form ilişkilendirir. Kod daha sonra , InitialDelayve ReshowDelaygecikme özelliklerini AutoPopDelaybaşlatır. Sınıfın örneği ek olarak, formun ToolTip etkin olup olmamasına bakılmaksızın ToolTip metninin görüntülenmesini sağlamak için özelliğini true olarak ayarlarShowAlways. Son olarak, örnek ToolTip metnini formdaki iki denetimle ilişkilendirir: a Button ve CheckBox. Kod örneği, örnekte tanımlanan yöntemin adlı bir denetimi ve adlı button1 checkBox1, bir Button denetimi içeren bir CheckBox içinde Form bulunması ve yönteminin oluşturucusundan çağrılmış Formolmasını gerektirir.

// This example assumes that the Form_Load event handling method
// is connected to the Load event of the form.
void Form1_Load( Object^ sender, System::EventArgs^ e )
{
   // Create the ToolTip and associate with the Form container.
   ToolTip^ toolTip1 = gcnew ToolTip;
   
   // Set up the delays for the ToolTip.
   toolTip1->AutoPopDelay = 5000;
   toolTip1->InitialDelay = 1000;
   toolTip1->ReshowDelay = 500;
   // Force the ToolTip text to be displayed whether or not the form is active.
   toolTip1->ShowAlways = true;
   
   // Set up the ToolTip text for the Button and Checkbox.
   toolTip1->SetToolTip( this->button1, "My button1" );
   toolTip1->SetToolTip( this->checkBox1, "My checkBox1" );
}
// This example assumes that the Form_Load event handling method
// is connected to the Load event of the form.
private void Form1_Load(object sender, System.EventArgs e)
{
   // Create the ToolTip and associate with the Form container.
   ToolTip toolTip1 = new ToolTip();

   // Set up the delays for the ToolTip.
   toolTip1.AutoPopDelay = 5000;
   toolTip1.InitialDelay = 1000;
   toolTip1.ReshowDelay = 500;
   // Force the ToolTip text to be displayed whether or not the form is active.
   toolTip1.ShowAlways = true;
      
   // Set up the ToolTip text for the Button and Checkbox.
   toolTip1.SetToolTip(this.button1, "My button1");
   toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
}
' This example assumes that the Form_Load event handling method
' is connected to the Load event of the form.
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles MyBase.Load
   ' Create the ToolTip and associate with the Form container.
   Dim toolTip1 As New ToolTip()
   
   ' Set up the delays for the ToolTip.
   toolTip1.AutoPopDelay = 5000
   toolTip1.InitialDelay = 1000
   toolTip1.ReshowDelay = 500
   ' Force the ToolTip text to be displayed whether or not the form is active.
   toolTip1.ShowAlways = True
   
   ' Set up the ToolTip text for the Button and Checkbox.
   toolTip1.SetToolTip(Me.button1, "My button1")
   toolTip1.SetToolTip(Me.checkBox1, "My checkBox1")
End Sub

Açıklamalar

özelliğiyle ReshowDelay , önceki bir Araç İpucu penceresi görüntülendikten ToolTip sonra bir Araç İpucu penceresi görüntülenmeden önce bekleme süresini kısaltabilir veya uzatabilirsiniz. Bir Araç İpucu penceresi ilk kez görüntülendiğinde, Araç İpucu penceresinin gösterilmesinden önce uygulanacak gecikmeyi belirlemek için özelliğinin değeri InitialDelay kullanılır. Araç İpucu penceresi şu anda görüntüleniyorsa ve kullanıcı işaretçiyi Araç İpucu penceresi görüntüleyen başka bir denetime taşırsa, yeni denetim için Araç İpucu gösterilmeden önce özelliğin değeri ReshowDelay kullanılır. Özelliğinde belirtilen gecikmenin kullanılabilmesi için önceki denetimdeki Araç İpucu penceresinin ReshowDelay yine de görüntülenmesi gerekir; aksi takdirde InitialDelay özellik değeri kullanılır.

ToolTip pencereleri için tutarlı bir gecikme düzenine sahip olmak istiyorsanız özelliğini ayarlayabilirsiniz AutomaticDelay . AutomaticDelay özelliği, , ReshowDelayve InitialDelay özelliklerini tek bir saat değerine göre başlangıç değerlerine ayarlarAutoPopDelay. AutomaticDelay Özellik her ayarlandığında özellik, özellik değerinin ReshowDelay 1/5'i AutomaticDelay olarak ayarlanır. AutomaticDelay Özellik ayarlandıktan sonra, varsayılan değeri geçersiz kılarak özelliği bağımsız olarak ayarlayabilirsinizReshowDelay.

Şunlara uygulanır

Ayrıca bkz.