Página 1 de 1

OndrawCell Ecent in browser

Publicado: Mié May 14, 2008 12:55 pm
por ignacio
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
>

OndrawCell Ecent in browser

Publicado: Mié May 14, 2008 12:55 pm
por NoName
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
>

OndrawCell Ecent in browser

Publicado: Mié May 14, 2008 10:41 pm
por Gejza Horvath
Thanks Ignacio,
adding the code into FormInitialize event solved the problem.
Gejza Horvath
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:482ac50b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> 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
>>
>
>
>

OndrawCell Ecent in browser

Publicado: Mié May 14, 2008 10:41 pm
por Gejza Horvath
Thanks Ignacio,
adding the code into FormInitialize event solved the problem.
Gejza Horvath
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:482ac50b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> 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
>>
>
>
>