Shoutbox

ocx in dialogs? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: ocx in dialogs? (/showthread.php?tid=62069)

ocx in dialogs? by felipEx on 06-29-2006 at 11:06 PM

is possible to introduce a ocx control in dialog window?
;)


RE: ocx in dialogs? by deAd on 06-29-2006 at 11:51 PM

You couldn't get events from it even if you did.


RE: ocx in dialogs? by ShawnZ on 06-29-2006 at 11:53 PM

quote:
Originally posted by deAd
You couldn't get events from it even if you did.

sure you could...
RE: ocx in dialogs? by deAd on 06-29-2006 at 11:54 PM

Uh, how? JScript can't interpret events very well. Ever try to get events from a COM object?


RE: ocx in dialogs? by felipEx on 06-29-2006 at 11:57 PM

how.. :P


RE: ocx in dialogs? by ShawnZ on 06-30-2006 at 12:01 AM

quote:
Originally posted by deAd
Uh, how? JScript can't interpret events very well. Ever try to get events from a COM object?

indeed i have?
RE: ocx in dialogs? by felipEx on 06-30-2006 at 12:02 AM

JScript can interpret events xD


RE: ocx in dialogs? by deAd on 06-30-2006 at 01:10 AM

I know that, but it can't for many. The default plus! ones, a couple others. That's pretty much it -- and you can't sink events from a COM object. If you can, please tell me how :P


RE: ocx in dialogs? by ShawnZ on 06-30-2006 at 01:45 AM

something like

function ComObject::Event() {
}


RE: ocx in dialogs? by deAd on 06-30-2006 at 02:02 AM

It tells me the object doesn't exist :/, tried that a while ago...


RE: ocx in dialogs? by -dt- on 06-30-2006 at 02:33 AM

quote:
Originally posted by deAd
It tells me the object doesn't exist :/, tried that a while ago...

thats because of the crappy jscript parser parses all functions first so you have to wrap it

code:
var comObject = //com here
var runme = function(){
   function ComObject::Event() {

   }
}
runme();


RE: ocx in dialogs? by deAd on 06-30-2006 at 01:44 PM

Still..."Error: 'ComObject' is null or not an object."

I'm sure its declared though. It uses "new ActiveXObject(...)" to create it, is that ok?


RE: ocx in dialogs? by -dt- on 06-30-2006 at 02:13 PM

quote:
Originally posted by deAd
Still..."Error: 'ComObject' is null or not an object."

I'm sure its declared though. It uses "new ActiveXObject(...)" to create it, is that ok?
paste that section of code
RE: ocx in dialogs? by deAd on 06-30-2006 at 04:11 PM

Wait nevermind, had put something in the wrong place :P