'Problem with TXT.WINDOW "focus" in PBCC
'
'(see comments in PBMain()
'
Any suggestions?
Cheers,
'
'(see comments in PBMain()
'
Code:
#compile exe #dim all %UNICODE = 1 function TxtWindow () as long local hTWin as dword ' txt.window ("test", 120, 120, 5, 60) to hTWin txt.print "Some text."$$ '(API function SetFocus(hTWin) does not work)((tested and read learn.microsoft)) txt.waitkey$ txt.end end function ' function pbmain () as long local hTWin as dword con.print "Open a TXT.WINDOW on any key."$$ 'con.waitkey$ 'REMed out the TXT.WINDOW receives keystrokes 'unREM the line to see the problem 'The caption in TXT.WINDOW "greyed" with CON.WAITKEY$ here. 'Click on TXT.WINDOW, then TXT.WAITKEY$ (above) works. TxtWindow ' con.print "Close on any key."$$ con.waitkey$ end function '
Cheers,
Comment