Hello,
I have a sample form with 3 windows. Each window has a label and the main form has a button.
I have a class with the following code:
public class CustomEventArgs : EventArgs
{
public string Message { get; set; }
public CustomEventArgs(string message)
{
Message = message;
}
}
public delegate void Cus...
I just read this article on how to create global hotkeys using Carbon events. In the comments the author mentioned, that he wouldn't probably use this technology anymore because it's the 'way to deprecation'. So far, so good.
Now I'm looking for the Cocoa pendant. Does anyone have a hint where to search for it? I tried to google it for ...
Here my code snippet written in Qt.
bool myFunc()
{
.......
while(!tcpCommunicator->isLoginReplyExist)
{
qApp->processEvents(QEventLoop::AllEvents);
}
.......
return tcpCommunicator->res;
}
After "isLoginReplyExist" is changed by another part of program I want to exit from loop, is there any better way to ...
There are many questions about events in interfaces. Here are a couple:
http://stackoverflow.com/questions/471352/raising-events-in-interfaces
http://stackoverflow.com/questions/1093139/c-events-and-interfaces
As interfaces are used to enforce a contract for implementation, this makes no sense to me, because it doesn't enforce the ac...
hi there,
I hope you can help me with a problem; first, please don't worry about my language skills, I come from germany and I don't speak english every day, unfortunately :-(
I'm using jquery tabs in ajax mode and have some problems concerning click events. An example: I initalizate in my first and second tab such a click function on...
Ideally I'd like to find a way to do something like:
[MyCustomAttribute()]
public void MyMethod()
{
Debug.Write("B");
}
public MyCustomAttribute : Attribute
{
public void OnBegin()
{
Debug.Write("A");
}
public void OnEnd()
{
Debug.Write("C");
}
}
Which would write:
ABC
When MyMeth...
I have a select field that shows different elements of my form based on the selected value, I have three "classes" that each show the required portions of the filed. I currently have the selects bound to a .click() and it works fine except that if I want to load the page with the value preselected, it won't show the required parts of the...
Hi,
I have a form where I want buttons at the very bottom edge of the form, with no gap to the border. These buttons shall be "auto-hide", so they only show when the mouse is in for example the lower 20 pixels of the form. So I use the MouseMove event to trigger this, like code below. However, if mouse leaves the form across the bottom ...
Style question.
The C# 1.0 way to subscribe to an event is to use an explicit encapsulating delegate:
publisher.RaiseCustomEvent += new CustomEventHandler(HandleCustomEvent);
In C# 2.0 they added a simpler syntax:
publisher.RaiseCustomEvent += HandleCustomEvent;
In Visual Studio 2010 (tested with a .NET 3.5 project) typing
"my...
In fact, only the touch_down event will fire. Basically, I'm trying to implement a drag feature in my app so I need the touch_move event. I have a method that writes out the touch events to the LogCat in Eclipse but the touch_down is the only event that shows up. not even touch_up shows up. I have this problem when I debug on the device ...
In a tabb design If there are multiple hidden div how can i trigger event when hidden div get focus using jquery. I tried "focus" but thats for form controls. please suggest
...
I have got a problem with a slider. When i grab the handler, i change the .src of the image, just to change its color. However, i want it to change back to the original color when i release the mouse button. I have tried two things.
1) Changing it back on the handler mouseup event: this works only if i release the button over the handle...
I have the following hierarchy: [Activity] -> [PopupWindow] -> [CustomView].
My the PopupWindow itself is a square, but transparent, so you can see the Activity sitting in the background. The CustomView is a circle embedded inside the PopupWindow.
What I have achieved so far is
User clicks on green circle and I invoke "some stuff"
U...
I have an view overlayed on top of many other views. I am only using the overaly to detect some number of touches on the screen, but other than that I don't want the view to stop the behavior of other views underneath, which are scrollviews, etc. How can I forward all the touches through this overlay view? It is a subcalss of UIView.
...
I don´t know if I have forgotten how to do so or if it´s a bug, but I just can´t find the caller's reference using jQuery.
I´m doing the following:
$(document).ready(function() {
$('#parent a.item').click(doSomething);
});
function doSomething(e) {
// Alerts for demostrational purposes only
alert(e.target);
alert(e.cu...
I have a subclass of UIScrollView that implements this method:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"touches: %d", [[event allTouches] count]);
[self.nextResponder touchesBegan:touches withEvent:event];
}
This gets called when I first touch the scroll view. However, if I begin dragging th...
I need to take some action (e.g. make some cells readonly based on some other cells) after data biinding is completed. In WinForm DataGridView, I used to do it in DataBindingComplete event. However, I couldn't find such an event in WPF DataGrid. What else can I use?
...
The final outcome I want is actually detect if the clipboard contains any Image, if so then set a Image control to display that image. I am thinking I will need a way to monitor the clipboard if it contains an Image. How can I achieve this? I am thinking probably theres no such event so maybe i check the clipboard at regular intervals to...
Hello,
I am new to event and delegates. Could you point me to the right direction for implementing Enqueued event for an object of type Queue<T>?
I am using C# and .Net 4.0
Thanks
...
The question is: should the disabled element produce an event that will be triggered on its parent(s)?
<div id="test">
<button disabled="disabled">Click me</button>
</div>
<script type="text/javascript">
document.getElementById("test").onclick = function() {
alert("Clicked!");
};
</script>
All browsers except IE prevent the even...