Home → Active Query Builder → Setting a tooltip for the DiagramObject
Setting a tooltip for the DiagramObject
|
Hi, Can you tell me if its possible to set a tooltip for the Table diagramObject in the DiagramPane, As I couldn't find a proerty to set it. Many thanks - RIshni |
|
Harindya
| email
June 1 2012, 04:55 AM |
|
There are no tooltips for diagram objects. But you can implement them yourself. Use ControlCreated and ControlDestroying event to add/remove appropriate event handlers or inject you own control initialization code. private void queryBuilder1_ControlCreated(ControlOwner owner, Control control) { if (control is DataSourceControl) { DataSourceControl dsc = (DataSourceControl) control; dsc.MouseMove += dsc_MouseMove; } } private void queryBuilder1_ControlDestroying(ControlOwner owner, Control control) { if (control is DataSourceControl) { DataSourceControl dsc = (DataSourceControl) control; dsc.MouseMove -= dsc_MouseMove; // remove event handler to avoid memory leak } } void dsc_MouseMove(object sender, MouseEventArgs e) { } |
|
Eugene Starkov
| email
3 days, 22 hours since original post |
