Moderador: Moderadores
FOR EACH xValue, oField, hEdit IN aValues, aStru, ::hEditList
oDlg:aControls[8]:hControl() ==> "Class HEDIT object"
FOR EACH xValue, oField, hEdit IN aValues, aStru, ::hEditList
@ nCol + 110, nRow GET hEdit VAR xValue SIZE oField[ DBS_LEN ] * 12, 25 ;
INIT DIALOG ::oFrm CLIPPER NOEXIT TITLE ::cTitulo AT 20, 0 SIZE 800, 600 ON EXIT hwg_EndDialog()
@ nCol, nRow SAY oField[ DBS_NAME ] SIZE 100, 25
@ nCol + 110, nRow GET hEdit VAR xValue SIZE oField[ DBS_LEN ] * 12, 25 ;
STYLE iif( oField[ DBS_TYPE ] == "N", ES_RIGHT, ES_LEFT ) ;
MAXLENGTH oField[ DBS_LEN ]
@ nCol, nRow ICON IconFromCaption( cCaption ) FROM RESOURCE ;
SIZE 55, 55 ;
ON CLICK bCode ;
TOOLTIP cCaption
::oFrm := HDialog():New( Iif(.F.,10,11),,20,0,800,600,::cTitulo,,,hwg_EndDialog(),,,,,,.T.,,,.T.,,,.F.,,.F. )
HStaticEx():New(,,,nCol,nRow,100, 25,oField[ 1 ],,,,,,,,.F.,,, );
HSayIcon():New(,,nCol,nRow,55, 55,IconFromCaption( cCaption ),.T.,,,cCaption,,bCode, )
hEdit := HEdit():New(,,xValue, {|v|Iif(v==Nil,xValue,xValue:=v)}, iif( oField[ 2 ] == "N", 2, 0 ),nCol + 110,nRow,oField[ 3 ] * 12,25,,,,,,,,,,.F.,oField[ 3 ],.F.,, ) ; hwg_SetCtrlName( hEdit,"hEdit" )
Usuários vendo este fórum: Nenhum usuário registrado online e 4 visitantes