Some more flexible and very similar to perl/Tk approach is using
Tcl::Tk, it has ActiveX support, but it is somehow limited and I did not tried it seriously.
A proof-of-concept could be seen at the very bottom of a
http://vkonovalov.ru/perl-tcltk.htm page