Re: [Fxruby-users] Scintilla FXDataTarget Bug?
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-06-17 10:13:32
|
On Jun 16, 2004, at 9:04 PM, Joseph wrote: > I was experimenting with FXDataTarget, FXText, and FXScintilla. The > FXScintilla widget does not appear to be working with FXDataTarget > objects. OK, after a quick scan of the FXScintilla source code it looks like you're right. > Any ideas? You can certainly file a change request with Gilles Filippini, the author of the FXScintilla widget, to get support for working with data targets. In the meantime, however, I think you're going to have to add a lot of "bootstrapping" code for this yourself. For example, when you modify the data target's value directly, you should make the corresponding change to the FXScintilla widget: @msgTarget.value = "foo" @sctl.setText(@msgTarget.value) Similarly, you would need to catch the SEL_CHANGED message from FXScintilla to know when the user is changing things there, and then copy the new text into your string variable. Obviously, this is the kind of tedium that data target was invented to avoid, so if you can get Gilles to make that change it's all the better for all of us. ;) Hope this helps, Lyle |