diff options
author | nyamatongwe <devnull@localhost> | 2003-04-03 12:34:05 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-04-03 12:34:05 +0000 |
commit | 3d0117d9b355477ac4054d5a0a91772ab89a9e96 (patch) | |
tree | 0cfa2be9e2e8e5d4facfac54c62da3d91a31d7bc /src/ScintillaBase.cxx | |
parent | e22bcdbe06d78ab811ebc5a1623001133c10ea59 (diff) | |
download | scintilla-mirror-3d0117d9b355477ac4054d5a0a91772ab89a9e96.tar.gz |
CallTip can display up and down arrows and clicks are reported to
container.
Calltip can be replaced while visible rather than needing a cancel and
recreation to minimize flashing.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 62cdcdd74..27179bcdc 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -345,6 +345,13 @@ void ScintillaBase::AutoCompleteCompleted() { pdoc->EndUndoAction(); } +void ScintillaBase::CallTipClick() { + SCNotification scn; + scn.nmhdr.code = SCN_CALLTIPCLICK; + scn.position = ct.clickPlace; + NotifyParent(scn); +} + void ScintillaBase::ContextMenu(Point pt) { if (displayPopupMenu) { bool writable = !WndProc(SCI_GETREADONLY, 0, 0); @@ -528,14 +535,15 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara case SCI_CALLTIPSHOW: { AutoCompleteCancel(); - if (!ct.wCallTip.Created()) { + //if (!ct.wCallTip.Created()) { Point pt = LocationFromPosition(wParam); pt.y += vs.lineHeight; PRectangle rc = ct.CallTipStart(currentPos, pt, reinterpret_cast<char *>(lParam), vs.styles[STYLE_DEFAULT].fontName, vs.styles[STYLE_DEFAULT].sizeZoomed, - IsUnicodeMode()); + IsUnicodeMode(), + wMain); // If the call-tip window would be out of the client // space, adjust so it displays above the text. PRectangle rcClient = GetClientRectangle(); @@ -548,7 +556,7 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara CreateCallTipWindow(rc); ct.wCallTip.SetPositionRelative(rc, wMain); ct.wCallTip.Show(); - } + //} } break; |