Please can you tell me how to change the background color of the selected items in a grid, which is a deep blue and I want color associated with my application colors.
Thanks in advance
How to change default background selected color of dcbrowse
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: How to change default background selected color of dcbro
You can set the default values for Browses with
So for your needs is the {XBP_PP_HILITE_BGCLR, myhlbgcolor} parameter the choice.
In your Browse simply add
Code: Select all
DC_BrowPres({ ;
{XBP_PP_COMPOUNDNAME, mybrowsefont }, ;
{XBP_PP_COL_DA_FGCLR, myfgcolor }, ;
{XBP_PP_COL_DA_BGCLR, mybgcolor}, ;
{XBP_PP_HILITE_FGCLR, myhlfgcolor }, ;
{XBP_PP_HILITE_BGCLR, myhlbgcolor }, ;
{XBP_PP_COL_DA_ROWHEIGHT, myrowheight }, ;
{XBP_PP_COL_DA_CELLHEIGHT, mycellheigt }, ;
{XBP_PP_COL_HA_COMPOUNDNAME, myheaderfont } ;
})
In your Browse simply add
Code: Select all
...DCBROWSE... PRESENTATION DC_BrowPres()
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: How to change default background selected color of dcbro
This won't work if a manifest file is available (linked to the app or <myapp>.exe.manifest) and visual themes are active. Windows XP or 7 will draw a rounded gradient box, Windows 8/8.1 a transparent rectangle with border, always based on system colors. The only way to change this with 1.9 is ownerdrawing, 2.0 supports HTML/CSS, but I didn't try this yet.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: How to change default background selected color of dcbro
Wolfgang
Works great
Thanks for the solution and for your time
Works great
Thanks for the solution and for your time