|
4 | 4 | #include "MUSHclient.h"
|
5 | 5 |
|
6 | 6 | #include "doc.h"
|
| 7 | +#include "MUSHview.h" |
7 | 8 | #include "scripting\errors.h"
|
8 | 9 |
|
9 | 10 | #define NL "\r\n"
|
@@ -185,8 +186,8 @@ tConfigurationNumericOption OptionsTable [] = {
|
185 | 186 | {"timestamp_input_back_colour", RGB (0, 0, 0), O(m_OutputLinePreambleInputBackColour), 0, 0xFFFFFF, OPT_RGB_COLOUR | OPT_UPDATE_VIEWS},
|
186 | 187 | {"timestamp_notes_back_colour", RGB (0, 0, 0), O(m_OutputLinePreambleNotesBackColour), 0, 0xFFFFFF, OPT_RGB_COLOUR | OPT_UPDATE_VIEWS},
|
187 | 188 | {"timestamp_output_back_colour", RGB (0, 0, 0), O(m_OutputLinePreambleOutputBackColour),0, 0xFFFFFF, OPT_RGB_COLOUR | OPT_UPDATE_VIEWS},
|
188 |
| -{"tool_tip_visible_time", 5000, O(m_iToolTipVisibleTime), 0, 120000}, |
189 |
| -{"tool_tip_start_time", 400, O(m_iToolTipStartTime), 0, 120000}, |
| 189 | +{"tool_tip_visible_time", 5000, O(m_iToolTipVisibleTime), 0, 120000, OPT_FIX_TOOLTIP_VISIBLE}, |
| 190 | +{"tool_tip_start_time", 400, O(m_iToolTipStartTime), 0, 120000, OPT_FIX_TOOLTIP_START}, |
190 | 191 | {"translate_backslash_sequences", false, O(m_bTranslateBackslashSequences)},
|
191 | 192 | {"translate_german", false, O(m_bTranslateGerman)},
|
192 | 193 | {"treeview_triggers", true, O(m_bTreeviewTriggers)},
|
@@ -551,6 +552,36 @@ long iResult = SetBaseOptionItem (iItem,
|
551 | 552 | if (OptionsTable [iItem].iFlags & OPT_FIX_SPEEDWALK_DELAY)
|
552 | 553 | SetSpeedWalkDelay ((short) Value);
|
553 | 554 |
|
| 555 | + POSITION pos; |
| 556 | + |
| 557 | + if (OptionsTable [iItem].iFlags & OPT_FIX_TOOLTIP_VISIBLE) |
| 558 | + { |
| 559 | + for(pos=GetFirstViewPosition();pos!=NULL;) |
| 560 | + { |
| 561 | + CView* pView = GetNextView(pos); |
| 562 | + if (pView->IsKindOf(RUNTIME_CLASS(CMUSHView))) |
| 563 | + { |
| 564 | + CMUSHView* pmyView = (CMUSHView*)pView; |
| 565 | + if (pmyView->m_ToolTip.m_hWnd) |
| 566 | + pmyView->m_ToolTip.SendMessage(TTM_SETDELAYTIME, TTDT_AUTOPOP, Value - 1); // zero will be default (-1) |
| 567 | + } // end if |
| 568 | + } // end for |
| 569 | + } // end of OPT_FIX_TOOLTIP_VISIBLE |
| 570 | + |
| 571 | + if (OptionsTable [iItem].iFlags & OPT_FIX_TOOLTIP_START) |
| 572 | + { |
| 573 | + for(pos=GetFirstViewPosition();pos!=NULL;) |
| 574 | + { |
| 575 | + CView* pView = GetNextView(pos); |
| 576 | + if (pView->IsKindOf(RUNTIME_CLASS(CMUSHView))) |
| 577 | + { |
| 578 | + CMUSHView* pmyView = (CMUSHView*)pView; |
| 579 | + if (pmyView->m_ToolTip.m_hWnd) |
| 580 | + pmyView->m_ToolTip.SendMessage(TTM_SETDELAYTIME, TTDT_INITIAL, Value - 1); // zero will be default (-1) |
| 581 | + } // end if |
| 582 | + } // end for |
| 583 | + } // end of OPT_FIX_TOOLTIP_VISIBLE |
| 584 | + |
554 | 585 | if (OptionsTable [iItem].iFlags & OPT_USE_MXP)
|
555 | 586 | {
|
556 | 587 | if (m_iUseMXP == eNoMXP && m_bMXP)
|
|
0 commit comments