[wxPython] Double-click in StyledTextControl

In my use of the styled text control, I noticed that double-clicking a word
does not select it, but triple-clicking the word does select it (I tried it
in my own code and in the Demo). In more experimentation, I inserted a
handler to catch double-click messages:
EVT_STC_DOUBLECLICK(self, ID, self.OnDoubleClick)

It never got called for double-clicks, but *did* get called for
triple-clicks. It seems as if the first mouse click is getting swallowed up
somewhere. Should double-clicking the word result in its selection?

···

___________________________________________
Ron Clarke
Inkjet Publishing Division
Hewlett-Packard Co.
ron_clarke@hp.com
ecard - https://ecardfile.com/id/ron_clarke

In my use of the styled text control, I noticed that double-clicking a

word

does not select it, but triple-clicking the word does select it (I tried

it

in my own code and in the Demo). In more experimentation, I inserted a
handler to catch double-click messages:
EVT_STC_DOUBLECLICK(self, ID, self.OnDoubleClick)

It never got called for double-clicks, but *did* get called for
triple-clicks. It seems as if the first mouse click is getting swallowed

up

somewhere. Should double-clicking the word result in its selection?

wxWindows is taking the second click and turning it into a EVT_LEFT_DCLICK,
which wxSTC is not catching. I'll fix that real quick and check in the
change to CVS.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Under Linux, it seems to be working fine... ( select the word with two
clicks, the line with three...)
wxGTK 2.2.5
which platform are you using ?

-----Message d'origine-----

···

De : wxpython-users-admin@lists.wxwindows.org
[mailto:wxpython-users-admin@lists.wxwindows.org]De la part de
CLARKE,RON (HP-Vancouver,ex1)
Envoyé : vendredi 1 juin 2001 19:41
À : 'wxpython-users@lists.wxwindows.org'
Objet : [wxPython] Double-click in StyledTextControl

In my use of the styled text control, I noticed that double-clicking a word
does not select it, but triple-clicking the word does select it (I tried it
in my own code and in the Demo). In more experimentation, I inserted a
handler to catch double-click messages:
EVT_STC_DOUBLECLICK(self, ID, self.OnDoubleClick)

It never got called for double-clicks, but *did* get called for
triple-clicks. It seems as if the first mouse click is getting swallowed up
somewhere. Should double-clicking the word result in its selection?

___________________________________________
Ron Clarke
Inkjet Publishing Division
Hewlett-Packard Co.
ron_clarke@hp.com
ecard - https://ecardfile.com/id/ron_clarke

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

wxWindows is taking the second click and turning it into a

EVT_LEFT_DCLICK,

which wxSTC is not catching. I'll fix that real quick and check in the
change to CVS.

It's in CVS now if you feel up to grabbing the update and ruibuilding,
otherwise it will be in the next release.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!