Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plugging in custom ActiveX control into Windows Desktop Gadget

Status
Not open for further replies.

djjd47130

Programmer
Nov 1, 2010
480
US
I've been experimenting with placing an ActiveX component inside a windows desktop gadget, and have some issues. First of all, I'm building this component with Delphi. It imports OK, but I need to know how do I properly access this ActiveX object from javascript? Also, how do I assign events via javascript? Do I call for example MyObject.OnCreate = ObjectCreated(Sender); ? or am I missing something? If I publish an event of my own such as OnLog(Text: String); then do I make a function ObjectLog(Text) {} and then assign it by setting MyObject.OnLog = ObjectLog(Text); ?

HTML and Javascript are still fairly new to me, as well as ActiveX.

Also, when I hover the mouse over the ActiveX control, it gadget doesn't recognize the mouse movement, thus doesn't show the buttons and doesn't activate. I have to have some sort of border around it to catch the mouse movement. How do I carry through mouse movement on the control to the gadget?


JD Solutions
 
One other issue, I've declared an image as the primary icon, as described in MSDN's tutorial for gadgets, but the icon doesn't show? It just shows the default icon for gadgets which don't have an icon assigned - but I have a perfectly valid 64x64 PNG image properly linked in the XML, I've quadruple checked it.

JD Solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top