Re: visual problem with cursor when selecting text in FXText with FOX 1.7
Jeroen van der Zijp <[email protected]>
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | FOX Toolkit |
| Message-ID | <20220929173421.7b641cf1@leviathan> |
On Thu, 29 Sep 2022 22:07:11 +0200 Francesco Abbate <[email protected]> wrote: >Dear Jeroen, all, > >I have been working for some time on one of my applications with FOX 1.7. I >was previously using 1.7.77 and I recently updated to 1.7.79. > >I have noticed a problem present for both releases. I have a customized >FXText widget but something simple: I set some custom colors and fonts and >I intercept some key events to customize its behavior. The problem I >observe is that when I select some text using the mouse, if I move quickly >the cursor is drawn all over the selection and it remains shown. > >Please see the GIF here to show the problem: > >https://giphy.com/gifs/7S8ONkNsvFqjCUDTJ2 > >Another problem I noticed is that if I click elsewhere the cursor remains >drawn in the previous location. I guess this problem is related to the >previous one. > >Just an additional information: I didn't had this problem with FOX 1.6 >before. > >Any help is appreciated. I can also accept a patch to modify the FOX >library itself waiting for a new release. That would let me fix the problem >quickly and I compile the FOX library from sources anyway. > >Kind regards >Francesco Please try latest snapshot. I have not seen this issue myself, but of course I'm running stock FXText widget inside Adie editor. Possibly, there are some interactions between your version of FXText and the stock version. FYI I recommend subclassing, rather than modifying the stock version; because its hard for me to diagnose whether you may have made changes which have affected some common functions. -- JVZ -- +----------------------------------------------------------------------------+ | Copyright (C) 17:30 09/29/2022 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+