Hi,
we are using the OCX in Microsoft VisualFoxpro 9 SP2 with great success. There is only one glitch, that under this environment is shown by the OCX. This behaviour is not shown of the very same OCX when used under C# or C++
The windows used by the subitems of the toolbars or panels are not "connected" to their "parentbutton". Under VFP9 i can move the mainform when such a subitem-window is open. The subitem-window is NOT closed (as it is under c#/c++), but stays open at its position where it was when it was initiated.
This looks like this:
ColorPicker when clicked on Button
[Blockierte Grafik: http://www.betreuung.de/grafik/img1.png]
After moving the main window that holds the ocx by dragging the window with the mouse.
[Blockierte Grafik: http://www.betreuung.de/grafik/img2.png]
This issue happens to ALL subitems from the toolbar or the other Panel-SubItems.
I know that VFP9 is something special because the forms of a VFP9 application have all the same HWND as the MainWindow of VFP itself.
I suspect that TD binds itself with it's events to the main form which is not triggered by VFP "subforms". It should be better to attach itself to the HWND of the OCX itself. Because the ocx-window itself is moved by VFP during moving the mainform you should be able to detect the movement of the window.
If needed i could provide an example EXE which shows that behaviour.
Hope you could provide a solution for this.
Best regards
Michael
LOGO Datensysteme GmbH
http://www.betreuung.de | http://www.datensysteme.de