Author | Topic: DHTMLEdit.DHTMLEdit.1 | |
---|---|---|
Altiy Zemlytskiy | DHTMLEdit.DHTMLEdit.1 on Thu, 11 Sep 2008 17:07:42 +0300 Hi everybody, We are trying to use DHTMLEdit control. It have an object event. --qoute event Object Represents the state of an event, such as the element in which the event occurred, the state of the keyboard keys, the location of the mouse, and the state of the mouse buttons. --end qoute Do somebody know how can I call it? It is not property or method... Many thanks in advance Altiy Zemlytskiy | |
AUGE_OHR | Re: DHTMLEdit.DHTMLEdit.1 on Thu, 11 Sep 2008 16:29:06 +0200 hi, > We are trying to use DHTMLEdit control. It have an object event. do you meen dhtmled.ocx ? > Do somebody know how can I call it? It is not property or method... lets say Event "ondblclick" and Newform() contain your activeX with iVar called "oDHTM" *** snip *** oApp := Newform():new():create() "subscript" some ActiveX Events cEventName := "ondblclick" xVar := oApp:oDHTM:isEventPublished(cEventName) IF xVar <> Nil lSuccess := oApp:oDHTM:SubscribeEvent( xVar, { |a| Msgbox("here is my Event") } ) ENDI *** eof *** greetings by OHR Jimmy | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 11:00:30 +0300 Hi Jimmy, Many thanks. Yes, it works. And the same result I got if I'd write oApp:oDHTML:onmouseDown := {|a|Msgbox("here is my Event"} But how can I get event properties?Let us take look a description, especially red one onMousedown Event Fires when the user clicks the object with either mouse button. Syntax Inline HTML <ELEMENT onmousedown = "handler" ... > All platforms Event property object.onmousedown = handler JScript only object.onmousedown = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only Named script <SCRIPT FOR = object EVENT = onmousedown> Internet Explorer only Event Information Bubbles Yes Cancels Yes To invoke Click a mouse button. Default action Initiates actions associated with the event and with the object being clicked. Event Object Properties Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties. Available Properties altLeft Sets or retrieves a value that indicates the state of the left ALT key. button Sets or retrieves the mouse button pressed by the user. cancelBubble Sets or retrieves whether the current event should bubble up the hierarchy of event handlers. clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars. clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars. ctrlKey Sets or retrieves the state of the CTRL key. ctrlLeft Sets or retrieves the state of the left CTRL key. offsetX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event. offsetY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event. returnValue Sets or retrieves the return value from the event. screenX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen. screenY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen. shiftKey Sets or retrieves the state of the SHIFT key. shiftLeft Retrieves the state of the left SHIFT key. srcElement Sets or retrieves the object that fired the event. type Sets or retrieves the event name from the event object. x Sets or retrieves the x-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event. y Sets or retrieves the y-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event. ------ I need to know the button property of event. Our code block {|a|Msgbox("here is my Event"} do not get any parameters. Any good idea? Many thanks in advance Altiy Zemlytskiy "AUGE_OHR" <AUGE_OHR*AT*WEB.DE> сообщил/сообщила в новостях следующее: news:97f2cd0$40edc993$168@news.alaska-software.com... > hi, > >> We are trying to use DHTMLEdit control. It have an object event. > > do you meen dhtmled.ocx ? > >> Do somebody know how can I call it? It is not property or method... > > lets say Event "ondblclick" and Newform() contain your activeX > with iVar called "oDHTM" > > *** snip *** > oApp := Newform():new():create() > // > // "subscript" some ActiveX Events > // > cEventName := "ondblclick" > xVar := oApp:oDHTM:isEventPublished(cEventName) > IF xVar <> Nil > lSuccess := oApp:oDHTM:SubscribeEvent( xVar, { |a| Msgbox("here is my > Event") } ) > ENDI > *** eof *** > greetings by OHR > Jimmy > > | |
Andreas Gehrs-Pahl | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 07:02:02 -0400 Altiy, >But how can I get event properties? >Although event handlers in the DHTML Object Model do not receive >parameters directly, a handler can query the event object for the >following event properties. Have you tried: oDOM := oApp:oDHTM:DOM nButton := oDOM:Event:Button nX := oDOM:Event:X nY := oDOM:Event:Y etc. The documentation refers to the "DHTML Object Model" or "DOM", which is an object that basically represents your HTML Document, and which should include the "Event Object". -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: Andreas@DDPSoftware.com Owosso, MI 48867-4410 or: Andreas@Aerospace-History.net Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 16:54:33 +0300 Altiy Zemlytskiy "Andreas Gehrs-Pahl" <Andreas@DDPSoftware.com> ???????/???????? ? ???????? ?????????: news:1pww5olhj70q4$.1o9q3prikgk70$.dlg@40tude.net... > Altiy, > >>But how can I get event properties? > >>Although event handlers in the DHTML Object Model do not receive >>parameters directly, a handler can query the event object for the >>following event properties. > > Have you tried: > > oDOM := oApp:oDHTM:DOM > nButton := oDOM:Event:Button > nX := oDOM:Event:X > nY := oDOM:Event:Y > > etc. > > The documentation refers to the "DHTML Object Model" or "DOM", which is > an object that basically represents your HTML Document, and which should > include the "Event Object". > > -- Andreas > > --- --- > Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net > 415 Gute Street or: Andreas@DDPSoftware.com > Owosso, MI 48867-4410 or: Andreas@Aerospace-History.net > Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net > --- --- Clipboard01.jpg | |
Andreas Gehrs-Pahl | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 12:30:12 -0400 Altiy, >many thanks. Unfortunately does not work - Have you also tried: oDOM := oApp:oDHTM:GetProperty('DOM') or: oDOM := oApp:oDHTM:DOM() or: oDOM := oApp:oDHTM:CallMethod('DOM') Access to the DOM object seems to be implemented as a "PropGet()" Method in DHTML Edit Control for IE5 (dhtmled.ocx). The DOM object seems to be an "IHTMLDocument2" object. But the DOM's event object might not be available to you, anyway, as it seems to be designed to be accessed by Scripts -- while executing a script in the HTML code -- rather than the (external/separate) Editor OCX. See also: http://msdn.microsoft.com/en-us/library/ms535863(VS.85).aspx and: http://msdn.microsoft.com/en-us/library/ms533044(VS.85).aspx -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: Andreas@DDPSoftware.com Owosso, MI 48867-4410 or: Andreas@Aerospace-History.net Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Sat, 13 Sep 2008 09:54:21 +0300 Andreas, > Have you also tried: > > oDOM := oApp:oDHTM:GetProperty('DOM') > > or: > > oDOM := oApp:oDHTM:DOM() > > or: > > oDOM := oApp:oDHTM:CallMethod('DOM') Yes, the same result > Access to the DOM object seems to be implemented as a "PropGet()" Method > in DHTML Edit Control for IE5 (dhtmled.ocx). The DOM object seems to be > an "IHTMLDocument2" object. > > But the DOM's event object might not be available to you, anyway, as it > seems to be designed to be accessed by Scripts -- while executing a script > in the HTML code -- rather than the (external/separate) Editor OCX. > > See also: http://msdn.microsoft.com/en-us/library/ms535863(VS.85).aspx > and: http://msdn.microsoft.com/en-us/library/ms533044(VS.85).aspx > Mostly like I do not have a chance | |
AUGE_OHR | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 19:09:03 +0200 hi, >Many thanks. Yes, it works. And the same result I got if I'd write >oApp:oDHTML:onmouseDown := {|a|Msgbox("here is my Event"} > >But how can I get event properties?Let us take look a description, >especially red one try & Error what did you get for Parameter |a| in Codeblock ? ist it a Object ? if yes try |a,b,c ...| greetings by OHR Jimmy | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Sat, 13 Sep 2008 09:43:57 +0300 No, as mentioned, the parameter is NIL... Altiy Zemlytskiy "AUGE_OHR" <AUGE_OHR*AT*WEB.DE> / : news:2f19121f$15732998$50a@news.alaska-software.com... > hi, > >>Many thanks. Yes, it works. And the same result I got if I'd write >>oApp:oDHTML:onmouseDown := {|a|Msgbox("here is my Event"} >> >>But how can I get event properties?Let us take look a description, >>especially red one > > try & Error :) > what did you get for Parameter |a| in Codeblock ? ist it a Object ? > if yes try |a,b,c ...| > > greetings by OHR > Jimmy > > | |
Hannes Ziegler | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 02:54:25 +0200 Altiy, > We are trying to use DHTMLEdit control. It have an object event. > > --qoute > event Object > > Represents the state of an event, such as the element in which the event > occurred, the state of the keyboard keys, the location of the mouse, and > the state of the mouse buttons. > > --end qoute > Do somebody know how can I call it? It is not property or method... Where do you get the "object event" from? Are you sure you are asking the right question? DHtmlEd.idl lists these interfaces: interface IDHTMLSafe : IDispatch interface IDHTMLEdit : IDHTMLSafe The DHTMLEdit control apparently uses these event interfaces dispinterface _DHTMLSafeEvents dispinterface _DHTMLEditEvents FWIW, an event object in Microsoft terminology is something entirely different from an event interface. Maybe you can post some code to explain better what you mean. (the Microsoft docs are miserable when it comes to details ) Regards, -- Hannes | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Fri, 12 Sep 2008 11:01:35 +0300 Hannes, many thanks. Could you pls take a look my answer to Jimmy with explanation of my problem/ Many thanks again Altiy Zemlytskiy "Hannes Ziegler" <hz@knowleXbase.com> ???????/???????? ? ???????? ?????????: news:23d52511$50f1f2f2$4c7@news.alaska-software.com... > Altiy, > >> We are trying to use DHTMLEdit control. It have an object event. >> >> --qoute >> event Object >> >> Represents the state of an event, such as the element in which the event >> occurred, the state of the keyboard keys, the location of the mouse, and >> the state of the mouse buttons. >> >> --end qoute >> Do somebody know how can I call it? It is not property or method... > > Where do you get the "object event" from? > Are you sure you are asking the right question? > > DHtmlEd.idl lists these interfaces: > > interface IDHTMLSafe : IDispatch > interface IDHTMLEdit : IDHTMLSafe > > The DHTMLEdit control apparently uses these event interfaces > > dispinterface _DHTMLSafeEvents > dispinterface _DHTMLEditEvents > > FWIW, an event object in Microsoft terminology is something entirely > different from an event interface. > > Maybe you can post some code to explain better what you mean. > (the Microsoft docs are miserable when it comes to details <g>) > > Regards, > -- > Hannes > | |
Hannes Ziegler | Re: DHTMLEdit.DHTMLEdit.1 on Sat, 13 Sep 2008 02:37:39 +0200 Altiy I'll need to take a closer look at the DHTMLEdit control and see where/when events are fired. Unfortunately, my time is very limited at the moment. I'll come back to you on this issue when time permits. Regards, -- Hannes "Altiy Zemlytskiy" <altiy@wgsoftpro.com> schrieb im Newsbeitrag news:1951ffe7$49ec47ad$8ab@news.alaska-software.com... > Hannes, > > many thanks. Could you pls take a look my answer to Jimmy with explanation > of my problem/ > Many thanks again > > -- > Altiy Zemlytskiy > "Hannes Ziegler" <hz@knowleXbase.com> ???????/???????? ? ???????? > ?????????: news:23d52511$50f1f2f2$4c7@news.alaska-software.com... >> Altiy, >> >>> We are trying to use DHTMLEdit control. It have an object event. >>> >>> --qoute >>> event Object >>> >>> Represents the state of an event, such as the element in which the event >>> occurred, the state of the keyboard keys, the location of the mouse, and >>> the state of the mouse buttons. >>> >>> --end qoute >>> Do somebody know how can I call it? It is not property or method... >> >> Where do you get the "object event" from? >> Are you sure you are asking the right question? >> >> DHtmlEd.idl lists these interfaces: >> >> interface IDHTMLSafe : IDispatch >> interface IDHTMLEdit : IDHTMLSafe >> >> The DHTMLEdit control apparently uses these event interfaces >> >> dispinterface _DHTMLSafeEvents >> dispinterface _DHTMLEditEvents >> >> FWIW, an event object in Microsoft terminology is something entirely >> different from an event interface. >> >> Maybe you can post some code to explain better what you mean. >> (the Microsoft docs are miserable when it comes to details ) >> >> Regards, >> -- >> Hannes >> > > | |
Altiy Zemlytskiy | Re: DHTMLEdit.DHTMLEdit.1 on Sat, 13 Sep 2008 09:44:23 +0300 Many thanks Altiy Zemlytskiy "Hannes Ziegler" <hz@knowleXbase.com> ???????/???????? ? ???????? ?????????: news:70e408d5$79fa55a9$993@news.alaska-software.com... > Altiy > > I'll need to take a closer look at the DHTMLEdit control and see > where/when events are fired. Unfortunately, my time is very limited at the > moment. I'll come back to you on this issue when time permits. > > Regards, > -- > Hannes > > "Altiy Zemlytskiy" <altiy@wgsoftpro.com> schrieb im Newsbeitrag > news:1951ffe7$49ec47ad$8ab@news.alaska-software.com... >> Hannes, >> >> many thanks. Could you pls take a look my answer to Jimmy with >> explanation of my problem/ >> Many thanks again >> >> -- >> Altiy Zemlytskiy >> "Hannes Ziegler" <hz@knowleXbase.com> ???????/???????? ? ???????? >> ?????????: news:23d52511$50f1f2f2$4c7@news.alaska-software.com... >>> Altiy, >>> >>>> We are trying to use DHTMLEdit control. It have an object event. >>>> >>>> --qoute >>>> event Object >>>> >>>> Represents the state of an event, such as the element in which the >>>> event occurred, the state of the keyboard keys, the location of the >>>> mouse, and the state of the mouse buttons. >>>> >>>> --end qoute >>>> Do somebody know how can I call it? It is not property or method... >>> >>> Where do you get the "object event" from? >>> Are you sure you are asking the right question? >>> >>> DHtmlEd.idl lists these interfaces: >>> >>> interface IDHTMLSafe : IDispatch >>> interface IDHTMLEdit : IDHTMLSafe >>> >>> The DHTMLEdit control apparently uses these event interfaces >>> >>> dispinterface _DHTMLSafeEvents >>> dispinterface _DHTMLEditEvents >>> >>> FWIW, an event object in Microsoft terminology is something entirely >>> different from an event interface. >>> >>> Maybe you can post some code to explain better what you mean. >>> (the Microsoft docs are miserable when it comes to details <g>) >>> >>> Regards, >>> -- >>> Hannes >>> >> >> > |