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"
Global hDlg As DWord
Function PBMain() As Long
Dialog New Pixels, 0, "Test Code",300,300,250,250, %WS_OverlappedWindow To hDlg
Control Add Button, hDlg, 100,"Push", 10,10,100,25
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
Control Add Image, hDlg, 200,"Push", 25,40,5,5, %WS_Border
For i = 2 To 100 Step 2
Sleep 25
Control Set Size hDlg, 200, i, i
Control Redraw hDlg, 200
Next i
End If
End Function
'gbs_00572
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm