문제

I have done some FireMonkey stuff in XE2, in this case I'm having troubles with a customized TListBox.

In XE2 I built this customized TListBox by removing it's background and surrounding rectangle (basically I only need the 'grouping of child items' functionality provided by TListBox. This was simple, drop a TListBox, hit 'edit custom style', select the background rectangle, edit the fill and the stroke and you're golden.

Now we're moving to XE5 and I cannot reproduce the same behavior. Using the style book editor I can see the background (which is now TStyleObject and not TRectangle), but I cannot make the changes I could make before. I see tutorials on how to add stuff to a TListBox, but not on how to take default behavior away.

Can someone explain how to achieve this specific behavior, or point me towards a good tutorial?

도움이 되었습니까?

해결책

Try changing the StyleLookup property of the list box to transparentlistboxstyle

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top