ActiveX problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ActiveX problem

John Rubier
I'm having several problems getting the Mappoint ActiveX control to work
properly under Dolphin. It's apparent the MP control is not very well
behaved (but what else would you expect from the inventors of the
technology?) but I either make it work with Dolphin or I write yet
another VB app ;) (something I never want to do again after starting to
learn ST). Apparently the control is difficult to use in anything but
VB6 (and perhaps .Net).
The first problem is solved: The ActiveX window is created but with
WS_DISABLED preventing mouse interaction with the control. I fixed that
by grabbing the AX top window and adjusting the style.

The next problem I haven't been so lucky with: For certain items, MP
will display a modal dialog box. The dialog box it parented to the
Windows desktop. If I observe messages to the dialog, they don't
actually arrive into the dialog window until the cursor is moved over
the Dolphin shell window. i.e. If I grab the title bar an move the
mouse, nothing happens even after releasing the mouse button. When I
move the cursor over the Dolphin shell window, the dialog receives a
flood of the windows messages (position, etc).

If anyone can suggest an approach to tracking this down, it would be
much appreciated!

Regardless, a second project I'm working on is coming along just fine in
Dolphin. The environment and language are a joy to work with. Kudos to
all involved!

Take care,

John


Reply | Threaded
Open this post in threaded view
|

Re: ActiveX problem

John Rubier
Well, I have a sort-of workaround for this. My clue was the description
for CommonDialog about how it hogs the message loop and only
occasionally send idle messages.
I ended up adding "SessionManager inputState startIdleTimer: (self view
topShell )." to the shell's onViewDeactivated: handler and
"SessionManager inputState stopIdleTimer: (self view topShell )." to
the shell's onViewActivated handler.
The dialogs *generally* responds well to user input, though sometimes
it will display the previous behavior.

I this safe?
I there a better solution?

Thanks,

John