Dialog Title Limit ?

Post Reply
yury
Posts: 56
Joined: Wed May 23, 2007 2:01 pm

Dialog Title Limit ?

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Dialog Title Limit ?

Post 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
Post Reply