Page 1 of 1

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 2:31 am
by Damian
Good morning,

I have built a custom component to display generated maps. I extended the StiView class.

How can i set a text and an image for those big tooltips in the designer?

Is it possible to get a reference the dataAdapterService (we also have a custom one) in the custom component? I only could get the Report.Dictionary.Databases but couldn't find the AdapterService.

Damian

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 5:03 am
by Damian
found it
Is it possible to get a reference the dataAdapterService (we also have a custom one) in the custom component? I only could get the Report.Dictionary.Databases but couldn't find the AdapterService.
Report.Dictionary.DataSources[0].GetDataAdapter()

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 6:27 am
by Andrew
Hello,

You can only add a description of the component in SuperToolTip without an image. To do this you need to add in the localization text in the language file. Example:

My ToolTip ...


Thank you.

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 6:39 am
by Damian
This did work.

Thank you.

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 6:42 am
by Andrew
Ok! Thank you for letting us know!

Tooltip in a Custom Component

Posted: Fri Jun 18, 2010 7:46 am
by Damian
I found a way to add an image to the supertooltip.

declare this attribute to MyCustomComponent class

[StiSuperToolTipBitmap(typeof(MyCustomComponent), "MyCustomComponent.MyImage32.PNG")]

Tooltip in a Custom Component

Posted: Sat Jun 19, 2010 11:42 pm
by Andrew
Thank you for posting your comment here!