git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62075
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
| wxFRAME_FLOAT_ON_PARENT
| wxBORDER_NONE
#ifdef __WXMAC__
| wxFRAME_FLOAT_ON_PARENT
| wxBORDER_NONE
#ifdef __WXMAC__
#endif
m_ct(ct), m_swx(swx), m_cx(wxDefaultCoord), m_cy(wxDefaultCoord)
{
#endif
m_ct(ct), m_swx(swx), m_cx(wxDefaultCoord), m_cy(wxDefaultCoord)
{
wxPoint GetMyPosition()
{
return wxPoint(m_cx, m_cy);
wxPoint GetMyPosition()
{
return wxPoint(m_cx, m_cy);
#if wxUSE_UNICODE
// free up the old character buffer in case the text is real big
#if wxUSE_UNICODE
// free up the old character buffer in case the text is real big
- data.SetText(wxEmptyString);
+ data.SetText(wxEmptyString);
text = wxEmptyString;
#endif
int len = strlen(buf);
text = wxEmptyString;
#endif
int len = strlen(buf);
char* defn = reinterpret_cast<char *>(lParam);
AutoCompleteCancel();
pt.y += vs.lineHeight;
char* defn = reinterpret_cast<char *>(lParam);
AutoCompleteCancel();
pt.y += vs.lineHeight;
+ 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,
PRectangle rc = ct.CallTipStart(currentPos, pt,
defn,
- vs.styles[STYLE_DEFAULT].fontName,
- vs.styles[STYLE_DEFAULT].sizeZoomed,
+ vs.styles[ctStyle].fontName,
+ vs.styles[ctStyle].sizeZoomed,
- vs.styles[STYLE_DEFAULT].characterSet,
+ vs.styles[ctStyle].characterSet,
wMain);
// If the call-tip window would be out of the client
// space, adjust so it displays above the text.
wMain);
// If the call-tip window would be out of the client
// space, adjust so it displays above the text.