Guidance
指路人
g.yi.org
software / rapidq / examples / GUI / Edit & Richedit / Check 64k Length Limit.bas

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
' Check whether QRichEdit has 64kB length limit
     $ESCAPECHARS ON
     DECLARE SUB showinfo
     CREATE form AS QFORM
      CREATE richedit AS QRICHEDIT
      END CREATE
      CREATE button AS QBUTTON
       top=richedit.top+richedit.height+5
       CAPTION="info"
       onclick=showinfo
      END CREATE
     END CREATE
' seems no limit at all in win2000, no influence with or without this sendmessage
     sendmessage richedit.handle, &HC5, 1048576, 0
     DEFSTR s
     DEFINT i
     FOR i=0 TO 1024 'change here to check the length limit
      s=STRING$(1024,"A")
      richedit.addstrings s
     NEXT i

     form.SHOWMODAL
     SUB showinfo
      SHOWMESSAGE("linecount=" & STR$(richedit.linecount) & "\n" & "text length=" _
       & STR$(LEN(richedit.text)))
     END SUB
掌柜推荐
 
 
¥317.00 ·
 
 
¥470.00 ·
 
 
¥880.00 ·
 
 
¥1,480.00 ·
 
 
¥1,380.00 ·
 
 
¥294.00 ·
© Mon 2024-11-25  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2013-06-19 07:48:02