>
> So an abstract NSTextViewMBS object can be created, which includes these
> events, but it's not possible to link that NSTextViewMBS object to an actual
> control? How can these events be triggered if the NSTextView object doesn't
> belong to an existing control?
If you create a new
Hello,
I've created a new NSTextViewMBS class for trying something. I need it to
replace the native TextArea's text view. I'm trying this in the open event of
my text area subclass:
dim tv As CTVTest 'Also tried with NSTextViewMBS
tv=new CTVTest
self.NSTextViewMBS=tv
CTVTest is a subclass of
> Le 4 déc. 2019 à 19:00, Christian Schmitz a
> écrit:
>
> You can't do that.
>
> The events only work for new NSTextViewMBS object created with the plugin.
So an abstract NSTextViewMBS object can be created, which includes these
events, but it's not possible to link that NSTextViewMBS
> Am 04.12.2019 um 18:40 schrieb Marnaud :
>
> Hello,
>
> I've created a new NSTextViewMBS class for trying something. I need it to
> replace the native TextArea's text view. I'm trying this in the open event of
> my text area subclass:
> dim tv As CTVTest 'Also tried with NSTextViewMBS
>
> If I can't assign a custom subclass to a TextArea and “AddHandler
> me.NSTextViewMBS.shouldChangeTextInRange” doesn't work either (see my
> previous thread), how is one supposed to use the NSTextViewMBS events (which,
> surely, exist because they can be used)?
You can't do that.
The
> Le 4 déc. 2019 à 18:51, Christian Schmitz a
> écrit:
>
> Sorry, you can't assign it.
> MBS Plugins just define a function to look for the NSTextViewMBS object
> belonging to a TextArea.
>
> You may have more luck with using NSNotificationMBS with the text area to
> look for