What is the best way to tell the
difference between a mouse left-click and a right-click with an htmlWindow OnCellClicked event? Do I need to
have another event and handler to capture the mouse click
simultaneously? I can’t find where any mouse button info is sent with
the OnCellClicked event.
How does one deselect text in an htmlWindow with code?
The issue is when I right-click and call an htmlWindow OnCellClicked
event the selection stays selected until the mouse is clicked in that
window again. If I left-click the mouse in the window the OnLeftClick
handler is called and acts on the previously selected text instead of
the clicked on text. I see where RichTextCtrl has a SelectNone member,
but I cannot find any for htmlWindow.
Is it possible to have a popup menu break a long menu into columns?
I have a dynamically created popup menu and sometimes the menu can be
longer than the display height. Is there a way to have the menu break
at say every 20 menu items and display in columns?
1. What is the best way to tell the difference between a mouse left-click
and a right-click with an htmlWindow OnCellClicked event? Do I need to have
another event and handler to capture the mouse click simultaneously? I can't
find where any mouse button info is sent with the OnCellClicked event.
2. How does one deselect text in an htmlWindow with code?
The issue is when I right-click and call an htmlWindow OnCellClicked event
the selection stays selected until the mouse is clicked in that window
again. If I left-click the mouse in the window the OnLeftClick handler is
called and acts on the previously selected text instead of the clicked on
text. I see where RichTextCtrl has a SelectNone member, but I cannot find
any for htmlWindow.
No idea about the first 2
3. Is it possible to have a popup menu break a long menu into columns?
I have a dynamically created popup menu and sometimes the menu can be longer
than the display height. Is there a way to have the menu break at say every
20 menu items and display in columns?
I don't think the current wx.Menu can do that (but I may be missing
something), but I suppose something could be done with FlatMenu to
arrange items in more than 1 column. I'll think about it.
1. What is the best way to tell the difference between a mouse left-click and a right-click with an htmlWindow OnCellClicked event? Do I need to have another event and handler to capture the mouse click simultaneously? I can't find where any mouse button info is sent with the OnCellClicked event.
event.GetEvent() returns the wx.MouseEvent.
2. How does one deselect text in an htmlWindow with code?
The issue is when I right-click and call an htmlWindow OnCellClicked event the selection stays selected until the mouse is clicked in that window again. If I left-click the mouse in the window the OnLeftClick handler is called and acts on the previously selected text instead of the clicked on text. I see where RichTextCtrl has a SelectNone member, but I cannot find any for htmlWindow.
It doesn't have one.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!