On 1/1/07, Andre <[EMAIL PROTECTED]> wrote: > > Scintilla expect string for some of its messages this list may not be > complete but since the code is emitted it is not important. > SCI_SETTEXT > SCI_COPYTEXT > SCI_REPLACESEL > SCI_REPLACETARGET > SCI_REPLACETARGETRE > SCI_SEARCHINTARGET > SCI_ADDTEXT > SCI_ADDSTYLEDTEXT > SCI_INSERTTEXT > SCI_APPENDTEXT > SCI_SETWORDCHARS > SCI_SETSTYLINGEX > SCI_TEXTWIDTH > SCI_MARKERDEFINEPIXMAP > SCI_STYLESETFONT > > a change has to be made in wxLua_wxStyledTextCtrl_SendMsg in stc.cpp which is > emitted by genwxbind.lua.
I think all of these have an equivalent function which would be more appropriate to use. Is there one of these that does not have a function to go with it? SendMsg is very low level and I have never needed it. eg. SCI_APPENDTEXT == AppendText(string) > also: > in NotifyMacroRecord in editor.cxx > SCI_REPLACESEL sends a pointer instead of the string. > In all cases a single character is being transferred but it is stored in a > string. > I am not familiar enough with the code to propose a change so I will change > the code locally an let others do the actual modification. Again, just use the function wxStyledTextCtrl::ReplaceSelection(string). the documentation for the wxStyledTextCtrl can be viewed here. http://www.yellowbrain.com/stc/index.html 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