Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE "testA.exe"
#Dim All
%Unicode=1
#Include "win32api.inc"
%IDC_TextBox = 500
Global hDlg As DWord
Function PBMain() As Long
Local style&
Dialog New Pixels, 0, "TextBox TestA",300,300,200,200, %WS_SysMenu, 0 To hDlg
Control Add TextBox, hDlg, %IDC_TextBox,"Edit Me!", 50,50,100,120, Style&
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 = %EN_Change Then
hDlg = FindWindow("#32770", "TextBox TestB")
End If
End Function
'gbs_00712
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm