Activating a type converter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Activating a type converter

Theo Pronk
Can anyone help?

I've added a type converter (LowerToUpper) to automatically change the
case of text being input.

But when I try to change the type converter in the View composer
publised aspects, the Choose an Evaluation doesn't contain the new type
converter.

I've added one (type converter) before but cant remeber all of the
steps, can anyone tell me what I could have missed?

Thanks,
Theo


Reply | Threaded
Open this post in threaded view
|

Re: Activating a type converter

Ian Bartholomew-19
Theo,

> I've added a type converter (LowerToUpper) to automatically change the
> case of text being input.

There are at least a couple of ways of getting the control to do that for
you.

In RichEdit2.0 (the one that Dolphin uses) you can set the CFM_ALLCAPS flag
in CHARFORMAT2.  You will need to add the structure and one method (but when
I had a quick trial it only appears to work on RichTextEdits?).

In RichEdit3.0 you have an EM_SETEDITSTYLE message and one of it's settable
flags is SES_UPPERCASE. I didn't actually try this.

I seem to remember seeing another way as well but, offhand, I can't remember
what it is.

> I've added one (type converter) before but cant remeber all of the
> steps, can anyone tell me what I could have missed?

You have to selete an appropriate class category for your new class - see
the method TextEdit class>>applicableTypeConverterCategories

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: Activating a type converter

Theo Pronk
Thanks Ian!

You reminded me of Right Clicking on the Class!

By the way, the Lower to Upper type converter works great.

Theo

==============================

Ian Bartholomew wrote:

> Theo,
>
>
>>I've added a type converter (LowerToUpper) to automatically change the
>>case of text being input.
>
>
> There are at least a couple of ways of getting the control to do that for
> you.
>
> In RichEdit2.0 (the one that Dolphin uses) you can set the CFM_ALLCAPS flag
> in CHARFORMAT2.  You will need to add the structure and one method (but when
> I had a quick trial it only appears to work on RichTextEdits?).
>
> In RichEdit3.0 you have an EM_SETEDITSTYLE message and one of it's settable
> flags is SES_UPPERCASE. I didn't actually try this.
>
> I seem to remember seeing another way as well but, offhand, I can't remember
> what it is.
>
>
>>I've added one (type converter) before but cant remeber all of the
>>steps, can anyone tell me what I could have missed?
>
>
> You have to selete an appropriate class category for your new class - see
> the method TextEdit class>>applicableTypeConverterCategories
>