Tooltips using DevExpress

Add-in Express™ Support Service
That's what is more important than anything else

Tooltips using DevExpress
 
Albert Siagian




Posts: 86
Joined: 2012-05-25
Hello,

Last year I asked this question and has been answered.

http://www.add-in-express.com/forum/read.php?FID=5&TID=10920

this.GetType().InvokeMember("SetState", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.Instance, null, this, new object[] { 524288, false });

Now I can't get same solution work. It has several differences as follows:
1) Now I am using UserControl, and use Advance Excel Task Pane on top of it.
2) The tooltip that I need is on Button control and toolbar (bar manager) control.

I put that solution in both Userontrol and Advance Task Pane's Init. I use DevExpress 13.2.5, with VS 2013 and Office 2010 32-bit.

Please let me know if you can find solution.

Thanks
Albert
Posted 18 Dec, 2013 08:01:53 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Hello Albert,

Could you please send us a demo project? Please find the support email address in {Add-in Express installation folder}\readme.txt. And make sure your email contains a link to this topic.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Dec, 2013 02:49:46 Top
Muhamed Ali




Posts: 9
Joined: 2013-07-08
Line below put in ADXOlForm subclass constructor (your previous thread) works form me. I'm developing Outlook Add-in with Devexpress controls.

this.GetType().InvokeMember("SetState", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.Instance, null, this, new object[] { 524288, false });
Posted 20 Dec, 2013 03:13:18 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Thank you, Muhamed! Many thanks! Just great!

Hello Albert,

Does it help?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2013 03:30:03 Top
Albert Siagian




Posts: 86
Joined: 2012-05-25
Hello Muhamed & Andrei,

Thanks for your reply. Still not working. Forget to tell you that I use Excel Advance Task pane.

The structure is a bit complicated:
1) Top layer is Excel Advance Task Pane
2) Underneath is UserControl contains TabPages (DevExpress control)
3) Underneath each tab pages, there is another UserControl (One UserControl per tab)
4) The toolbar is on second UserControl (#3)



Imports System.Runtime.InteropServices
Imports AddinExpress.XL
  
Public Class MyExcelAdvanceTaskPane

  Public Sub New()
    MyBase.New()

    InitializeComponent()
    Me.[GetType]().InvokeMember("SetState", System.Reflection.BindingFlags.NonPublic Or System.Reflection.BindingFlags.InvokeMethod Or System.Reflection.BindingFlags.Instance, Nothing, Me, New Object() {524288, False})

  End Sub

End Class



Regards.
Albert
Posted 20 Dec, 2013 05:12:17 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Hello Albert,

Could you please send us a project demonstrating the issue?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2013 06:41:09 Top
Albert Siagian




Posts: 86
Joined: 2012-05-25
Hello Andrei,

It is now working, but only if I do following sequence:
1) Load Excel and Add-in (at this stage, tooltip doesn't show up)
2) Switch/click to another open application (i.e. Visual Studio, Notepad). No need to to anything here.
3) Switch back to Excel and the add-in. Now the tooltip shows up.

Are you aware of such strange behavior, and the solution ? Do you still need me to send the project for investigation ?

Regards.
Albert
Posted 20 Dec, 2013 07:01:43 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Albert Siagian writes:
Do you still need me to send the project for investigation ?


Yes.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2013 07:37:14 Top
Albert Siagian




Posts: 86
Joined: 2012-05-25
Hello Andrei,

Already send the project via mail.

Regards.
Albert
Posted 20 Dec, 2013 08:48:24 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Albert,

We've received it. Thank you.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2013 08:55:26 Top