Results 1 to 9 of 9

Thread: Transparency

  1. #1

    Transparency

    Hello.

    Is it possible to have a transparent Listbox in Delphi?

    And possibly a transparent Memo/textbox?

    What are my options?

    Thank you...

    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  2. #2

    Transparency

    what a coincidence! i was just working on a very similar thing, i have a Tlistbox which is owner drawn to show a background image, and a Tedit with a bitmap background, which gives a illusion of transparency.

    interested in any of these?
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Transparency

    As far as I know, the only way to achieve transparency in the standard controls is to not use the standard controls and to draw them yourself.

    Which, depending on the exact functionality you require, can be quite a lot of work.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4

    Transparency

    I don't think the background image would help. There is a background for the program's interface and I would want that to show through the boxes, but if I used your background thing I would have to remake it and cut parts of it out.

    How would I draw it myself?
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  5. #5

    Transparency

    Also, are there any other options other than drawing the listbox myself?
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  6. #6

    Transparency

    I copy part of the background underneath the control and paint the control with it. Works rather well to simulate transparency.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  7. #7

    Transparency

    you could try alphablending & colorkeying the edit with win2k introduced window transparency on another form..
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  8. #8

    Transparency

    I don't know what that means.
    Nicholas.
    <br />
    <br />Please join: http://holzstukka.proboards81.com

  9. #9
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Transparency

    Do a google search for "Delphi Transparent Listbox" and there are tons of resources on how to do it.

    To make a listbox transparent there are some windows messages that need to be changed.

    Try this link:
    http://www.swissdelphicenter.ch/torr...de.php?id=1982
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •