STC Caret disappears - Mailing list pgadmin-hackers

From Andreas Pflug
Subject STC Caret disappears
Date
Msg-id 3F9E6EFB.50003@pse-consulting.de
Whole thread Raw
In response to Re: Current CVS: Cursor disappears  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgadmin-hackers
Andreas Pflug wrote:

> Jean-Michel POURE wrote:
>
>> Le Lundi 27 Octobre 2003 22:16, Troels Arvin a écrit :
>>
>>
>>> Initially, a cursor is seen, but if focus is taken away from the window
>>> (e.g. by using the mouse or ALT-TAB) and then returned, the cursor is
>>> gone. I can still write charaters in the query window, but I have to
>>> guess where the characters will be put.
>>>
>>> If focus is once again taken away from and then returned to the query
>>> window, then the cursor re-appears.
>>>
>>
>>
>> Dear Troels,
>>
>> I can confirm this STC problem as I have exactly the same problem
>> under Debian and RedHat.
>>
>> Sometimes also, in the editor, after selecting text, the cursor
>> becomes the following sign|_ (vertical and horizontal bar) and the
>> display freezes. I have to open a seperate display and manually kill
>> pgAdmin3. Nothing is written in the log.
>>
>> Did anyone notice this bug too?
>>
>>
> Yes, I've seen this. Still no idea what's happening.
>
> Another weird detail:
> If the query window is moved, caret disappears, moved again, caret is
> back.
> This also happens with the official stctest, so it's a wx problem.
>
OK, finally, I found it:
For some reason, the control loses focus (probably to the frame) which
in turn has to give it back to the stc control. So I could fix this by
catching the frame's focus.
Since only every second time the focus falsely goes to the frame, there
might be some flaw in the wxTopLevelWindow focus handling code.

Regards,
Andreas



pgadmin-hackers by date:

Previous
From: blacknoz@club-internet.fr
Date:
Subject: Re: Cannot Add user
Next
From: "Dave Page"
Date:
Subject: Re: Need help with GTK bug