Hi ,
I am able to set the tooltip ( delay time )for textbox as i required.
here is my code
private Infragistics.Win.ToolTip tTip= new Infragistics.Win.ToolTip (this);
protected override void OnMouseHover(EventArgs e)
{
if (this.Text != string.Empty){tTip.ToolTipText = this.Text.ToString();tTip.AutoPopDelay = 500000; // able to set the delay timetTip.Show();}
}
protected override void OnMouseLeave(EventArgs e){
base.OnMouseLeave(e);tTip.Hide();
How can i set the delay time of tooltip in ultracombocell.
her is my code
protected override void OnInitializeRow(Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if (!e.ReInitialize) { e.Row.Cells[this.DisplayMember].ToolTipText= e.Row.Cells[this.DisplayMember].Value.ToString(); } base.OnInitializeRow(e); }
Please let me know how we can set the delaytime as we have done for textbox?
if we are able to set the delay time using ultratooltipmanager please provide me the code. Its very urgent.
Thanks
Subbu.
Hello Nooruddin,
I already saw your question in that forum thread : http://community.infragistics.com/forums/p/67801/346067.aspx#
I`ll create a small sample for you and will update you soon. Let me know if you have any questions.
Regards
AM facing issue while selecting Item from SwfComboBox. As soon as i perform the select operation, A window Pops up and QTP Just waits to complete the select operation until i Click Cancel Manually. Is there any way that i can handle or End the Select operation immediately after selecting..
For Eg.
While Executing the below statement, The QTP performs the operation the selection but doesnt end the execution of the statement as there is a window which pops up immediately and i have no clue why the statement is still executing after selection. There is no other statement apart from this line of code.
SwfWindow("").SwfComboBox("").Select sTestData
Nooruddin
The Combo does not expose any way to control the delay of the tooltips. You might be able to achieve this with UltraToolTipManager, but I tried it out and I found it to be very difficult for a number of reasons.
For one thing, tooltips are handled by control - so there's no way to assign a tooltip to a specific cell. So you would need to handle the MouseMove event and dynamically change the ToolTip based on the current cell the mouse is over. You could handle this easily enough using the UIElements of the control. You could get the cell and then either clear or set the tooltip on the UltraCombo.
But this won't work the way you want, because the ToolTipManager will not detect the dropdown area as part of the control. The tooltip will only display when the mouse is over the edit portion.
You could get around this by explicitly calling the ShowToolTip method. But this will show the tooltip immediately with no delay. So you would have to set up your own timer to handle the delay.
This gets further complicated by the fact that MouseMove will fire every time the mouse moves, even if the mouse has not moved out of the same cell. So this means that you will end up constantly setting and re-setting the tooltip for the same control every time the mouse moves. So to avoid this, you would have to store the last cell you applied the tooltip to and bail out if you get the same cell again.
Hi Mike,
Thanks for your replay.
I am taking about "cell in the UltraCombo control list" . Could you please suggest me the code, for the same.
i am ok with my present functionality, setting up tooltip for each cell in the list, expect tooltip delay ( default it is display tooltip for 8 sec, how can i set it to 10 min) .
e.Row.Cells[this.DisplayMember].ToolTipText= e.Row.Cells[this.DisplayMember].Value.ToString();
How can i set the tooltip for a cell using UltraToolTipManager ??
Thanks,
Hi Subbu,
What exactly do you mean by "an ultracombocell?" Are you talking about a cell in the WinGrid which drops down a list? Or a cell in the UltraCombo control's list portion?
Either way, you cannot use the ToolTipText property for this. You would have to turn off the ToolTips on the control itself and use an UltraToolTipManager and provide tooltips for the cell yourself.