?
Solved

Make FireMonkey TListBox in XE5 transparent

Posted on 2014-01-23
3
Medium Priority
?
890 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 28

Expert Comment

by:Sinisa Vuk
ID: 39805885
0
 
LVL 19

Accepted Solution

by:
MerijnB earned 0 total points
ID: 39806402
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
ID: 39817269
Found way to get more or less what I need.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

831 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