event-handling

How can I parse a URL called between pages in a frameset?

I have a 2-frame HTML page: FrameA contains a list of links to various pages, or anchors within pages FrameB displays the individual pages. Some of the pages contain slideDown sections, with trigger text - i.e. clicking this text shows/hides the slideDown section below it. The parent element of the trigger element also contains an ...

Android - How to set a named method in button.setOnClickListener()

Most samples that I see appear to use an anonymous method in a call like button.setOnClickListener(). Instead, I'd like to pass in a method defined on the Activity class that I'm working in. What's the Java/Android equivalent of the following event handler wiring in C#? Button myButton = new Button(); myButton.Click += this.OnMyButton...

FastReport page orientation change in Delphi

Does anybody know how to design report in FastReport so that when user changes page orientation all column headers and data autofits new page width? I couldn't find any anchor mechanism there. Maybe I can do that during run-time? But then I need to catch page orientation change event somehow. Can anybody help? ...

NHibernate save / update event listeners: listening for child object saves

I have an Area object which has many SubArea children: public class Area { ... public virtual IList<SubArea> SubAreas { get; set; } } he children are mapped as a uni-directional non-inverse relationship: public class AreaMapping : ClassMap<Area> { public AreaMapping() { HasMany(x => x. SubAreas).Not.Inverse()...

Please some details on the MXML tag <mx:SetEventHandler />

Can anyone give me some details on the proper use of the tag <mx:SetEventHandler /> used when switching states? The Flex documentation is not very elaborate on this subject. Especially removing event handlers has my interest. This question is a more specific formulation of my preceding post: http://stackoverflow.com/questions/1973946/ho...

MVVM and events

To keep code out of the view when using the Model-View-View Model pattern (aka Presentation Model), I can expose commands as properties in the view model and bind to those commands from the view. This way my views can be entirely written XAML and no code-behind, other than the mandatory constructor call to InitializeComponent(). This wo...

CheckedChanged event for checkbox not firing for dynamic checkboxes.

I seem to be having an issue getting the event handler for a group of dynamic checkboxes. The code is posted here. I thought this would be pretty straight forward, the checkboxes do not appear in a repeater, datagrid, etc. They appear in a table which is located inside a div which positioned in the center of the screen. Any help woul...

Looking for a Cocoa (Mac OS X) event that occurs when the window becomes deactivated

I read that that class NSWindows has some of its own events, but I could not find a list of all them. I believe there is an event that occurs when the window becomes deactivated. Does such an event exist? ...

Why does OnMouseMove fire repeatedly when the mouse is not moving in D2010?

I'm porting a Delphi 5 app to D2010, and I've got a bit of a problem. On one form is a TImage component with an OnMouseMove event that's supposed to update a label whenever the mouse is moved over the image. This worked just fine in the original app, but now the OnMouseMove event fires constantly whenever the mouse is over the image, w...

How do I dispatch custom events from a created class?

I have an <mx:Application> which contains a <mx:Module>. This module has several child modules. It also has some an instance of a class I have created. I am trying to have a method of this class dispatch an event that can be "heard" by the module and handled. This isn't happening. Any ideas? To be more clear, I am using 'dispatchEvent...

gcnew KeyEventHandler compile problem (VC++)

My managed c++ code fails to compile with the error message .\Window.cpp(11) : error C2440: 'initializing' : cannot convert from 'System::Windows::Forms::Form ^' to 'Enviroment::Window ^' No user-defined-conversion operator available, or Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast o...

Target x button of a window title to an Button.Click event handler?

Hello, I have in my window a button called btnExit which I handle its event. I want that when I click the exit button (the red X in the right side) of the form, the event should be handled by the btnExit event. Is this possible whithout need to use the OnExit or Closing etc.? ...

Programmatically Updating a document library in Sharepoint

Hi all, Im quite new to SHarepoint. I have a requirement like, i need to move some documents from different document libraries to a document library named "Region". So that each time a document is updated in these document libraries , the document should be updated in the library "Region" as well. I wrote a c# function in a class librar...

Why does my jQuery event handler fail when attached to multiple elements?

I am using jquery to add mulitple new "addTask" form elements to a "ul" on the page every time a link is clicked. $('span a').click(function(e){ e.preventDefault(); $('<li>\ <ul>\ <li class="sTitle"><input type="text" class="taskName"></li>\ <li><input type="button" value="saveTask" class="saveTask button"><...

Keyboard- and mouse-event transparent widget

When i click a button my main window i want it to become transparent to keyboard and mouse events, i.e. all keyboard and mouse events should pass to any windows below it as if that window is not present there. "Qt::WA_TransparentForMouseEvents" does not work here as this only make child windows transparent to keyboard and mouse events i...

asp.net Scriptmanager: why navigate event fires when clicking a linkbutton?

I have an aspx page with ScriptManager defined like this - When the user click a link button on this page (the linkbutton is inside a control), the event 'ScriptManager1_Navigate' is raised. Why is that? How do I prevent the 'ScriptManager1_Navigate' event from firing? Thanks! ...

remove a listener that has an anonymous function in Actionscript 3

up.addEventListener(MouseEvent.CLICK, function clickFunc(event:MouseEvent):void { revealSpinner(event,51.42,1,spinner); event.currentTarget.removeEventListener(event.type, arguments.callee); autoTimer.stop(); }, false, 0, true); down.addEventListener(MouseEvent.CLICK, function clickFunc(even...

Delphi: How to set text in TEdit/TMaskEdit without invoking the onchange event

I've got a pretty big setup form which I'd like to populate with data from a class. so I'm doing a lot of Edt1.text := ASettings.FirstThing; I'd like to avoid Edt1.onchange := nil; Edt1.text := ASettings.FirstThing; Edt1.onchange := edt1Onchange; How do I change the text in a text box and sidestep the onchange event. ...

How can I attach event handlers to dynamically-generated DOM elements using jQuery?

I have a <ul> tag that I want to append some <li> tags inside. Example: $('body').append("<ul id='myUL'>").find("ul"); $('#myUL').append('<li id='a'>a</li>'); $('#myUL').append('<li id='b'>b</li>'); I want to give every <li> a different click event. How can I accomplish that? ...

c# hide form instead of close

how do i hide() a form? i would like when user clicks the X on the form to hide it instead of closing it. i have tried this.hide() in FormClosing but it still closes the form. please help. ...