Results 1 to 10 of 10

Thread: DOES ANYBODY KNOW HOW TO MAKE A PICTUREBOX TRANSLUCENT

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    36

    Talking

    I NEED TO KNOW HOW TO MAKE A PICTURE BOX "TRANSLUCENT" NOT "TRANSPARENT"
    sorry for the caps
    i want it so that u can see the textbox behind it and see all the changes in the textbox
    if anybody can help DO IT

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    If you know how to make the picturebox transparent - your'e half way there, as in translucent images only some of the pixels are visible whilst others are transparent.

    Image a chequerboard if you will where all the squares of one colour are transparent and others are not.

    DocZaf
    {;->

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    There's a transparent picturebox control on my homepage
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Guest
    Then you can use the PSet method for every other Pixel to make it look Translucent.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You cannot pset on a textbox
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6
    Guest
    I know that. But you can PSet on a PictureBox, which is what I said.

  7. #7
    Addicted Member
    Join Date
    May 1999
    Posts
    161

    Question

    What does the PSet method do ? And how does it work ?

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Pset plots a single pixel in a specified color, and i won't make your picturebox transculent, you need to cut regions and ****, download my ocx control and use the mask color to set the parts you want to be transculent...
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9
    Guest
    Here is an example of how to use the PSet method.

    Code:
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
        'Set a Blue Pixel at the X and Y Coordinates
        Me.PSet (X, Y), vbBlue
    End Sub

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you still bother to use pset i would suggest to use setpixelv api method instead meg, since psetting will slow down a transculent procedure to the state of uselessness
    Code:
    Declare Function SetPixelV Lib "gdi32" Alias "SetPixelV" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
    'To use
    SetPixelV Me.hdc,X,Y,vbBlue
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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