Solved

Make FireMonkey TListBox in XE5 transparent

Posted on 2014-01-23
3
788 Views
Last Modified: 2014-01-29
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?
0
Comment
Question by:MerijnB
  • 2
3 Comments
 
LVL 25

Expert Comment

by:Sinisa Vuk
Comment Utility
0
 
LVL 19

Accepted Solution

by:
MerijnB earned 0 total points
Comment Utility
That doesn't really answer the question ;)

I found how to achieve this myself, by settings the StyleLookup property to transparentlistboxstyle. Don't know why it does what it does though.

Unfortunately, running into other problems drove me away form FireMonkey atm :)
0
 
LVL 19

Author Closing Comment

by:MerijnB
Comment Utility
Found way to get more or less what I need.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now