In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

OndrawCell Ecent in browser

Xailer professional forum in English
Responder
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9441
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

OndrawCell Ecent in browser

Mensaje 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
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

OndrawCell Ecent in browser

Mensaje 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
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

OndrawCell Ecent in browser

Mensaje 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
>>
>
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

OndrawCell Ecent in browser

Mensaje 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
>>
>
>
>
Responder