Error FiveWin/3 Cannot create Dialog Box:

Error FiveWin/3 Cannot create Dialog Box:

Postby jnavas » Tue Jun 30, 2015 7:38 pm

Saludos Cordiales
Antonio,
Colegas
Cual es la capacidad maxima de un campo texto en un DIALOG

Code: Select all  Expand view
PROCE MAIN(cMemo,cTitle,nWidth,nHeight)
   LOCAL oDlgF,oMemo,oFontB,I
   LOCAL oBtn

   DEFAULT cMemo  :="",;
           nWidth :=410,;
           nHeight:=200

   cTitle:="Mensaje"

   cMemo:=ALLTRIM(cMemo)
//   cMemo:=LEFT(cMemo,4096) // Si remuevo este comentario genera incidencia, deseo limitar el contenido.

   DEFINE FONT oFontB NAME "Arial"   SIZE 0, -12 BOLD
   
   DEFINE DIALOG oDlgF;
          TITLE cTitle;
          PIXEL OF oDp:oFrameDP;
          STYLE nOr( DS_SYSMODAL, DS_MODALFRAME );
          COLOR NIL,oDp:nGris SIZE nWidth,nHeight
   @ 0,0 GET oMemo VAR cMemo MULTI READONLY SIZE 330,70 FONT oFontB HSCROLL OF oDlgF

   @ 4,0 BUTTON obtn PROMPT "Ok" ACTION oDlgF:End() SIZE 30,20 OF oDlgF

   ACTIVATE DIALOG oDlgF CENTERED;
            ON INIT (oMemo:SetColor(NIL,16773862),;
                     oBtn:Move(nHeight-60,nWidth-80,60,23),;
                     oMemo:Move(0,0,nWidth-0,nHeight-(70),.T.),;
                     DPFOCUS(oBtn),;
                     .F.)



RETURN .T.
// EOF
 
User avatar
jnavas
 
Posts: 473
Joined: Wed Nov 16, 2005 12:03 pm
Location: Caracas - Venezuela

Re: Error FiveWin/3 Cannot create Dialog Box:

Postby Daniel Garcia-Gil » Wed Jul 01, 2015 2:11 am

Juan


has probado usar el metodo LimitText(nChar) ?
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Error FiveWin/3 Cannot create Dialog Box:

Postby jnavas » Wed Jul 01, 2015 3:48 am

Daniel
Gracias, encontre

METHOD LimitText() INLINE ::SendMsg( EM_EXLIMITTEXT, 0, ::nSize )
en trichedi.prg

Lo aplicare en la clase tget
User avatar
jnavas
 
Posts: 473
Joined: Wed Nov 16, 2005 12:03 pm
Location: Caracas - Venezuela

Re: Error FiveWin/3 Cannot create Dialog Box:

Postby karinha » Wed Jul 01, 2015 3:32 pm

Code: Select all  Expand view

   cText := ALLTRIM(cMemo)

   cMemo := SUBST( cText, 1, 4096 )
 


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7339
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests