Discussion:
Multiple View Impacting Toolbar
Gary Beene
2014-02-01 22:41:49 UTC
Permalink
When I create two views of a document (2 scintilla controls showing the
same document), my app toolbar tooltips stop showing, Further, as I move
the mouse around over the toolbar, the button under the mouse is not
highlighted. Instead, the last toolbar button that the cursor was over is
highlighted.

If I remove the document from the 2nd scintilla control, the toolbar
returns to normal - highlighting and tooltips work as expected.

I can make a simple example which works successfully but I am having
trouble figuring out what my larger app is doing that might create the
toolbar issues.

Has anyone seen a similar symptom that might help me troubleshoot the
problem?

The basic code used to switch from single view to split view is this:

Select Case ViewMode
Case "SingleView"
Sci_SetDocPointer hSciRight, 0
Case "SplitScreen"
Sci_SetDocPointer hSciRight, pDocLeft
End Select
Any suggestions would be appreciated!
--
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/groups/opt_out.
Neil Hodgson
2014-02-02 01:26:27 UTC
Permalink
When I create two views of a document (2 scintilla controls showing the same document), my app toolbar tooltips stop showing, Further, as I move the mouse around over the toolbar, the button under the mouse is not highlighted. Instead, the last toolbar button that the cursor was over is highlighted.
Could be a mouse capture issue and that is more likely if you are changing the configuration on a mouse-down action.
If I remove the document from the 2nd scintilla control, the toolbar returns to normal - highlighting and tooltips work as expected.
Scintilla uses mouse tracking for dwell events and this is likely the same technique used for the toolbar so tracing SetTrackMouseLeaveEvent may help.

SciTE shows two Scintilla controls and a toolbar and the toolbar tooltips work, so its not just having two controls.

Neil
--
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/groups/opt_out.
Gary Beene
2014-02-02 15:42:40 UTC
Permalink
*Neil,*
I believe I've discovered the fault with my code - a mishandling of the
SCN_UpdateUI notification. I don't have a fix yet, but I've demonstrated
that removal of the notification response code eliminates the problem, so a
solution should be at close hand.

Thanks for the response. It was helpful in keeping me from pursuing
dead-end avenues!
--
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/groups/opt_out.
Loading...