PDA

View Full Version : سوال: مشکل با super tooltip



shecarchi
چهارشنبه 28 مهر 1389, 19:54 عصر
سلام دوستان . روش استفاده از super tooltip در کامپوننت DotNetBar چطوریه؟ میخوام برای buttonitem هایی که تو ribbon control گذاشتم tooltip بزارم . tooltip معمولی هم جواب نداد

shecarchi
چهارشنبه 28 مهر 1389, 21:00 عصر
مشکل با کمک کد زیر حل شد



Creating the SuperToolTip.

DevComponents.DotNetBar.SuperTooltip sTip = new DevComponents.DotNetBar.SuperTooltip();

Assigning the SuperToolTip's values to a control.

sTip.SetSuperTooltip(this.buttonX1, new DevComponents.DotNetBar.SuperTooltipInfo("DevComponents", "", "Beautiful .Net controls for fast and easy programming", null, null, DevComponents.DotNetBar.eTooltipColor.Apple)) ;

Assigning an image to the body of the SuperToolTip.

sTip.SetSuperTooltip(this.buttonX1, new DevComponents.DotNetBar.SuperTooltipInfo("DevComponents", "", "Beautiful .Net controls for fast and easy programming", global::WindowsApplication2.Properties.Resources.Y ourResourceImage, null, DevComponents.DotNetBar.eTooltipColor.Apple)) ;