Tooltip in a Custom Component

Stimulsoft Reports.NET discussion
Post Reply
Damian
Posts: 7
Joined: Tue May 11, 2010 8:28 am
Location: CH

Tooltip in a Custom Component

Post 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
Damian
Posts: 7
Joined: Tue May 11, 2010 8:28 am
Location: CH

Tooltip in a Custom Component

Post 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()
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Tooltip in a Custom Component

Post 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.
Damian
Posts: 7
Joined: Tue May 11, 2010 8:28 am
Location: CH

Tooltip in a Custom Component

Post by Damian »

This did work.

Thank you.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Tooltip in a Custom Component

Post by Andrew »

Ok! Thank you for letting us know!
Damian
Posts: 7
Joined: Tue May 11, 2010 8:28 am
Location: CH

Tooltip in a Custom Component

Post 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")]
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Tooltip in a Custom Component

Post by Andrew »

Thank you for posting your comment here!
Post Reply