Dialog Title Limit ?

Dialog Title Limit ?

Postby yury » Wed Jan 30, 2013 2:12 pm

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  Expand view

#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
yury
 
Posts: 56
Joined: Wed May 23, 2007 2:01 pm

Re: Dialog Title Limit ?

Postby Enrico Maria Giordano » Wed Jan 30, 2013 3:41 pm

yury wrote:Hi

dialog title have some limit of characters ?


Yes, it's a Windows "feature", as far as I know.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8419
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests