Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > How to Place ActiveX component on 1C:Enterprise Form?

Forum

Search UsersRules
How to Place ActiveX component on 1C:Enterprise Form?
#1
Active user
Points:: 2
Joined:: Sep 16, 2011

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?

Profile
#2
Active user
Points:: 1
Joined:: Nov 24, 2011

There are "Form"->"Insert ActiveX" in russian ver sion(when the form is active)

Profile
#3
Active user
Points:: 2
Joined:: Sep 16, 2011

Can't see that. Is if for managed form?

Profile
#4
Active user
Points:: 1
Joined:: Nov 24, 2011

Yes.

Profile
#5
Active user
Points:: 2
Joined:: Sep 16, 2011

Maybe I'm blind... Can you please provide a screenshot?

Profile
#6
Active user
Points:: 1
Joined:: Nov 24, 2011

Sorry. That was on old version. I have example with HTML for googlemap agregation on form. Maybe it help you.

Code
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");

AddHandler Point.onscroll, SrollEvent ;

Profile
#7
Active user
Points:: 1
Joined:: Nov 24, 2011

i think "AddHandler Point.onscroll, SrollEvent ; " is what You need.

Profile
#8
Active user
Points:: 1
Joined:: Nov 24, 2011

Event code:

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;
   ///...

Profile
#9
Active user
Points:: 2
Joined:: Sep 16, 2011

Interesting idea, thank you, Cocos!

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.