On 1/17/07, Francisco <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having problems with wxTextCtl:SetDefaultStyle(). > For the code below, the text appears black in white, left aligned. > Is this API currently unsupported?
All functions like this should work in wxLua if they work in C++ as wxLua does nothing, but call the C++ function. > My version is 2.8. > > log = wx.wxTextCtrl (win, wx.wxID_ANY, "", wx.wxDefaultPosition, > wx.wxDefaultSize, wx.wxTE_MULTILINE + wx.wxTE_READONLY + wx.wxTE_RICH) or use wx.wxTE_RICH2 > log:SetDefaultStyle( wx.wxTextAttr(wx.wxRED,wx.wxBLACK, wx.wxNullFont, > wx.wxTEXT_ALIGNMENT_CENTER) ) > log:AppendText(string.rep("hello text ",10)) wxTE_RICH sets foreground and font, wxTE_RICH2 sets background too tested in MSW. Regards, John Labenski ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users