regarding to OWC (SpreadSheet) toolbar TooltipText has some problem

M

Microsoft News

Hi,
i am customizing toolbar of spreadsheet (owc). I have added custom button on
toolbar.
I have seted tooltip for perticular custom button.
When I calling function to add new custom button to toolbar on
window_onload() procedure.tool tips not appears. if i call trough some input
button its come first and when i click on Speadsheet area it not comes.
I also downloaded some Sample Code from msdn. That also have same problems.

following is my code segment.
Sub AddTips()

Dim tb

Dim btnNewButton

Dim Spreadsheet

Dim iNumButtons


Set Spreadsheet = document.getElementById("Spreadsheet")

Spreadsheet.Refresh

Set tb = Spreadsheet.Toolbar

iNumButtons = tb.Buttons.Count

On Error Resume Next

Set btnNewButton = tb.Buttons.Add(iNumButtons, "cmdCreateView","Creer Vue",
tbrDefault,10)

' Set the tool tip text.

btnNewButton.ToolTipText = "Create view"

iNumButtons = iNumButtons + 1

' Add a separator after the custom button.

tb.Buttons.Add iNumButtons, , , 3

End Sub



Send email to (e-mail address removed)
 
A

Alvin Bruney [MVP]

this is a known bug. the workaround is to use a settimeout function to call
your procedure
settimeout("addtips()", 200). this provides internet explorer some time to
initialize the window before adding the tips
 
A

Alvin Bruney [MVP]

there is no fix for your condition

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
thanks for reply.
I did as u suggest but its not working fine.
Its come first time but wen i click on spreadsheet it do not apears
I am sending u a example as att. On first load go to newly added button u
can see tool tip then click on
Spreadsheet any cell. You will find the ssame problem..

thanks
Om (e-mail address removed)

Alvin Bruney said:
this is a known bug. the workaround is to use a settimeout function to call
your procedure
settimeout("addtips()", 200). this provides internet explorer some time to
initialize the window before adding the tips

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Microsoft News said:
Hi,
i am customizing toolbar of spreadsheet (owc). I have added custom button
on
toolbar.
I have seted tooltip for perticular custom button.
When I calling function to add new custom button to toolbar on
window_onload() procedure.tool tips not appears. if i call trough some
input
button its come first and when i click on Speadsheet area it not comes.
I also downloaded some Sample Code from msdn. That also have same
problems.

following is my code segment.
Sub AddTips()

Dim tb

Dim btnNewButton

Dim Spreadsheet

Dim iNumButtons


Set Spreadsheet = document.getElementById("Spreadsheet")

Spreadsheet.Refresh

Set tb = Spreadsheet.Toolbar

iNumButtons = tb.Buttons.Count

On Error Resume Next

Set btnNewButton = tb.Buttons.Add(iNumButtons, "cmdCreateView","Creer
Vue",
tbrDefault,10)

' Set the tool tip text.

btnNewButton.ToolTipText = "Create view"

iNumButtons = iNumButtons + 1

' Add a separator after the custom button.

tb.Buttons.Add iNumButtons, , , 3

End Sub



Send email to (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top