Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin10
#Compile Exe
#Dim All
#Include "Win32API.inc"
Global hDlg,hWin As Dword
Function PBMain() As Long
Txt.Window "Debug", 300,300,80,20 To hWin
Dialog New Pixels, 0, "Test Code",300,300,200,200, %WS_OverlappedWindow To hDlg
Control Add Button, hDlg, 100,"Push", 50,10,100,20
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
If Cb.Msg = %WM_Command And Cb.Ctl = 100 And Cb.CtlMsg = %BN_Clicked Then
Local i As Long
For i = 1 To 100
Txt.Print Str$(i)
Next
End If
End Function
'gbs_01261
'Date: 05-11-2013
http://www.garybeene.com/sw/gbsnippets.htm