Skip to main content



      Home
Home » Archived » EPF » Problems with Rich Text Editor
Problems with Rich Text Editor [message #53296] Mon, 08 September 2008 06:31 Go to next message
Eclipse UserFriend
Originally posted by: mcervera.integranova.com

Hi.

I've managed to use the rich text editor in my application. I've
subclassed RichTextEditor so that I could have a ToolBar but I have two
problems:

- An empty space appears before the first button of my toolbar

- The editor is not multiline (at least the enter key doesn't work).
I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
and it doesn't seem to solve anything.

Has anyone had the same problems? What can I do?

Thanks in advance

Mario
Re: Problems with Rich Text Editor [message #53322 is a reply to message #53296] Mon, 08 September 2008 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Mario Cervera a écrit :
> Hi.
>
> I've managed to use the rich text editor in my application. I've
> subclassed RichTextEditor so that I could have a ToolBar but I have two
> problems:
>
> - An empty space appears before the first button of my toolbar
>
> - The editor is not multiline (at least the enter key doesn't work).
> I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
> and it doesn't seem to solve anything.
The bug with "Return" key has been solved in Eclipse 3.4.1 (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238957)

Jacques
>
> Has anyone had the same problems? What can I do?
>
> Thanks in advance
>
> Mario
Re: Problems with Rich Text Editor [message #53338 is a reply to message #53322] Mon, 08 September 2008 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: mcervera.integranova.com

Ok, I am using eclipse 3.4 so that must be reason. Thanks for the
information.

Now I have another problem maybe you can help me in. I am trying to use
databinding with the rich text editor. I've managed to make it work by
simply returning an instance of RichTextObservableValue the same way
observeText returns TextObservableValue. RichTextObservableValue is a
class I've implemented which inherites from AbstractVetoableValue.
Everything is ok but I have problems with the modify listener, that is,
the ModifyEvent is not fired when I write in the RichTextEditor,
therefore my editor is not set as dirty. To my surprise, this event is
fired when pressing keys like Del, back space and so on... but not when
I press simple characters. I don't understand what is going on. Has
anyone experienced anything similar??

Thanks in advance.

Mario

Jacques LESCOT escribió:
> Mario Cervera a écrit :
>> Hi.
>>
>> I've managed to use the rich text editor in my application. I've
>> subclassed RichTextEditor so that I could have a ToolBar but I have
>> two problems:
>>
>> - An empty space appears before the first button of my toolbar
>>
>> - The editor is not multiline (at least the enter key doesn't work).
>> I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
>> and it doesn't seem to solve anything.
> The bug with "Return" key has been solved in Eclipse 3.4.1 (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=238957)
>
> Jacques
>>
>> Has anyone had the same problems? What can I do?
>>
>> Thanks in advance
>>
>> Mario
Re: Problems with Rich Text Editor [message #590404 is a reply to message #53296] Mon, 08 September 2008 10:23 Go to previous message
Eclipse UserFriend
Mario Cervera a écrit :
> Hi.
>
> I've managed to use the rich text editor in my application. I've
> subclassed RichTextEditor so that I could have a ToolBar but I have two
> problems:
>
> - An empty space appears before the first button of my toolbar
>
> - The editor is not multiline (at least the enter key doesn't work).
> I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
> and it doesn't seem to solve anything.
The bug with "Return" key has been solved in Eclipse 3.4.1 (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238957)

Jacques
>
> Has anyone had the same problems? What can I do?
>
> Thanks in advance
>
> Mario
Re: Problems with Rich Text Editor [message #590419 is a reply to message #53322] Mon, 08 September 2008 12:05 Go to previous message
Eclipse UserFriend
Ok, I am using eclipse 3.4 so that must be reason. Thanks for the
information.

Now I have another problem maybe you can help me in. I am trying to use
databinding with the rich text editor. I've managed to make it work by
simply returning an instance of RichTextObservableValue the same way
observeText returns TextObservableValue. RichTextObservableValue is a
class I've implemented which inherites from AbstractVetoableValue.
Everything is ok but I have problems with the modify listener, that is,
the ModifyEvent is not fired when I write in the RichTextEditor,
therefore my editor is not set as dirty. To my surprise, this event is
fired when pressing keys like Del, back space and so on... but not when
I press simple characters. I don't understand what is going on. Has
anyone experienced anything similar??

Thanks in advance.

Mario

Jacques LESCOT escribió:
> Mario Cervera a écrit :
>> Hi.
>>
>> I've managed to use the rich text editor in my application. I've
>> subclassed RichTextEditor so that I could have a ToolBar but I have
>> two problems:
>>
>> - An empty space appears before the first button of my toolbar
>>
>> - The editor is not multiline (at least the enter key doesn't work).
>> I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
>> and it doesn't seem to solve anything.
> The bug with "Return" key has been solved in Eclipse 3.4.1 (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=238957)
>
> Jacques
>>
>> Has anyone had the same problems? What can I do?
>>
>> Thanks in advance
>>
>> Mario
Previous Topic:Problems with Rich Text Editor
Next Topic:Databinding and rich text editor
Goto Forum:
  


Current Time: Fri Apr 25 19:25:14 EDT 2025

Powered by FUDForum. Page generated in 0.05102 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top