Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compile Exe
#Dim All
%Unicode=1
#Include "Win32API.inc"
%IDC_Button = 500
Global hDlg as Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Test Code",300,300,200,200, %WS_OverlappedWindow To hDlg
Control Add Button, hDlg, %IDC_Button,"Push", 50,10,100,20
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Select Case Cb.Msg
Case %WM_Command
Select Case Cb.Ctl
Case %IDC_Button
Select Case Cb.CtlMsg
Case %BN_Clicked
End Select
End Select
End Select
End Function
'Control Add Graphic, hDlg, 102, "", 10,10,10,10
'Control Add Image, hDlg, 103, "", 10,10,10,10
'Control Add ImageX, hDlg, 104, "", 10,10,10,10
'Control Add Label, hDlg, 105, "", 10,10,10,10
'Control Add Line, hDlg, 106, "", 10,10,10,10
'Control Add ListBox, hDlg, 107, , 10,10,10,10
'Control Add Progressbar, hDlg, 108, "", 10,10,10,10
'Control Add ScrollBar, hDlg, 109, "", 10,10,10,10
'Control Add Button, hDlg, 110, "", 10,10,10,10
'Control Add Check3State, hDlg, 111, "", 10,10,10,10
'Control Add CheckBox, hDlg, 112, "", 10,10,10,10
'Control Add Frame, hDlg, 113, "", 10,10,10,10
'Control Add ImgButton, hDlg, 114, "", 10,10,10,10
'Control Add ImgButtonX, hDlg, 115, "", 10,10,10,10
'Control Add ListView, hDlg, 116, "", 10,10,10,10
'Control Add Option, hDlg, 117, "", 10,10,10,10
'Control Add Statusbar, hDlg, 118, "", 10,10,10,10
'Control Add Tab, hDlg, 119, "", 10,10,10,10
'Control Add Toolbar, hDlg, 120, "", 10,10,10,10
'Control Add Treeview, hDlg, 121, "", 10,10,10,10
'gbs_01165
'Date: 03-25-2012
http://www.garybeene.com/sw/gbsnippets.htm