Page 1 of 1

Dialog Title Limit ?

Posted: Wed Jan 30, 2013 2:12 pm
by yury
Hi

dialog title have some limit of characters ?

a string with 115 characters or more causes a app crash

please, execute the code below and put 88 or less in the "Add in title:" ; the dialog will be showed

if put 89 or more, the app crash occurs

Code: Select all

#include "Fivewin.ch"

Function Test()

local oDlg, cTitle

while .t.
   oDlg:=NIL
    
     cTitle:='Testing limit Dialog Title'
        
     nRepl:=0
     if !msgget('Test:','Add in title:',@nRepl)
        exit
     endif
    
     cTitle+=REPL('a',nRepl)
    
     define dialog oDlg from 01,01 to 32,100 title cTitle

     activate dialog oDlg center on init (oDlg:Show(), msginfo(len(cTitle),"Len of Title"))
enddo   

return
 
thanks

Re: Dialog Title Limit ?

Posted: Wed Jan 30, 2013 3:41 pm
by Enrico Maria Giordano
yury wrote:Hi

dialog title have some limit of characters ?
Yes, it's a Windows "feature", as far as I know.

EMG