🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.borland-delphi
Article #121

What type of objects/controls?

#121
From: KKF
Date: Thu, 08 Apr 2004 16:31
31 lines
2903 bytes
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
Technical Details
Message-ID: <c53utq$t0t$1@nemesis.news.tpi.pl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd817,1551fe1fdfb6c1cf,start
X-Google-Attributes: gidfd817,public
X-Google-Thread: f6386,1551fe1fdfb6c1cf,start
X-Google-Attributes: gidf6386,public
X-Google-Thread: 16f967,1551fe1fdfb6c1cf,start
X-Google-Attributes: gid16f967,public
X-Google-Thread: f5214,1551fe1fdfb6c1cf,start
X-Google-Attributes: gidf5214,public
X-Google-Thread: f5cad,1551fe1fdfb6c1cf,start
X-Google-Attributes: gidf5cad,public
X-Google-Thread: 105ac8,1551fe1fdfb6c1cf,start
X-Google-Attributes: gid105ac8,public
X-Google-Thread: 107d5a,1551fe1fdfb6c1cf,start
X-Google-Attributes: gid107d5a,public
X-Google-ArrivalTime: 2004-04-08 09:31:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "KKF" <heavylite@o2.pl>
Newsgroups: alt.comp.borland-delphi,alt.comp.lang.borland-delphi,borland.public.delphi.activex.controls.using,borland.public.delphi.activex.controls.writing,borland.public.delphi.database.ado,borland.public.delphi.database.multi-tier,borland.public.delphi.deplo
Subject: What type of objects/controls?
Date: Thu, 8 Apr 2004 18:31:33 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 33
Message-ID: <c53utq$t0t$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: pk73.warszawa.cvx.ppp.tpnet.pl
X-Trace: nemesis.news.tpi.pl 1081442043 29725 213.76.106.73 (8 Apr 2004 16:34:03 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 8 Apr 2004 16:34:03 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165