#10799: Using CallTipUseStyle() doesn't enable wxSTC_STYLE_CALLTIP

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

#10799: Using CallTipUseStyle() doesn't enable wxSTC_STYLE_CALLTIP

wxTrac
Ticket URL: <http://trac.wxwidgets.org/ticket/10799>

#10799: Using CallTipUseStyle() doesn't enable wxSTC_STYLE_CALLTIP
--------------------------------------+-------------------------------------
 Reporter:  saajjj                    |       Owner:      
     Type:  defect                    |      Status:  new  
 Priority:  high                      |   Milestone:      
Component:  wxStyledText              |     Version:  2.8.9
 Keywords:  wxStyledTextCtrl Calltip  |   Blockedby:      
    Patch:  1                         |    Blocking:      
--------------------------------------+-------------------------------------
 I've read in the docs that using:
 mySTC->CallTipUseStyle(40);

 (where mySTC is a wxStyledTextCtrl) enables the use of
 wxSTC_STYLE_CALLTIP. This does not work in 2.8.9 and 2.9.0

 I'm not familiar with how patches are submitted because the 'ticket
 submitter guide' link isn't working for me. Please excuse my way of
 submitting the patch.

 I had to edit part of the function ScintillaWX::WndProc (Ln 704 in v2.8.9)
 in <install path>\wxWidgets-2.8.9\contrib\src\stc\ScintillaWX.cpp

 From:
 ------code start-------
 PRectangle rc = ct.CallTipStart(currentPos, pt,
                 defn,
                 vs.styles[STYLE_DEFAULT].fontName,
                 vs.styles[STYLE_DEFAULT].sizeZoomed,
                 CodePage(),
                 vs.styles[STYLE_DEFAULT].characterSet,
                 wMain);
 ------code end-------

 To:
 ------code start-------
 int ctStyle = ct.UseStyleCallTip() ? STYLE_CALLTIP : STYLE_DEFAULT;
 if (ct.UseStyleCallTip()) {
         ct.SetForeBack(vs.styles[STYLE_CALLTIP].fore,
 vs.styles[STYLE_CALLTIP].back);
 }
 PRectangle rc = ct.CallTipStart(currentPos, pt,
                 defn,
                 vs.styles[ctStyle].fontName,
                 vs.styles[ctStyle].sizeZoomed,
                 CodePage(),
                 vs.styles[ctStyle].characterSet,
                 wMain);
 ------code end-------

 The "To" code is taken from <install
 path>\wxWidgets-2.8.9\contrib\src\stc\scintilla\src\ScintillaBase.cxx

 Once again, my apologies for submitting a patch in this manner. I'm fairly
 certain it's the wrong way.

 Regards,
 Sajjad Amjad


--
Ticket URL: <http://trac.wxwidgets.org/ticket/10799>
_______________________________________________
wx-dev mailing list
[hidden email]
http://lists.wxwidgets.org/mailman/listinfo/wx-dev