From: Leif W <war...@us...> - 2004-02-24 17:08:12
|
See dynapi/examples/dynapi.event.nocontextual.htm. I'm not sure, but I think it cancels the mouse event after that point. But you should have captured it by then, so you can do what you need within the same block. I've never actually experiemented so I'm not 100% sure, it's a good question, and probably should have an example of it's own, but I dunno if 2.5 is being maintained anymore. myListener = new EventListener(); myListener.onrtmousedown=function(e) { e.cancelBrowserEvent(); // other stuff like open a custom dynlayer }; myListener.onrtmouseup=function(e) { e.cancelBrowserEvent(); // other stuff close the custom dynlayer }; ----- Original Message ----- From: "Cristina Gutiu" <Cri...@is...> To: <dyn...@li...> Sent: Tuesday, February 24, 2004 8:08 AM Subject: [Dynapi-Help] Context menu Hi again, friends. I still have some questions :)). Could you help me regarding how to reset the default context menu on a DynLayer(from DynApi 2.5) to point to my context menu? Until now, my mousedown event could not be launched while clicking the right mouse button. Instead, the default context menu is launched. I wonder now why the left mouse click is captured, while the right mouse click isn't? I'm reasearching now this problem, but some pointed help would be just perfect. Greetings, Cristina -----Original Message----- From: Leif W [mailto:war...@us...] Sent: Tuesday, February 24, 2004 9:19 AM To: dyn...@li... Subject: Re: [Dynapi-Help] Mouse Events - HELP required Hope it helps. The example seemed to add an event listener for every mouse event to a single DynLayer. If you're still having trouble, try to make a simple example page and explain what you're trying to do, and send the code to the list. About the DynAPI version. Understood! Now is not the time to change versions, for sure! :-) Only for learning, and for a new project. Leif ----- Original Message ----- From: "Cristina Gutiu" <Cri...@is...> To: <dyn...@li...> Sent: Tuesday, February 24, 2004 2:05 AM Subject: RE: [Dynapi-Help] Mouse Events - HELP required Leif, Thanks a lot for advices, I will look after the example you've specified. I still haven't solve the problem, I will try more. Regarding DynApi version, I'm in a hurry with my project, and it was started with 2.5 version, so the overhead could be bigger if I will change now the version. Thnx again. Cristina -----Original Message----- From: Leif W [mailto:war...@us...] Sent: Tuesday, February 24, 2004 9:00 AM To: dyn...@li... Subject: Re: [Dynapi-Help] Mouse Events - HELP required Hi! I'm not too familiar with 2.5, haven't used it much recently. Have you got 2.5.7? It's the newest copy I have here. There's an example in dynapi/examples/dynapi.event.mouseevents.htm which might help you. But if you have the freedom, please consider using DynAPI 3, as it is newer and more development going on there and a lot of new features. Take a look. I think more people can help from DynAPI 3. But it's up to you. :-) Leif ----- Original Message ----- From: "Cristina Gutiu" <Cri...@is...> To: <dyn...@li...> Sent: Monday, February 23, 2004 8:47 AM Subject: [Dynapi-Help] [Dynapi-Help]Mouse Events - HELP required Hi everyone. I'm using DynApi 2.5 and I need help in handling event on a DynLayer. The probelm can be defined like this : - I'm inheriting a DynLayer in my object in order to dinamically display it on html. Now, I want to handle mouse events on that layer, but my work is in vain until now. Can you help me? I do not know how to attach mouse events to my layer, and the layer to be sensitive for them. I've been working on this since several hours. Can you , please, respond me ASAP? Thanks a lot. Cristina Gutiu -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] Sent: Monday, February 23, 2004 3:49 PM To: Cristina Gutiu Subject: Dynapi-Help -- confirmation of subscription -- request 986260 Dynapi-Help -- confirmation of subscription -- request 986260 We have received a request from 10.3.1.7 for subscription of your email address, <cri...@is...>, to the dyn...@li... mailing list. To confirm the request, please send a message to dyn...@li..., and either: - maintain the subject line as is (the reply's additional "Re:" is ok), - or include the following line - and only the following line - in the message body: confirm 986260 (Simply sending a 'reply' to this message should work from most email interfaces, since that usually leaves the subject line in the right form.) If you do not wish to subscribe to this list, please simply disregard this message. Send questions to dyn...@li.... ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |