Board index » cppbuilder » Problem with events of non-visual AX ctrls under VB5

Problem with events of non-visual AX ctrls under VB5

Hi, dear programmers,

I've encounter problem with events of my ActiveX controls
under VB5. VB5 does not fire my events! But all other containers
work fine (MSOffice, BCB, Delphi, Power++,...).
Originally written in Delphi I rewrote them in native CPP code
to test it under BCB. The problem exists under BCB too.
These components are non-visual and are  simply "wrappers"
for TComponent's descedants as here (sorry for Delphi code):

TWrapper = class(TCustomControl)
  FControl : TMyComponent;
  ...
  PaintWindow(...)
published
  property OnMyEvent : TNotifyEvent
                 read GetControlEvent write SetControlEvent;
  ...
end;

Problem is:
1. VB5 does not fire my events.
               But MSOffice and all other containers does!

 

Re:Problem with events of non-visual AX ctrls under VB5


If I understand you correctly, VB5 doesn't see the events fired by the
AX controls that you wrote. Could that be a VB5 problem? Can you try it
in VB6?

alex

Quote
Alexander Petrov wrote:

[snip]

Re:Problem with events of non-visual AX ctrls under VB5


Alex Bakaev [TeamB] <al...@jetsuite.com> wrote in message
news:38BD73FD.467B2D9A@jetsuite.com...

Quote
> If I understand you correctly, VB5 doesn't see the events fired by the
> AX controls that you wrote. Could that be a VB5 problem? Can you try it
> in VB6?

Hi, Alex,

VB5 does see all my events. I can write event handler in VB with no problem;
then run application, but event handler is not executed when required...

Of course I'll try to test it under VB6, but...
I really would like to have VB5-compartible solution.

Alexander

Other Threads