Discussion:
Scintilla focus
(too old to reply)
Col_Blimp
2014-07-05 16:42:55 UTC
Permalink
I'm using hotspots to highlight certain text and then have a popup menu
appear when the hotspot is clicked, everything hotspot related works fine
but after the popup menu is clicked I can't seem to set the focus back to
the document so that other hotspots highlight without the document being
physically clicked.

When the document is set with text programmatically and it has never been
clicked the hotspots will highlight text on mouse over and it is this I'm
trying to get back after the menu is shown.

Have tried SCI_GRABFOCUS, SCI_SETFOCUS the SetFocus function of User32 on
the Scintilla control and the Scintilla parent window after the popup menu
is shown but no combination seems to have the desired effect.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Stefan Küng
2014-07-05 17:53:50 UTC
Permalink
Can you show some code describing how you show the popup menu?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Col_Blimp
2014-07-05 19:53:34 UTC
Permalink
Sure:

http://pastebin.com/kiUEaHkt
Post by Stefan Küng
Can you show some code describing how you show the popup menu?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Stefan Küng
2014-07-06 12:39:16 UTC
Permalink
Post by Col_Blimp
http://pastebin.com/kiUEaHkt
Can't see anything wrong in that script. Which indicates that the
Menu.Show() command itself does not return the focus properly.
Unfortunately, I don't know how to work around that.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...