Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
#Include "Win32API.inc"
%ID_Timer = 500
Global hDlg as Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Test Code",300,300,200,200, %WS_OverlappedWindow To hDlg
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Static Flash As Long
Select Case Cb.Msg
Case %WM_InitDialog
SetCapture hDlg
SetTimer(hDlg, %ID_Timer, 250&, %NULL) 'sends %WM_Timer to dialog callback
Case %WM_Destroy
KillTimer CB.Hndl, %ID_Timer
Case %WM_Timer
Dialog Set Text hDlg, Str$(Flash)
ShowCursor Flash
Flash = Flash Xor 1
End Select
End Function
'gbs_01029
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm