Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Christian Schmitz
> > 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

[MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread 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 tv=new CTVTest self.NSTextViewMBS=tv CTVTest is a subclass of

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Marnaud
> 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

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Christian Schmitz
> 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 >

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Christian Schmitz
> 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

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Marnaud
> 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