What type of objects/controls?

From: KKF (heavylite_at_o2.pl)
Date: 04/08/04


Date: Thu, 8 Apr 2004 18:31:33 +0200

I need to create a class that will be instantiated in Delphi6 but also in
JScript (to run JScript from Delphi application I'm using MS Script ActiveX
Control).
- Do I have to create an ActiveX or OLE Automation Objects that would be
used like:

  D6: xxx := CreateOleObject('registered_name');
  JS: var xxx = new ActiveXObject("registered_name");

  ? (to be honest, I don't exactly know what are automation objects so I'm
trying to avoid dealing with 'em)

- If an ActiveX is OK tell me how to create one (using Delphi6) or give a
link.
- If not exactly, please recommend me any better solution.

The class instance will contain some info about its type, name, some arrays
or recordsets, lists, blahblah (or - it'll be some XML scructure, not
important so far).
I'd like to know how to code event handlers for such object, e.g. before
update a field, after update, delete etc.
How to do it in D6 and JScript?

The similar issue with my VCL controls.
I did some custom grids and stuff and I'd like to make their props (like
Columns, Top, Left, Visible, Enabled etc.) accessible from JScript.
How?

Thanks in advance,
Kris



Relevant Pages

  • What type of objects/controls?
    ... I need to create a class that will be instantiated in Delphi6 but also in ... JScript (to run JScript from Delphi application I'm using MS Script ActiveX ... Do I have to create an ActiveX or OLE Automation Objects that would be ...
    (borland.public.delphi.database.ado)
  • How to capture WMP events with script (and not HTML)?
    ... How does one capture Windows Media Player events in JScript? ... would have to write-out HTML in order to get JScript functionality. ... With other ActiveX controls, ... This event handler even receives a parameter. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Array with ActiveX
    ... > transform VBArray to JSArray with method toArray. ... VBArray is not JScript language but it's VBScript language and I ... > argument in ActiveX function without using VBScript element. ...
    (microsoft.public.scripting.jscript)
  • PIE jscript ActiveX Scripting.FileSystemObject
    ... I want to list and write files with jscript on HTML files on a pocket pc ... we should use the ActiveX ... On pocketpc this ActiveX does not exists. ... Is anyone has better examples to show how to use these activeX in jscript? ...
    (microsoft.public.pocketpc.developer)