Results 1 to 3 of 3

Thread: please explain

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Location
    New South Wales, Australia
    Posts
    55

    Arrow please explain

    Can someone please explain how to make a frame transparent?

    Please dont throw code at me lol i need someone to actually explain it because i had looked throught alot of code to make frames transparent the problem is i dont understand how it works. Howeva use code to help ur explanation.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: please explain

    Did you see my sample from this thread yet?
    The whole idea is that you can only mimic "transparency" since frame doesn't naturally supports it. To do that all you can do is use BitBlt api function to "replicate" exact image that's underneath the frame and then use few other api functions to draw rectangle and text (for caption).

  3. #3
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: please explain

    I needed something like this before. but desided to make my own with some API and a user control.

    I found that if you set the maskcolor and backcolor of a user control to white or what ever color, then use some code in your drawing function like

    usercontrol.maskpicture = usercontrol.image
    then set your user controls, border to transparent then when you add code to draw onto the control. it will then be transparent. it's quite simple.

    anyway I know you said no code. but if you want you can use a control I made before. I also commened almost eveyline of the code so it easy to understand.
    also comes with a nise set of features, such as bevels, 3Dlines and more.

    http://eraystudios.com/forum/viewtopic.php?t=18
    When your dreams come true.
    On error resume pulling hair out.

Posting Permissions

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



Click Here to Expand Forum to Full Width