jimking wrote:
Just click everywhere ON the widget and press "F5". Works like the windows refresh..

i didn't know this...
it hadn't been pointed anywhere,
thanks
=============
yereverluvinuncleber wrote:
I do need to be able to do this in code though. All my previous widget engines have a simple "Reload Widget" which exists to sort out widgets that are malfunctioning through getting confused, communication, thread, memory issues all sorted by a 'reload widget'. I reckon the function might be in there somewhere I just don't know whether or where.
i don't know if the Reload command going to be available in next version or not...
but as a
temporary solution:
you can send keyboard input in code by using ActiveX objects,
so you can send F5 to your widget through code:
example:
Code:
wsc=new ActiveXObject("WScript.Shell")
widget.ForceToFround()
wsc.SendKeys("{f5}")
Comment:
1. 1st line will create activex object
2. 2nd line will make the widget to TopMost and Set Focus to it
3. 3rd line will send F5 key
Note:make sure you set the focus to your widget before sending key to it (as i have done it in 2nd line),
to prevent sending key incorrectly to other programs