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"
#Resource "gbsnippets.pbr"
Global hDlg As DWord
%ID_Graphic = 500
Function PBMain() As Long
Dialog New Pixels, 0, "Graphic Get/Set Bits Test",600,300,125,350, %WS_SysMenu, 0 To hDlg
Control Add Button, hDlg, 100, "Load", 10,10,100,20
Control Add Button, hDlg, 100, "Load", 10,40,100,20
Control Add Button, hDlg, 100, "Load", 10,70,100,20
Control Add Graphic, hDlg, %ID_Graphic,"", 10,100,100,100, %WS_Visible Or %SS_Sunken
Control Add Graphic, hDlg, %ID_Graphic,"", 10,220,100,100, %WS_Visible Or %SS_Sunken
Graphic Attach hDlg, %ID_Graphic : Graphic Color %Black,%White : Graphic Clear
Graphic Render "cowgirl", (0,0)-(100,100)
Dialog Show Modal hDlg
End Function
'gbs_00441
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm