Results 1 to 4 of 4

Thread: Transparent Frame

  1. #1

    Thread Starter
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    I have a form with a background texture. I want to have a few Option Buttons inside a Frame control.

    The problem is that the Frame control's background is solid gray, which looks really horrible.

    How can I work around this?

  2. #2

    Thread Starter
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    I thought about a custom control, but I would rather see if there was a simple way to do it first.

    Incidentally, might you be interested in writing such a control with me and then just release it as freeware to the guys on here?

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I assume you have the OptionButtons in a frame so that they can be made mutually exclusive. Here's a way to do it without the frame.
    Code:
    Private Sub Option1_Click(Index As Integer)
    
        Dim intNdx As Integer
        
        For intNdx = 0 To Option1.Count - 1
            If intNdx <> Index Then
                Option1(intNdx).Value = False
            End If
        Next
        
    End Sub

  4. #4

    Thread Starter
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    Well, that's a way of doing it and it would probably work fine... I could replace the frame with two Shape controls to get the frame effect.

    But still, I am getting stubborn now ... hahaha

    There MUST be a way to work around it. What if I have a major application and want to add background textures to, say 50 forms containing frames? I think PaulLewis is on to something there.

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