PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Richard Kelly on February 25, 2015, 07:48:38 AM

Title: Ampersand in Listview column
Post by: Richard Kelly on February 25, 2015, 07:48:38 AM
When filling out a listview with rows, I've found that if the values I'm loading contain an ampersand, it is not shown but treated as an underline for the next character. See attachment for how "AT&T" is treated. Is there some API call to disable that feature for a control?

Rick Kelly
Title: Re: Ampersand in Listview column
Post by: Richard Kelly on February 25, 2015, 08:22:13 AM
I got it figured out. All my app listviews are ownerdrawn and I just needed to add %DT_NOPREFIX to my DrawText options.

Rick Kelly
Title: Re: Ampersand in Listview column
Post by: Roger Garstang on January 25, 2016, 02:29:15 AM
You can also escape it with a 2nd &, so AT&T= AT&&T. Helps if you actually need to underline letters too.