Re: [Fxruby-users] Scintilla FXDataTarget Bug?
Status: Inactive
Brought to you by:
lyle
From: jeroen <je...@fo...> - 2004-06-18 04:11:56
|
On Wednesday 16 June 2004 09:04 pm, Joseph wrote: > Hi. > > Jeroen, thanks for enlightening me (in more detail) to layout management > and FXSplitter. It came in handy. > > A new problem: > I was experimenting with FXDataTarget, FXText, and FXScintilla. The > FXScintilla widget does not appear to be working with FXDataTarget objects. > In Detail (code follows below) > I have a FXText widget, and a FXScintilla widget. Each is connected to > its own FXDataTarget instance. I initialize the two FXDataTarget > instances to a static value, and then implement a button handler that > prints out the value of both FXDataTarget instances. > 1. The static text assigned to the DataTarget associated with the FXText > instance is displayed in the FXText widget, however, FXScintilla does > not display the text assigned to the DataTarget associated with the > FXScintilla widget. > 2. If I type something into both the FXText widget, as well as the > FXScintilla widget, then the DataTarget associated with the FXText now > contains the text that was entered interactively, whereas the DataTarget > prints the text that was originally assigned to the DataTarget > programmatically. I.e. if I hit the "Print" button, then the new value > is printed for the FXText DataTarget, but the Scintilla DataTarget does > not print the modified contents that was typed into the Scintilla widget. Of course, its up to FXScintilla to issue the messages [and handle the ID_GETSTRINGVALUE messages] so that the datatarget system works. However, for such large chunks of text as you can have in an editor it is a bit of an expensive mechanism. So I'd suggest to think twice about using it even if the FXScintilla text component does implement it fully [unless of course you don't expect a lot of text; with small bits of text it should not be a problem]. Regards, Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 23:50 12/11/2003 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |