|
From: oleksa <m.o...@uk...> - 2013-03-21 07:26:23
|
This are the code from hformtmpl, which i removed for myself
// fim dos relacionamentos
IF Empty( oCtrlTmpl:aControls )
Select ( oCtrl:Alias )
j := ( DBStruct() )
//AEVAL( aStruct, {|aField| QOUT(aField[DBS_NAME])} )
FOR i := 1 TO IIf( oCtrl:nColumns = 0, FCount(), oCtrl:nColumns )
//"AddColumn(HColumn():New(cHeader,Fblock,cValType,nLength,nDec,lEdit,nJusHead, nJusLine, cPicture,bValid, bWhen, Items, bClrBlck, bHeadClick ))",; //oBrw:AddColumn
m->cHeader := FieldName( i )
m->fBlock := FieldBlock( FieldName( i ) )
m->cValType := j[ i, 2 ] //TYPE("FieldName(i)")
m->nLength := j[ i, 3 ] //len(&(FieldName(i)))
m->nDec := j[ i, 4 ]
m->cPicture := NIL
lEdit := .t.
oCtrl:AddColumn( HColumn():New( cHeader, fBlock, cValType, nLength, nDec, lEdit ) )
NEXT
ENDIF
Regards,
Alexey Myronenko
--- Оригінальне повідомлення ---
Від кого: "Alexander S.Kresin" <al...@be...>
Дата: 21 березня 2013, 07:51:50
> oleksa writes:
> > Hi!
> >
> > Open the form below in designer and preview it, we have 4 columns - num_doc, dat_doc, №пп, Дата, but in hwgui_216c only 2 columns
> - №пп, Дата.
> >
> >
>
> And there really must be only two columns, isn't it ?
> I didn't review the appropriate code, but I suppose that current
> hfrmtmpl.prg creates columns automatically, so we have there 2
> automatically added columns and two - from the browse onInit method in
> the form description.
>
> Regards, Alexander.
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Hwgui-developers mailing list
> Hwg...@li...
> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
|