Não peguei esse bug aqui.Como esperado, a mudança da hwgui está sendo meio radical, e tudo pode acontecer.
Os que peguei, foram corrigidos.
Sem um exemplo pequeno que demonstre o problema, não tem como saber.
Saudações,
Itamar M. Lins Jr.
Moderador: Moderadores

Não peguei esse bug aqui.Como esperado, a mudança da hwgui está sendo meio radical, e tudo pode acontecer.




Código: Selecionar todos
FUNCTION gui_ButtonCreate( xDlg, xControl, nRow, nCol, nWidth, nHeight, cCaption, cResName, bAction )
IF Empty( xControl )
xControl := gui_newctlname( "BUTTON" )
ENDIF
IF cCaption == "Cancel"
@ nRow, nCol BUTTON ( xControl ) ;
PARENT ( xDlg ) ;
CAPTION cCaption ;
PICTURE cResName ;
ACTION Eval( bAction ) ;
WIDTH nWidth ;
HEIGHT nHeight ;
IMAGEALIGN TOP ;
CANCEL // abort valid
ELSE
@ nRow, nCol BUTTON ( xControl ) ;
PARENT ( xDlg ) ;
CAPTION cCaption ;
PICTURE cResName ;
ACTION Eval( bAction ) ;
WIDTH nWidth ;
HEIGHT nHeight ;
IMAGEALIGN TOP
ENDIF
RETURN Nil

Código: Selecionar todos
FUNCTION gui_TabCreate( xDlg, xControl, nRow, nCol, nWidth, nHeight )
IF Empty( xControl )
xControl := gui_newctlname( "TAB" )
ENDIF
DEFINE TAB ( xControl ) ;
PARENT ( xDlg ) ;
AT nRow, nCol;
WIDTH nWidth ;
HEIGHT nHeight ;
VALUE 1
xControl := xDlg // because they are not on tab
(nRow);(nCol);(nWidth);(nHeight);(xDlg)
RETURN Nil


Código: Selecionar todos
FUNCTION gui_DialogActivate( xDlg, bCode )
xDlg:Center()
IF Empty( bCode )
xDlg:Activate()
ELSE
ACTIVATE DIALOG xDlg ON ACTIVATE bCode
ENDIF
RETURN Nil
Código: Selecionar todos
FUNCTION gui_DialogActivate( xDlg, bCode )
(xDlg)
IF ! Empty( bCode )
Eval( bCode )
ENDIF
RETURN Nil
Código: Selecionar todos
FUNCTION gui_DialogActivate( xDlg, bCode )
IF ! Empty( bCode )
Eval( bCode )
ENDIF
DoMethod( xDlg, "CENTER" )
ACTIVATE WINDOW ( xDlg )
RETURN Nil

Código: Selecionar todos
FUNCTION gui_ButtonCreate( xDlg, xControl, nRow, nCol, nWidth, nHeight, cCaption, cResName, bAction )
( xDlg );(xControl);(nRow);(nCol);(nWidth);(nHeight);(cCaption);(cResName);(bAction)
xControl := wvgPushButton():New()
WITH OBJECT xControl
:PointerFocus := .F.
:Style += BS_TOP
:Create( xDlg,,{nCol,nRow},{nHeight,nWidth})
:SetCaption( {, WVG_IMAGE_ICONRESOURCE, cResName } )
:SetCaption( cCaption )
:Activate := bAction
ENDWITH
RETURN Nil
FUNCTION gui_LabelCreate( xDlg, xControl, nRow, nCol, nWidth, nHeight, xValue, lBorder )
(xDlg);(xControl);(nRow);(nCol);(nWidth);(nHeight);(xValue);(lBorder)
xControl := wvgStatic():New()
WITH OBJECT xControl
:Type := WVGSTATIC_TYPE_TEXT
:Options := WVGSTATIC_TEXT_LEFT
:Style += iif( lBorder, WS_BORDER, 0 )
:SetColorFG( "W/B" )
:SetColorBG( "W/B" )
:Caption := xValue
:SetFont( "Arial" )
:Create(xDlg,,{nCol,nRow},{nWidth,nHeight})
ENDWITH
RETURN Nil
FUNCTION gui_TextCreate( xDlg, xControl, nRow, nCol, nWidth, nHeight, ;
xValue, cPicture, nMaxLength, bValid )
(xDlg);(xControl);(nRow);(nCol);(nWidth);(nHeight);(xValue);(cPicture);(nMaxLength);(bValid)
/*
xControl := wvgStatic():New()
WITH OBJECT xControl
:Type := WVGSTATIC_TYPE_TEXT
:Options := WVGSTATIC_TEXT_LEFT
:SetColorFG( "W/B" )
:SetColorBG( "W/B" )
:Caption := xValue
:SetFont( "Arial" )
:Create(xDlg,,{nCol,nRow},{nWidth,nHeight})
ENDWITH
*/
xControl := wvgSle():New()
WITH OBJECT xControl
:Create( xDlg,,{nCol,nRow},{nWidth,nHeight})
:SetData( Transform( xValue, "" ) )
ENDWITH
RETURN Nil


Código: Selecionar todos
oAddr := WvgSLE():new()
oAddr:bufferLength := 500
oAddr:border := .T.
cNavigate := "http://www.harbour.vouch.info"
oAddr:dataLink := {| x | iif( x == NIL, cNavigate, cNavigate := x ) }
oAddr:setColorFG( RGB( 0, 0, 255 ) )
oAddr:setColorBG( RGB( 0, 255, 255 ) )
oAddr:create( oDA, , { 120, oTBar:currentSize()[ 2 ] }, { 500, 20 }, , .T. )
oAddr:setData()
oAddr:killInputFocus := {| m1, m2, oS | m1 := m1, m2 := m2, oS:getData(), oCom:navigate( cNavigate ) }

E não é que o problema do textbox era esse.JoséQuintas escreveu::bufferLength, deve ser o conhecido MAXLENGTH


