Wow, what a large site!
I am still getting my feet wet. I created a couple of canvas windows. I was experimenting with setfocus and getfocus, and am probably not using them correctly. But I thought you might appreciate some comments:
1) The statement "k1 = Win_GetFocus()" gives a misleading error: says "token found: k1" when actually maybe the ()'s shouldn't be there.
2) Win_GetFocus always gives 0. Am I missing something?
3) The debugger is great, but gives an error when I hit the "stop" button. No big deal.
4) When I copy code from MSWord into thinAir, I get double spacing. Also no big deal.
5) Ctl-V doesn't work from the Help. (Right-click/copy does work.)
Uses "Console", "ui"
Dim hwnd, k1 As Long
hwnd = Canvas_Window("Test", 100, 100, 400, 300)
Canvas_Attach(hwnd, 0, %FALSE)
Win_SetFocus(hwnd)
k1 = func1
k1 = func1() ' ()s no problem here
k1 = Win_GetFocus
k1 = Win_GetFocus() ' this gives misleading error? "token found: k1"
MsgBox 0, k1
Function func1() As Long
Function = 1
End Function
This is all small stuff. I am really impressed with TB. Thanks, Art
Bookmarks