Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Alpha Blended/Partially Transparent txtMyChat [EO]


ark0n
 Share

Recommended Posts

Alrighty guys.
So I'm bored right now so i decided to Teach you guys how to make a Alpha Blended txtMyChat in EO.
W/O EXPLANATIONS

Step 1:
Alright, so first make a Module called modAlphaBlending , Copy and Paste the following code inside of it.
```

Option Base 0
Option Compare Text
Option Explicit

Public Type OSVERSIONINFO
    dwOSVersionInfoSize                    As Long  ' 32
    dwMajorVersion                          As Long  ' 32
    dwMinorVersion                          As Long  ' 32
    dwBuildNumber                          As Long  ' 32
    dwPlatformId                            As Long  ' 32
    szCSDVersion                            As String * 128
End Type

Public Const GWL_EXSTYLE                    As Long = (-20)
Public Const LWA_ALPHA                      As Long = &H2
Public Const WS_EX_LAYERED                  As Long = &H80000

Public Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Public Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long
Public Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Declare Function SetLayeredWindowAttributes Lib "user32.dll" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long

```
Step 2:
So, after you have created modAlphaBlending than go to frmMainGame and make the PicScreen 640x480.
Step 3:
Than, move the txtMyChat and txtChat over the PicScreen. Theres a ScreenShot of what it should look like below.
Step 4: Add the Code to form Load

WILL BE FINISHED LATER, I WILL FINISH THIS LATER TODAY!
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...