SourceForge logo
SourceForge logo
Menu

Re: [wxlua-users] wxStyledTextCtrl:AppendText

From: Victor B. <so...@te...> - 2015年10月23日 07:55:51
try it without "\n" (all in a line)
 ----- Original Message ----- 
 From: John Labenski 
 To: wxl...@li... 
 Sent: Friday, October 23, 2015 5:42 AM
 Subject: Re: [wxlua-users] wxStyledTextCtrl:AppendText
 On Sun, Oct 18, 2015 at 2:27 PM, Victor Bombi <so...@te...> wrote:
 Hi,
 32*1024 - 7 is the maximum string len that is displayed in wxStyledTextCtrl
 with AppendText.
 I have not seen anywhere information related.
 Is this information in any place?
 Is there any way to get a longer display length?
 Maybe there is an invalid utf8 char at that position that truncates it?
 I added this line to the end of the samples/editor.wx.lua LoadFile function and got all 40000 lines and even tried a larger value without a problem.
 function LoadFile(filePath, editor, file_must_exist)
 ...
 editor:AppendText(string.rep("1234567890\n", 40000))
 return editor
 end
 Regards,
 John
------------------------------------------------------------------------------
 ------------------------------------------------------------------------------
------------------------------------------------------------------------------
 _______________________________________________
 wxlua-users mailing list
 wxl...@li...
 https://lists.sourceforge.net/lists/listinfo/wxlua-users

View entire thread

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /