[wx-dev] Problem in wxFont::SetNativeFontInfo

Tyushkov Nikolay wx at softvoile.com
Sat Mar 1 09:52:58 PST 2008


>  Which version and port of wx do you use?
>   
2.8.7, MSW,  Unicode static build


>  Where is this UnRef() exactly, I don't seem to be able to find it?
>   
e:\const\wxwidgets-2.8.7\src\common\fontcmn.cpp

bool wxFontBase::SetNativeFontInfo(const wxString& info)
{
    wxNativeFontInfo fontInfo;
    if ( !info.empty() && fontInfo.FromString(info) )
    {
        SetNativeFontInfo(fontInfo);
        return true;
    }

    UnRef();
^^^^^^^^^^
    return false;
}
> TN> P.S. Is there any way to set text and background colors for wxTextEdit 
> TN> without wxTE_RICH style?
>
>  Yes, but for the entire control at once only.
>   
How I can do this? I can't find SetBackgroundColour and 
SetForegroundColour for wxTextCtrl :(

-- 
Best regards, Nikolay Tyushkov
http://softvoile.com - Work with texts faster!





More information about the wx-dev mailing list