Custom ActiveX in GUI

0 views
Skip to first unread message

GVP

unread,
Apr 10, 2006, 9:39:43 AM4/10/06
to BRIZ
Hello,

Now You can create custom AxtiveX and insert it in GUI
dialogs/forms/screen
HOWTO:
1 Create custom ActiveX by VB (or other DevTools)
2 Place it in local folder (or in system folder)
3 In PB program create object
CALL
GP.DlgCreateObj(MyDlg,"MyAx","CONTROL","CLSID=MyActiveX;STYLE=WS_CHILD|WS_VISIBLE;RECT=xx,xx,xx,xx;")
where:
CLSID=xxxxxxxx; is ActiveX class ID (see example for datails)
You can also specify ActiveX filename for autoregistration
CLSID=xxxxxxxx,ffffff.ocx;

All events and methods starts from "_" for example "_MyEven"
You can create any amount of Methods and Events

You can download example for VB:
http://infotools.ru/products/BRIZ/DOWNLOADS/EXAMPLE_ACTIVEX.zip
CLSID is ExBRIZActiveX.ExampleBRIZActiveX
or
ExBRIZActiveX.ExampleBRIZActiveX,ActiveX\ExampleBRIZActiveXproject.ocx
if You copy file ExampleBRIZActiveXproject.ocx to folder ActiveX in
BRIZ working folder.
See remarks in project for details.

You can download template for Your own ActiveX
http://infotools.ru/products/BRIZ/DOWNLOADS/BRIZ_ACTIVEX_TEMPLATE.zip
just rename project and ActiveX names.

Instead _Methods and _Events You can use COM methods inside custom
ActiveX.
Now every instance of terminal registering with name GPT_xxxx where
xxxx is HWND of main window. This name plased into m_TermRegName string
in ActiveX project.
Then possible Set term = BRIZ_Connector.GetTerminal(TermRegName)

Feel free for questions.

Grigory

Reply all
Reply to author
Forward
0 new messages