ToolbarUpdate Event

pinEdit

ToolbarUpdate Event


smartin 04-07-2006, 7:04

Hi, I'm using pinEdit for WinForms (.Net 1.1), and using an external toolbar.

I would like to update the font/size/bold/etc. on the toolbar based on what is selected (or where the cursor is) in the control, but I can't seem to find an appropriate event.  The ToolbarUpdate event seems to be what I want, but it never fires!  I've tried different settings for ModeToolbar and other properties just to see if the event would fire, but still no luck.

How do I get the ToolbarUpdate event to fire?  Or, what's the best way to know when the user's selection has changed in the editor?

Thanks!

Re: ToolbarUpdate Event


Pintexx Support 04-10-2006, 2:27

Hi,

there was a problem in the event script.
Would you please replace the code in editor/config/config_event.js --> eventOnChangeToolbar function with this code:

function eventOnChangeToolbar(data)
{
 try {
    document.getElementById("__editData").value = data;
    RaiseControlEvent("TOOLBARUPDATE");
 } catch(Error) {}
}

Regards,
Hans-Peter

 

Re: ToolbarUpdate Event


smartin 04-10-2006, 4:58
Thanks, that worked beautifully!

Re: ToolbarUpdate Event


derdoe 07-04-2006, 4:23
I have the same problem but I'm using pinEdit 5.0 for WinForms .NET 2.0. with an external Toolbar.
The file mentioned above isnt present here, so the fix won't work.

Thanks in advance!



Re: ToolbarUpdate Event


Pintexx Support 07-04-2006, 5:15

Hi,

we have verified your request again but it works for us.

The events name has changed to

EditorToolbarUpdate

Please check if you run the right DLL: now the name is pinEditNet.dll

Regards,
Hans-Peter

Re: ToolbarUpdate Event


derdoe 07-05-2006, 10:25
I set up a new project to be sure the problem isn't in my code and checked the DLL. It is pinEditNet.dll ver. 5.0.0.626. The event works perfectly when I set ModeToolbar to Internal or Script  and as soon as I switch to External nothing happens.

Re: ToolbarUpdate Event


Pintexx Support 07-05-2006, 2:39

Hi,

you are right.
Which mode do you use: Word Processor or HTML mode ?

Regards,
Hans-Peter

Re: ToolbarUpdate Event


derdoe 07-05-2006, 2:46
I was using HTML mode, but I just tried it with Word Processor and got the same result.

Re: ToolbarUpdate Event


Pintexx Support 07-05-2006, 4:59

Hi,

we have a fix for this tomorrow.
I will send it to your email.

Regards,
Hans-Peter

 

Re: ToolbarUpdate Event


Alexander 05-26-2010, 6:05
I have the same problem too.. Can you share the solution please.

Re: ToolbarUpdate Event


Pintexx Support 05-27-2010, 9:02
Hello,

which version do you use and which event do you want to get ?

Regards,
Hans-Peter

Re: ToolbarUpdate Event


Alexander 05-27-2010, 3:55
The last one 7.2 and the ToolbarUpdate Event it's not raised.


Re: ToolbarUpdate Event


Pintexx Support 05-28-2010, 9:32
Hello,

do you use web or desktop version ?

Regards,
Hans-Peter

Re: ToolbarUpdate Event


Alexander 05-28-2010, 3:13
I'm using winforms my friend....

Re: ToolbarUpdate Event


Pintexx Support 05-31-2010, 8:55
Hello,

did you se

Me.ModeToolbar = enToolbarConfiguration.External

We have tested this once more and the ToolbarUpdate event is raised.

Regards,
Hans-Peter
 Page 1 of 2 (19 items) 1 2 >