i have a method:
procedure Frob(Sender: TObject);
that i want to call when i click a menu item.
The method comes to me though an interface:
animal: IAnimal;
IAnimal = interface
procedure Frob(Sender: TObject);
end;
The question revolves around what to assign to the OnClick event handler of a menu item (i.e. control):
var
a...
Hi,
I'd like to monitor my textarea's changes with jQuery. I can do this with the keyup event and it works perfectly. But what event I can get when a user click on the textarea (right mouse click), then choose paste?
Click event occur only when the user click with the left mouse button on the textarea.
How can I handle this situation...
I need to return to my original function after capturing an event (downloading something) with another function. The original function needs to return a value, which depends on the downloaded data. So, I'd like to pause original function for the time needed for the download and the eventhandler function to complete it's work, and resume ...
Good day all, I am tasked with building a slider for our site. Here is my goal:
<div id="abc">
<div id="slider">...</div>
</div>
I need to move "slider" left 30px at a time when a button is hovered over, and right 30px when another button is hovered over.
My problem is that there doesn't seem to be a reliable method for telling the...
Hi,
I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest?
Best Regards
T.S.
...
I am programming an instant messaging library for MSN Messenger, and I have a simple question about raising events.
When logging in, should I be raising UserAdded for each user that is synchronized (already on the contact list), or should the UserAdded event be reserved for when a new user has been added to the contact list via the AddU...
Hi... Anyone know how to do this:
When some user left my site by closing the browser or tab or going to other site I would like to do an action (show an alert) and if the user clicks on a link or button to other page of my own site I would like to do another action...
If I use unload event I can't differentiate between these two kind ...
I've developed UI application in blackberry.
On Button Click event I want to display result of adding two number.
How to handle this event in java app of Blackberry?
...
If I have a class that raises an event, with (e.g.) FrobbingEventArgs, am I allowed to handle it with a method that takes EventArgs?
Here's some code:
class Program
{
static void Main(string[] args)
{
Frobber frobber = new Frobber();
frobber.Frobbing += FrobberOnFrobbing;
frobber.Frob();
}
private static ...
Hello everyone! I try to learn java for android devices..
i have to create the update function. But still have one question: How????
in class root
public void update(){
maindebug("update"); // This is my debug function
}
public void run(){
while(isRunning){ // isRunning is a boolean variable
SystemClock.sleep(100);
update();...
When the user clicks the window title/button in the taskbar, what .NET event (or Windows API message) is sent to the window?
I'm using C#/.NET 2.0/Windows Forms.
Thank you
...
I'll try and make this question simple. Can I assign a class to a series of different checkboxes, and use Jquery to do something when any one of those checkboxes is checked? Searching around on the internet I have found documentation on grabbing the name: $('input[name=foo]').is(':checked') but when I swap out the name attribute for the ...
I have a site where I'm using hash based parameters, eg.
http://url.of.site/#param1=123
What I want
When the user manually changes the URI to eg.
http://url.of.site/#param1=789
When the user enters this URI, the event is caught by the JavaScript, and the appropriate functions are called. Basically, what I'm wondering about is; is ...
REMOVED - reason: not really needed.
my questions are:
can I use a linux UDP socket from two different threads? answer was here
I have two different events I would like to wait for using just one thread. One of such events is the addition of an element to a stack and another is the availability of data on a socket.
I can use a boost::...
I want to creating an addin that captures when a {contact, calendar, task, note} is {created, edited, removed}. I have the following code, to make it shorter I removed all the code but the related to contact, since all types will be the same I guess.
AutoSync.h
class ATL_NO_VTABLE AutoSync :
public wxPanel,
public IDispEventSimpleIm...
Hi,
I would like to remove ALL handlers for a given event type. Let's say I've added twice "onclick event" to a button and now I would like to return back to the original state where no event handler was set to the button.
How can I do that?
P.S.: I've found removeEventListener (non-IE)/detachEvent (IE) methods but the functions want...
I am still new to c# and wpf This program is a clock with different view and I would like to use the context menu to change between view, but the error says that there is no definition or extension method for the events. Right now I have the event I'm working on popping up a MessageBox just so I know it has run, but I cannot get it to co...
I am amazed by the architectural design of node.js and was wondering if C# is capable of such design:
Asynchronous, event based / event loop, non-blocking IO without multithreading.
...
Hi all.
I've got a hidden form field, and when a button gets pressed the value of the hidden field is changed. Now, I've added an observer to the hidden field, listening for changes to occur. For some reason, though, the event listener never kicks in, even though the value of the hidden element changes. I'm using Prototype and Firefox 3...
Hello all,
I'm trying to get the text contents of a .div('.child#') child of my event.target('h6.class'), and replace my other headers('h1.replacHeader#') using this script below...
$('h6.HeaderToBeClicked').click(function(event) {
var $target = $(this);
$('.replaceHeader1').replaceWith("<h1 class='replaceHeader1'>" + $target.c...