[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextArea and TextEdit Change Event


Le mercredi 16 septembre 2026 à 23:41 +0100, Bruce Steers a écrit :
> 
> 
> On Wed, 16 Sept 2026 at 17:20, CD <dessere.claude@xxxxxx> wrote:
> > Hello, 
> > 
> > While comparing TextArea (gb.qtx) and TextEdit (gb.qtx.ext), 
> > I encountered some surprising behavior with these text controls. 
> > 
> > Hovering the mouse over the control (triggering the _Enter() and
> > _Leave() events) causes a _Change() event to fire, even though the
> > control's text remains unchanged...
> > Is this a bug, or have I misunderstood the _Change() event?
> > 
> > https://gambaswiki.org/wiki/comp/gb.qt4/textarea/.change?l=fr
> > https://gambaswiki.org/wiki/comp/gb.qt4.ext/textedit/.change?l=fr
> > 
> > Best regards
> > 
> > Example attached.
> > 
> 
> 
> I find it is not Enter / Leave motion, that all seems to work as
> expected, no extra Change events here.
> 
> But if i click the IDE window (or any other window) so it pops to
> foreground and the test program goes behind it then i get multiple
> Change events fire
> Then another Change event fires when i click the test program window
> to bring it to foreground again.
> 
> I guess as nothing is actually changing it must be a bug.
> 
> Respects
> BruceS

I agree; it is the loss and subsequent regaining of focus by the form
that trigger these _Change events!
Consequently, it is impossible to maintain a functional modification
flag!!!



Follow-Ups:
Re: TextArea and TextEdit Change EventBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
WebView object - Event on Link clickOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebView object - Event on Link clickgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: WebView object - Event on Link clickBruce Steers <bsteers4@xxxxxxxxx>
Re: WebView object - Event on Link clickOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebView object - Event on Link clickBruce Steers <bsteers4@xxxxxxxxx>
Re: WebView object - Event on Link clickBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
TextArea and TextEdit Change EventCD <dessere.claude@xxxxxx>
Re: TextArea and TextEdit Change EventBruce Steers <bsteers4@xxxxxxxxx>