Hello,
Does anyone know if it is possible to have a WinLabel with a border with consists of a single horizontal line south of the text? In general, are custom borders possible? Also, is it possible to change the size of the border?
Many thanks.
Indika
Hello Mike,
Thanks for your response. Been shifting offices and haven't been able to respond sooner.
Hi Indika,
You set the BorderStyle to none and use a DrawFilter to draw your own borders. Changing the size of the borders is a little tricky, though, since the text won't know to shift. I imagine one or two pixels would work. Or you could choose a border style that has the size you want. For example, if you want to draw a 2-pixel border, you could use a 3D border style like Raised, then use a DrawFilter to cancel the default border drawing and draw your own.
For more information on DrawFilters, check out the Infragistics Knowledge Base. There are lots of articles and samples there.