elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)  (Leído 3,008 veces)
skyweb07

Desconectado Desconectado

Mensajes: 122


The ghost of the network


Ver Perfil
[Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« en: 31 Enero 2010, 13:34 pm »

Bueno chic@s aqui les dejo un modulo de clase que se utiliza para aplicarle el efecto aereoglass a nuestras aplicaciones, cabe destacar que dicho efecto solo se encuentra disponible en los sistemas operativos despues de windows XP , es decir Window Vista y Window 7 por lo que no funcionara con versiones anteriores del sistema operativo. Aqui una OCX que hace exactamente lo mismo pero que es de pago : http://www.teebo.com/AeroGlassVB.htm , bueno y aqui una imagen de como queda el efecto :



DESCARGA : http://www.megaupload.com/?d=79ZWGC0X

Saludos y espero que les guste ;)


En línea

isseu


Desconectado Desconectado

Mensajes: 325


°º¤ø,¸¸,El conocimiento es poder°º¤ø,¸¸,ø¤º°`°º¤ø,


Ver Perfil WWW
Re: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« Respuesta #1 en: 31 Enero 2010, 13:59 pm »

para q funcione tiene q tener aero o no ?
en vista home basic no funcionaria?


En línea

skyweb07

Desconectado Desconectado

Mensajes: 122


The ghost of the network


Ver Perfil
Re: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« Respuesta #2 en: 31 Enero 2010, 14:02 pm »

Tienes que tener window vista o 7 y tener el aereo por supuesto  :xD
En línea

Karcrack


Desconectado Desconectado

Mensajes: 2.416


Se siente observado ¬¬'


Ver Perfil
Re: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« Respuesta #3 en: 1 Febrero 2010, 00:04 am »

No me gusta bajar sources desde MU.
En línea

skyweb07

Desconectado Desconectado

Mensajes: 122


The ghost of the network


Ver Perfil
Re: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« Respuesta #4 en: 1 Febrero 2010, 00:07 am »

No me gusta bajar sources desde MU.

Jaja que pijo con los hostings eh xD .. aqui el de rapid : http://rapidshare.com/files/344068665/cGlass.rar.html
En línea

BlackZeroX
Wiki

Desconectado Desconectado

Mensajes: 3.158


I'Love...!¡.


Ver Perfil WWW
Re: [Source] cGlass (Añade efecto AereoGlass a tus aplicaciones)
« Respuesta #5 en: 1 Febrero 2010, 01:33 am »

.
Aquí lo dejo con un efecto de Transición de colores Xao xP

Esta hecho a partir de lq ue puso Skyweb07 solo que corregí algunas cosillas y adiciones el efecto de transicion.

Código
  1.  
  2. '
  3. ' ////////////////////////////////////////////////////////////////
  4. ' //                                                            //
  5. ' // Autor: skyweb07.                                           //
  6. ' //                                                            //
  7. ' // Web: Desconoco la url                                      //
  8. ' //                                                            //
  9. ' //  Autor de efecto Transicion de Colores, 1 Error coregido   //
  10. ' //                    y Simplificacion:                       //
  11. ' //                                                            //
  12. ' //          BlackZeroX ( Ortega Avila Miguel Angel )          //
  13. ' //                                                            //
  14. ' // Web: http://InfrAngeluX.Sytes.Net/                         //
  15. ' //                                                            //
  16. ' // |-> Pueden Distribuir Este Codigo siempre y cuando         //
  17. ' // no se eliminen los creditos originales de este codigo      //
  18. ' // No importando que sea modificado/editado o engrandesido    //
  19. ' // o achicado, si es en base a este codigo es requerido       //
  20. ' // el agradacimiento al autor.                                //
  21. ' ////////////////////////////////////////////////////////////////
  22. ' //               Modulo de Clase "cGlass.cls"                 //
  23. ' ////////////////////////////////////////////////////////////////
  24.  
  25.  
  26. Option Explicit
  27. Private WithEvents FRM              As Form
  28. Private WithEvents Timer            As Timer
  29. Private Type RECT
  30.    Left                            As Long
  31.    Top                             As Long
  32.    Right                           As Long
  33.    Bottom                          As Long
  34. End Type
  35. Private Type OSVERSIONINFO
  36.    dwOSVersionInfoSize             As Long
  37.    dwMajorVersion                  As Long
  38.    dwMinorVersion                  As Long
  39.    dwBuildNumber                   As Long
  40.    dwPlatformId                    As Long
  41.    szCSDVersion                    As String * 128
  42. End Type
  43.  
  44. Private Declare Function DwmExtendFrameIntoClientArea Lib "dwmapi.dll" (ByVal hWnd As Long, margin As RECT) As Long
  45. Private Declare Function DwmIsCompositionEnabled Lib "dwmapi.dll" (ByRef pfEnabled As Long) As Long
  46.  
  47. Private Declare Function OpenThemeData Lib "uxtheme.dll" (ByVal hWnd As Long, ByVal pszClassList As String) As Long
  48. Private Declare Function CloseThemeData Lib "uxtheme.dll" (ByVal hTheme As Long) As Long
  49.  
  50. Private Declare Function CreateSolidBrush Lib "gdi32.dll" (ByVal crColor As Long) As Long
  51. Private Declare Function SelectObject Lib "gdi32.dll" (ByVal hDC As Long, ByVal hObject As Long) As Long
  52. Private Declare Function DeleteObject Lib "gdi32.dll" (ByVal hObject As Long) As Long
  53. Private Declare Function CreateCompatibleDC Lib "gdi32.dll" (ByVal hDC As Long) As Long
  54.  
  55. Private Declare Function GetClientRect Lib "user32.dll" (ByVal hWnd As Long, lpRect As RECT) As Long
  56. Private Declare Function FillRect Lib "user32.dll" (ByVal hDC As Long, lpRect As RECT, ByVal hBrush As Long) As Long
  57.  
  58. Private Declare Function GetVersionEx Lib "kernel32.dll" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As Long
  59. Private hTheme                      As Long
  60. Private hWnd                        As Long
  61. Private hDC                         As Long
  62. Private BackColor                   As Long
  63. Private TColor                      As Boolean
  64. Private sTrans                      As Long
  65. Private C(2)                        As Integer
  66.  
  67. Public Function StartGlass(Form As Form, Optional ByVal BackgroundColor As Long = 0, Optional TransColor As Boolean = False, Optional SpeedTrans As Long = 100)
  68. Dim hEnabled                        As Long
  69. Dim OsVersion                       As OSVERSIONINFO
  70. Dim Margenes                        As RECT
  71.    TColor = TransColor
  72.    If sTrans < 1000 Then
  73.        sTrans = SpeedTrans
  74.    Else
  75.        sTrans = 1000
  76.    End If
  77.    If Not BackgroundColor = 0 Then BackColor = (BackgroundColor)
  78.    If Not Form.BorderStyle = 0 Then
  79.        OsVersion.dwOSVersionInfoSize = Len(OsVersion)
  80.        If GetVersionEx(OsVersion) <> 0 Then
  81.            If OsVersion.dwMajorVersion < 6 Then Exit Function
  82.        End If
  83.        Set FRM = Form
  84.        With FRM
  85.            hTheme = OpenThemeData(.hWnd, vbNullString)
  86.            hDC = .hDC
  87.            hWnd = .hWnd
  88.        End With
  89.        Debug.Print hTheme
  90.        With Margenes
  91.            .Left = -1:: .Right = -1: .Top = -1: .Bottom = -1
  92.        End With
  93.        If DwmIsCompositionEnabled(hEnabled) = &H0 Then
  94.            Call DwmExtendFrameIntoClientArea(FRM.hWnd, Margenes)
  95.            Set Timer = FRM.Controls.Add("VB.Timer", "Timer")
  96.            With Timer
  97.                .Interval = sTrans: .Enabled = TColor
  98.            End With
  99.        End If
  100.    End If
  101. End Function
  102.  
  103. Private Sub Frm_Paint()
  104.    If Not hTheme Then
  105.        Call Paint
  106.    End If
  107. End Sub
  108.  
  109. Private Sub Paint()
  110. Dim hColor              As Long
  111. Dim hObject             As Long
  112. Dim hRect               As RECT
  113.    hColor = CreateSolidBrush(BackColor)
  114.    hObject = SelectObject(hDC, hColor)
  115.    GetClientRect hWnd, hRect
  116.    FillRect hDC, hRect, hColor
  117.    DeleteObject SelectObject(hDC, hObject)
  118.    DeleteObject hObject
  119.    DeleteObject hColor
  120. End Sub
  121.  
  122. Private Sub Timer_Timer()
  123. Static nc           As Integer
  124. Static lim          As Byte
  125. Static res          As Boolean
  126.    If lim = 0 Then
  127.        C(0) = ColorCodeToRGB(BackColor)(0) '   //  R
  128.        C(1) = ColorCodeToRGB(BackColor)(1) '   //  G
  129.        C(2) = ColorCodeToRGB(BackColor)(2) '   //  B
  130.    End If
  131.    C(nc) = C(nc) + IIf(res, -1, 1)
  132.    If C(nc) = lim Or lim = 0 Or C(nc) >= 255 Or C(nc) <= 0 Then
  133.        lim = NumeroAleatorio(1, 255)
  134.        nc = NumeroAleatorio(0, 3) - 1
  135.        res = (C(nc) > lim)
  136.    End If
  137.    BackColor = RGB(C(0), C(1), C(2))
  138.    Call Frm_Paint
  139. End Sub
  140.  
  141. Public Function NumeroAleatorio(MinNum As Long, MaxNum As Long) As Long
  142. Dim Tmp                                 As Long
  143.    If MaxNum < MinNum Then: Tmp = MaxNum: MaxNum = MinNum: MinNum = Tmp
  144.    Randomize: NumeroAleatorio = CLng((MinNum - MaxNum + 1) * Rnd + MaxNum)
  145. End Function
  146.  
  147. Private Function ColorCodeToRGB(lColorCode As Long) As Integer()
  148. Dim ColorRGB(2)          As Integer
  149.    ColorRGB(2) = (lColorCode And &HFF0000) \ &H10000  '   //  B
  150.    ColorRGB(1) = (lColorCode And &HFF00&) \ &H100     '   //  G
  151.    ColorRGB(0) = (lColorCode And &HFF)                '   //  R
  152.    ColorCodeToRGB = ColorRGB
  153.    Erase ColorRGB
  154. End Function
  155.  
  156. Public Property Let EnabledTransColor(vData As Boolean)
  157.    TColor = vData
  158.    If Not Timer Is Nothing Then
  159.        Timer.Enabled = TColor
  160.    End If
  161. End Property
  162. Public Property Get EnabledTransColor() As Boolean
  163.    TransColor = TColor
  164. End Property
  165.  
  166. Public Property Let BackgroundColor(vData As Long)
  167.    BackColor = (vData)
  168.    Call Frm_Paint
  169. End Property
  170. Public Property Get BackgroundColor() As Long
  171.    BackgroundColor = BackColor
  172. End Property
  173.  
  174. Public Property Let SpeedTrans(vData As Long)
  175.    sTrans = vData
  176.    If Not Timer Is Nothing Then
  177.        Timer.Interval = sTrans
  178.    End If
  179. End Property
  180. Public Property Get SpeedTrans() As Long
  181.    BackgroundColor = sTrans
  182. End Property
  183.  
  184. Private Sub Class_Terminate()
  185.    If hTheme Then
  186.        Call CloseThemeData(hTheme)
  187.    End If
  188.    Set FRM = Nothing
  189. End Sub
  190.  
  191.  

Ejemplo de una llamada Simple:

En un form X pegar

Código
  1.  
  2. Option Explicit
  3. Private hGlass              As cGlass
  4. Private Sub Form_Load()
  5.    Set hGlass = New cGlass
  6.    With hGlass
  7.        .StartGlass Me
  8.        .BackgroundColor = vbBlue
  9.        .EnabledTransColor = True
  10.        .SpeedTrans = 10
  11.    End With
  12. End Sub
  13.  
  14.  

o

Código
  1.  
  2. Option Explicit
  3. Private hGlass              As cGlass
  4. Private Sub Form_Load()
  5.    Set hGlass = New cGlass
  6.    hGlass.StartGlass Me, vbBlue, True, 10
  7. End Sub
  8.  
  9.  

se me paso poner esto

Sangrientas Lunas!¡.
.
« Última modificación: 1 Febrero 2010, 02:22 am por BlackZeroX▓▓▒▒░░ » En línea

The Dark Shadow is my passion.
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Source] Efecto Luvia de TV
Programación Visual Basic
LeandroA 4 2,434 Último mensaje 14 Diciembre 2010, 11:50 am
por 79137913
[APP & SOURCE] Smart Updater - Añade un auto-actualizador a tus programas FACIL « 1 2 3 4 »
Programación Visual Basic
Mad Antrax 34 14,755 Último mensaje 16 Mayo 2015, 20:26 pm
por zetaperu
[SOURCE] Generar captchas para aplicaciones
.NET (C#, VB.NET, ASP)
Eleкtro 2 2,284 Último mensaje 21 Diciembre 2015, 19:38 pm
por Eleкtro
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines