ToolTip.ReshowDelay Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İş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
Milisaniye cinsinden, sonraki Araç İpucu pencerelerinin görünmesi için gereken 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 içinde oluşturulduğu örnekle Form ilişkilendirir. Kod daha sonra , InitialDelayve ReshowDelaygecikme özelliklerini AutoPopDelaybaşlatır. Ayrıca, sınıfın örneği, formun ToolTip etkin olup olmamasına bakılmaksızın ToolTip metninin görüntülenmesini etkinleştirmek için özelliğini true olarak ayarlarShowAlways. Son olarak, örnek ToolTip metnini bir formdaki iki denetimle ilişkilendirir: a Button ve .CheckBox Kod örneği, örnekte tanımlanan yöntemin adlı bir denetimi ve adlı bir denetimi içeren bir CheckBoxcheckBox1, içinde Form yer aldığını ve yönteminin oluşturucusundan çağrıldığını Formgerektirir.Buttonbutton1
// 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, tooltip penceresi ilk kez gösterilmeden ö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. Özellikte 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 ilk değerlere ayarlarAutoPopDelay. AutomaticDelay Özellik her ayarlandığında özellik, ReshowDelay özellik değerinin 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.