ricozone
04-01-2010, 01:12 PM
Hi,
i'm having a problem to find the way to get the focus in webbrowser form.
With "enableAccelerators = false", the focus is on the webBrowser but i can't find an event that works to fire this "enableAccelerators = false" after loosing focus.
For example :
rollout test "Test"
(
dotNetControl wb "system.windows.forms.webbrowser" height:480
on test open do
(
enableAccelerators = false
wb.url = dotNetObject "System.Uri" "http://www.cgsociety.org"
)
on wb Click arg do (
enableAccelerators = false -- enable focus on webbrowser
print ("enableAccelerators: " + enableAccelerators as string)
)
)
createDialog test 600 500
With this snippet, if you go to the login input field of "cgsociety.org", at first you can type text in it.
Now click on max's viewport (loosing focus) and return to the webbrowser, try to type any text in input field....not possible.
Why the event "on click" does not work ?
Thanks for your help.
i'm having a problem to find the way to get the focus in webbrowser form.
With "enableAccelerators = false", the focus is on the webBrowser but i can't find an event that works to fire this "enableAccelerators = false" after loosing focus.
For example :
rollout test "Test"
(
dotNetControl wb "system.windows.forms.webbrowser" height:480
on test open do
(
enableAccelerators = false
wb.url = dotNetObject "System.Uri" "http://www.cgsociety.org"
)
on wb Click arg do (
enableAccelerators = false -- enable focus on webbrowser
print ("enableAccelerators: " + enableAccelerators as string)
)
)
createDialog test 600 500
With this snippet, if you go to the login input field of "cgsociety.org", at first you can type text in it.
Now click on max's viewport (loosing focus) and return to the webbrowser, try to type any text in input field....not possible.
Why the event "on click" does not work ?
Thanks for your help.
