OndrawCell Ecent in browser
Publicado: Mié May 14, 2008 12:55 pm
Gejza,
After adding all the columns by code, should be the best moment, I guess.
BTW, other places:
- TForm:OnInitialize
- TBrowse:OnNewItem
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=482abd56@ozsrv2.ozlan.local...]482abd56@ozsrv2.ozlan.local...[/email]
>I have a TDBBrowser the oDataSet property is assigned in the object
>inspector. The table is shown fine. The TDbfDataset is opened by code,
>therefore the browser columns are not available in object inspector. Now I
>would like to colorize some rows using oColumn:OnDrawCell event. I manually
>assign this event for all the columns in oBrowser:OnCreate event:
>
> METHOD DBBrowse1Create( oSender ) CLASS TFormShow
> LOCAL oColumn
>
> FOR EACH oColumn IN oSender:aCols
> oColumn:OnDrawCell := "RowColoring"
> NEXT
> RETURN Nil
>
> The problem is, the oBrowser:aCols array in this moment is empty yet.
> Which event can I use to assign the OndrawCell Event for every column in
> browser by code??
>
>
> Regards
>
> Gejza Horvath
>
After adding all the columns by code, should be the best moment, I guess.
BTW, other places:
- TForm:OnInitialize
- TBrowse:OnNewItem
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=482abd56@ozsrv2.ozlan.local...]482abd56@ozsrv2.ozlan.local...[/email]
>I have a TDBBrowser the oDataSet property is assigned in the object
>inspector. The table is shown fine. The TDbfDataset is opened by code,
>therefore the browser columns are not available in object inspector. Now I
>would like to colorize some rows using oColumn:OnDrawCell event. I manually
>assign this event for all the columns in oBrowser:OnCreate event:
>
> METHOD DBBrowse1Create( oSender ) CLASS TFormShow
> LOCAL oColumn
>
> FOR EACH oColumn IN oSender:aCols
> oColumn:OnDrawCell := "RowColoring"
> NEXT
> RETURN Nil
>
> The problem is, the oBrowser:aCols array in this moment is empty yet.
> Which event can I use to assign the OndrawCell Event for every column in
> browser by code??
>
>
> Regards
>
> Gejza Horvath
>