Hi!
How can I change the text color of TBrowseMod group headers?
Best regards, Timm
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.
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.
TBrowseMod group header text color
Re: TBrowseMod group header text color
Hi!
I'm not sure if I understood your question correctly but you have the following properties in the TBrowseMod class:
PROPERTY nClrHeaderPane
PROPERTY nClrHeaderText
PROPERTY nClrHeaderDivider
PROPERTY nClrHeaderHotPane
PROPERTY nClrHeaderHotText
PROPERTY nClrHeaderSelPane
PROPERTY nClrHeaderEditText
PROPERTY nClrHeaderEditPane
PROPERTY nClrHeaderEditTextFocus
PROPERTY nClrHeaderEditPaneFocus
Greetings!
I'm not sure if I understood your question correctly but you have the following properties in the TBrowseMod class:
PROPERTY nClrHeaderPane
PROPERTY nClrHeaderText
PROPERTY nClrHeaderDivider
PROPERTY nClrHeaderHotPane
PROPERTY nClrHeaderHotText
PROPERTY nClrHeaderSelPane
PROPERTY nClrHeaderEditText
PROPERTY nClrHeaderEditPane
PROPERTY nClrHeaderEditTextFocus
PROPERTY nClrHeaderEditPaneFocus
Greetings!
Re: TBrowseMod group header text color
Hi Pedro,
many thanks for your answer!
I am searching for something like nClrGroupHeaderEditText in order to change the color of this text:
I tried it with this:
Best regards, Timm
many thanks for your answer!
I am searching for something like nClrGroupHeaderEditText in order to change the color of this text:
I tried it with this:
Código: Seleccionar todo
METHOD BrwArtikelDrawGroupHeader( oSender, oSt, cGroup, nRecord, hDC, aRect ) CLASS TForm1
SetTextColor( hDC, RGB( 47, 53, 65 ) ) // this does not work
SelectObject( hDC, ::oFontBold:Handle )
RETURN Nil
- ignacio
- Site Admin
- Mensajes: 9273
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Re: TBrowseMod group header text color
Hello,
Try manipulating oBrowseMod:oSupra. Is TheaderMod control.
Regards,
Try manipulating oBrowseMod:oSupra. Is TheaderMod control.
Regards,
Re: TBrowseMod group header text color
Hi,
manipulating oBrowseMod:oSupra did not work so I modified this:
The event OnDrawGroupFooter already has the parameters nClrText and nClrPane.
Perhaps you can add them also to OnDrawGroupHeader?
Best regards, Timm
manipulating oBrowseMod:oSupra did not work so I modified this:
Código: Seleccionar todo
METHOD PaintGroupHeader( hDC, nItem, aRect, nRecord ) CLASS XBrwModGrid
...
nClrT := ::nClrText
nClrP := ::nClrPane
lRet := :OnDrawGroupHeader( oSt, @cGrp, nRecord, hDC, aTmp, @nClrT, @nClrP )
...
RETURN NIL
Perhaps you can add them also to OnDrawGroupHeader?
Best regards, Timm
- ignacio
- Site Admin
- Mensajes: 9273
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Re: TBrowseMod group header text color
Sorry. My mistake, I thought you were referring to column groupings.
I did not include those parameters on the header because I thought there were not necessary. But, no problem to include them. BTTW I prefer that hDC and aRect continue to be the last parameters even if it brakes some code (that surely will not happen). So, this will be the way that is already modified in the source code:
EVENT OnDrawGroupHeader( oSender, oSt, BYREF cGroup, nRecord, BYREF nClrText, BYREF nClrPane, hDC, aRect )
Regards
I did not include those parameters on the header because I thought there were not necessary. But, no problem to include them. BTTW I prefer that hDC and aRect continue to be the last parameters even if it brakes some code (that surely will not happen). So, this will be the way that is already modified in the source code:
EVENT OnDrawGroupHeader( oSender, oSt, BYREF cGroup, nRecord, BYREF nClrText, BYREF nClrPane, hDC, aRect )
Regards
Re: TBrowseMod group header text color
Thank you, Ignacio!