1C:Enterprise platform integration capabilities and techniques
How can I place an ActiveX component on the managed form? For example Flash Player. I could insert it using HTML Template, but can’t handle it’s events. How to use Flash and manage it from 1C:Enterprise and receive it’s events?
There are "Form"->"Insert ActiveX" in russian ver sion(when the form is active)
Can't see that. Is if for managed form?
Yes.
Maybe I'm blind... Can you please provide a screenshot?
Sorry. That was on old version. I have example with HTML for googlemap agregation on form. Maybe it help you.
SysInfo = New SystemInfo; If Find(SysInfo.UserAgentInformation,"MSIE") > 0 Then Map = Items.HTMLString.Document.parentWindow; Else Map = Items.HTMLString.Document.defaultView; Map.IE = false; EndIf; Point = Items.HTMLString.Document.getElementById("beacon");
i think "AddHandler Point.onscroll, SrollEvent ; " is what You need.
Event code:
Procedure ScrollEvent(args) ObjectType = GISMap_OverlayObjectTypes[Map.lastevent_objecttype]; EventType = GISMap_OverlayEventTypes[Map.lastevent_name]; If Map.lastevent_args = Undefined Then args= Undefined ; Else args= New Strunture("Lat,Lng", Map.eval("lastevent_args.latLng.lat()"), Map.eval("lastevent_args.latLng.lng()")); EndIf; ///...
Interesting idea, thank you, Cocos!