Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 10
#Compile Exe
#Dim All
%Unicode = 1
#Include "Win32API.inc"
%IDC_ButtonA = 500
%IDC_ButtonB = 501
Global hDlg,hChild As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Parent Dialog",300,300,200,200, %WS_OverlappedWindow To hDlg
Control Add Button, hDlg, %IDC_ButtonA, "Push", 10,10,50,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_ButtonA
Dialog New Pixels, hDlg, "Child Dialog", 10,10,100,100, %WS_SysMenu To hChild
Control Add Button, hChild, %IDC_ButtonB, "Push", 10,10,50,20
Dialog Show Modeless hChild
Case %IDC_ButtonB
? "Button pushed"
End Select
End Select
End Function
'gbs_01204
'Date: 05-11-2013
http://www.garybeene.com/sw/gbsnippets.htm