FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog Title Limit ?
Posts: 56
Joined: Wed May 23, 2007 02:01 PM
Dialog Title Limit ?
Posted: Wed Jan 30, 2013 02: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 (fw): Select all Collapse
#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 Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Dialog Title Limit ?
Posted: Wed Jan 30, 2013 03:41 PM
yury wrote:Hi

dialog title have some limit of characters ?


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

EMG

Continue the discussion