 |
|
 |
|
|
 |
adding new button on the ActiveX menu |
 |
 |
|
|
06-26-04 03:49 PM
I have the code to add one button in a new Toolbar. I have reached that the
button appears, but this button isn't activated. I have done the necessary c
hanges in ActiveXEditing.vbs, but I get one vbs error: "Invalid Argument", c
alling the next function:
Sub UpdateButton( byval pActiveHtmlEditor, byval strItemName, byval strTrueV
alue )
if pActiveHtmlEditor.dom.queryCommandEnabled(strItemName) = true then
If StrComp(pActiveHtmlEditor.dom.queryCommandValue(strItemName), strTrueValu
e)=0 Then
pActiveHtmlEditor.ToolbarState.Item(strItemName).Checked = true
Else
pActiveHtmlEditor.ToolbarState.Item(strItemName).Checked = false
End If
pActiveHtmlEditor.ToolbarState.Item(strItemName).Enabled = true
else
pActiveHtmlEditor.ToolbarState.Item(strItemName).Enabled = false
end if
End Sub
with the next code:
UpdateButton pActiveHtmlEditor, "InsertBreak", "True"
I don't know what the problem is. Could you help me, please?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
06-26-04 03:49 PM
Hi Marisa,
posting the same message 5 times will not give you more accurate answers.
Thanks,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Marisa" <Marisa@discussions.microsoft.com> wrote in message
news:D3CAC8AA-EE0C-4541-B07B-473E64A213EC@microsoft.com...
> I have the code to add one button in a new Toolbar. I have reached that
the button appears, but this button isn't activated. I have done the
necessary changes in ActiveXEditing.vbs, but I get one vbs error: "Invalid
Argument", calling the next function:
>
>
> Sub UpdateButton( byval pActiveHtmlEditor, byval strItemName, byval
strTrueValue )
> if pActiveHtmlEditor.dom.queryCommandEnabled(strItemName) = true then
> If StrComp(pActiveHtmlEditor.dom.queryCommandValue(strItemName),
strTrueValue)=0 Then
> pActiveHtmlEditor.ToolbarState.Item(strItemName).Checked =
true
> Else
> pActiveHtmlEditor.ToolbarState.Item(strItemName).Checked =
false
> End If
> pActiveHtmlEditor.ToolbarState.Item(strItemName).Enabled = true
> else
> pActiveHtmlEditor.ToolbarState.Item(strItemName).Enabled = false
> end if
> End Sub
>
>
>
> with the next code:
>
> UpdateButton pActiveHtmlEditor, "InsertBreak", "True"
>
> I don't know what the problem is. Could you help me, please?
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
06-26-04 03:49 PM
Hi again Stefan .
I know what is the line, but this doesn't give me the solution. The line is
the next:
UpdateButton pActiveHtmlEditor, "InsertBreak", "True"
Thank you for your efforts, I will be with my investigations.
"Marisa" wrote:
[vbcol=seagreen]
> I'm sorry, but when I posted the mesagge, one error message appeared , and
I thougth (obviously) that the post hasn't been posted.
>
> "Stefan [MSFT]" wrote:
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
06-26-04 03:49 PM
Hi Marisa,
this seems to be fine.
Sometimes the error messages point to a wrong line of code.
Did you comment out this line to see if the code then runs fine or if it
points to a different code line?
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Marisa" <Marisa@discussions.microsoft.com> wrote in message
news:32F8AD3E-3BC7-4489-87F7-D4AC0C377195@microsoft.com...
> Hi again Stefan .
> I know what is the line, but this doesn't give me the solution. The line
is the next:[vbcol=seagreen]
>
> UpdateButton pActiveHtmlEditor, "InsertBreak", "True"
>
> Thank you for your efforts, I will be with my investigations.
>
>
> "Marisa" wrote:
>
and I thougth (obviously) that the post hasn't been posted.[vbcol=seagreen]
answers.[vbcol=seagreen]
rights.[vbcol=seagreen]
http://download.microsoft.com/downl...
+Server[vbcol=seagreen]
that[vbcol=seagreen]
"Invalid[vbcol=seagreen]
then[vbcol=seagreen]
StrComp(pActiveHtmlEditor.dom. queryCommandValue(strItemName),[vbcol=se
agreen]
=[vbcol=seagreen]
=[vbcol=seagreen]
true[vbcol=seagreen]
false[vbcol=seagreen]
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
 |
|
 |
|
|
 |
Re: adding new button on the ActiveX menu |
 |
 |
|
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 08:41 AM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|