BLINK
Bom... Gostara de saber se algum sabe como que eu posso fazer um efeito de blink (pisca) em um form, alguma coisa que faça ele piscar continuamente até um segundo comando!!!
João Victor
João Victor
Veja exemplo obtido no site www.mentalis.org que produz o efeito de flash numa janela.
Option Explicit
Const FLASHW_STOP = 0 'Stop flashing. The system restores the window to its original state.
Const FLASHW_CAPTION = &H1 'Flash the window caption.
Const FLASHW_TRAY = &H2 'Flash the taskbar button.
Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY) 'Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION Or FLASHW_TRAY flags.
Const FLASHW_TIMER = &H4 'Flash continuously, until the FLASHW_STOP flag is set.
Const FLASHW_TIMERNOFG = &HC 'Flash continuously until the window comes to the foreground.
Private Type FLASHWINFO
cbSize As Long
hwnd As Long
dwFlags As Long
uCount As Long
dwTimeout As Long
End Type
Private Declare Function FlashWindowEx Lib "user32" (pfwi As FLASHWINFO) As Boolean
Dim FlashInfo As FLASHWINFO
Private Sub Form_Load()
'KPD-Team 1999
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Specifies the size of the structure.
FlashInfo.cbSize = Len(FlashInfo)
'Specifies the rate, in milliseconds, at which the window will be flashed. If dwTimeout is zero, the function uses the default cursor blink rate.
FlashInfo.dwTimeout = 0
'Handle to the window to be flashed. The window can be either opened or minimized.
FlashInfo.hwnd = Me.hwnd
'Specifies the number of times to flash the window.
FlashInfo.uCount = 0
End Sub
Private Sub FlashStart()
'Specifies the flash status
FlashInfo.dwFlags = FLASHW_ALL Or FLASHW_TIMER
FlashWindowEx FlashInfo
End Sub
Private Sub FlashStop()
FlashInfo.dwFlags = FLASHW_STOP
FlashWindowEx FlashInfo
End Sub
Tópico encerrado , respostas não são mais permitidas