|
Hello,
Working on a VisStudio 2008 addin, using managed C++ (C++/CLR in the New Project wizard).
In the OnConnection() function, I want to add a handler to the WindowEvents collection.
When I do this:
// Hook up events
EnvDTE::Events ^ events = _applicationObject...
Started by Number8 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Found the answer:
EnvDTE::Events ^ events = _applicationObject->Events; _winEvents = events-....
WindowEvents is a property not a method.
Try
EnvDTE::WindowEvents ^winEvents = events->WindowEvents;
without the ().
|
|
With the help of fiddler, I did this "replay attack" with the following HTTP GET request
http://svr/Default.aspx ? __EVENTTARGET=LinkButton1 &__EVENTARGUMENT=&__VIEWSTATE=%2snipg%3D%3D&__EVENTVALIDATION=%2snip
To my surprise, it works as long as there...
Started by MatthewMartin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In event hadler you can either check:
_EVENTTARGET_ , _VIEWSTATE.
Do it either as a separate HttpModule or in Global.asax .
Attach to application's PreRequestHandlerExecute event.
You can yes.
|
|
Any ideas why this doesn't work, or how to make it work? I want to remove the "onmouseover" and "onmouseout" events so they are basically disabled and at the same time change the background color. Then when the user clicks on another element I want to...
Started by Ronedog on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In order ....
Just
The problem was solved by not hard coding the mouse events in the HTML, but rather binding them in the document.ready 1st.
On your events, take out the 'on'...
Then it'll work.
Remove the "on" from the event names.
|
Ask your Facebook Friends
|
Hello,
I have a question, which I can't seem to decide on my own so I'll ask here. The question is simple: whether use inline Javascript events or adding them afterward. The theory in the background isn't that simple though:
I have a JS object that returns...
Started by Tower on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Javascript event handlers they will be evaluated as soon as you append your generated html could populate them with the text content and attach....
I cant see it making much of a difference- if you just render your events using "onclick" etc.
|
|
I'm trying to show a list of the next 20 days' events from a Google calendar account. Infuriatingly recurring events aren't being shown (I assume because their start times are old)... So. Any ideas?
require_once dirname(__FILE__).'/../../../Zend/Loader...
Started by Oli on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is per the Google Calendar API is something I'... .
Valid');
Will give you all sorts of extra data, including recurring events.
Singleevents
Indicates whether recurring events should be expanded or represented as a single event.
|
|
I love the AS3 event model - it helps keep my code clean and lossely coupled. When I used to work on AS2 projects, my code was not so neat and classes were more reliant on one another. Due to AS2's strange handling of scope I never really got on with ...
Started by Iain on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The first being an Event class, as follows:
class; public var type:String; function Event....
A couple of classes should get you going.
Its quite easy to do this, actually.
The UI components also have very AS3-like event dispatching.
|
|
Really pulling my hair out with this one...
I have a C# project with an interface defined as:
/* Externally Accessible API */ [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface ISerial { [DispId(1)] bool Startup(); [DispId(2)] bool...
Started by Eric on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ComSourceInterfaces(typeof(DBCOM_Events))] public class DBCOM_Class : DBCOM_Interface {
You have this part
// // Events interface Database_COMObjectEvents [Guid("47C976E0-C208-4740-AC42-41212D3C34F0"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch....
|
|
Hello guys.
I built (just for fun) 3 classes to help me log some events in my work.
here are them:
class logMessage: def __init__(self,objectName,message,messageType): self.objectName = objectName self.message = message self.messageType = messageType ...
Started by George on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then just import your logging module in every file you want to log from and do something like this:
yourloggingmodule.handler.newLogMessage(...)
Where handler is the name of the instance... .
Just create an instance of your classes in the module you posted .
|
|
I have a JFace editor that is mostly made up of a TreeViewer. This is hooked up to a ContentOutlinePage to bring the Outline view to life.
When either one receives a SelectionChangedEvent event they call the others setSelection() method ... and therein...
Started by Martin Cowie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This ensures on top of the event stack (ie executed....
If the flag the event listener, make the selection, add the eventlistener back again.
If the flag is set, then you exit without processing .
Are in the middle of the event handler.
|
|
My form receives asynchronous callbacks from another object on random worker threads. I have been passing the data to the main thread (where it can be used to update onscreen controls) using delegates as shown below. Performance is dreadful -- once I ...
Started by Eric on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you....
You may utilize StopWatch or other timing system to collect events during a period of time, and then update UI when appropriate.
You probably don't need to update UI on every event, but rather "not as often as X times per second".
|