I have recently implemented an Action that toggles the enabled status of a business function. Whenever the user invokes the action I set a boolean flag: "willEnable" to determine whether the next invocation will enable or disable the function. Likewise I update the action name, short description and icon to reflect the new state. Then...
I'm trying to pass the current value of a variable when an a dynamically generated navigation 'node' is clicked. This needs to just be an integer, but it always results in the last node's value.. have tried some different methods to pass the value, a custom event listener, a setter, but I suspect it's a closure problem.. help would be ap...
Hi all,
In my application I need to implement touchBegan for the custom View that has been created . I haved added the following method to my custom view class.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
}
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
}
- (void)touchesEnded:(NSSet *)to...
A client wants to have a lookup field for customer name found in a database as metadata on a Word document in a document library. They have a code which represents a group of customers and one of them should be used as customer name as metadata as well as the customer code inside the document.
Since editing the metadata in Word leaves n...
we have a UserControl to handle User cancellations, that is used in a few places. This has a couple of input fields and a submission button. When they submit the User's status is updated and a few other things are done and a feedback message displayed.
On one of the pages which includes the control, after the User has successfully cance...
I would like to build a results page for a report export page. This results page must display the status of the export and offer the download of this export.
The export is done in an action method. I can execute it via a commandButton but it must be executed automatically on load.
How can I accomplish this?
JSF:
<h:commandButton valu...
Update
Can anyone please explain event delegation in JavaScript and how is it useful?
Original:
Delegation in programming.
Can anyone please explain delegation and how is it useful?
...
Hi
can anyone explain to me what is happening when a instance of a class declaring a static eventhandler will hold reference to other classes that have registered intent with the event handler in question, being that they are all static would there be any contention between users sessions(I mean his/her usage of the system in a point in...
If I wanted to ignore a touch event in UIKit on the iPhone I would simply do:
// Begin ignoring events
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
//Do my code
// Stop ignoring events
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
This allows my code in between the "ignore" calls to operate ...
Is it possible to hook up an event to another event in VB8?
I have this code in C#...
public event ShowAboutDialog = delegate {};
private void hookupEvents() {
myButton.Click += ShowAboutDialog;
}
And am trying to convert it into VB8, but can't get it to work..
Public Event ShowAboutDialog As EventHandler
Private Sub HookupEvents()...
On my site I have registered a keypress event handler for the whole document.
$(document).keypress(myhandler);
And I handle the 'space' key to scroll a list.
Trouble is, there is an <input type='text' /> element, and I don't want 'space' keypress to scroll the list when it is entered in the input.
I couldn't find any information in ...
In my Qt application in the event handler for mouse press events I have such ugly code
void Render::Viewer::mousePressEvent(QMouseEvent* e)
{
switch (e->button())
{
case Qt::LeftButton:
switch (mode_)
{
case Render::Viewer::ModeView:
switch (e->modifiers())
{
case Qt::NoModifier:
...
b...
I am in the process of teaching myself thread based programming techniques and this question may be way off base... I'm not even sure if this is possible or indeed even the right approach to this problem. Please feel to correct me in what question I should be asking if appropriate.
I am trying to have a certain thread deal with an even...
How can I handle click event to Web readonly TextBox in c#
...
So the problem that I am having appears to be a bug that occurs only on Linux. I'm trying to have my swing app record when a key is pressed down, then to detect when that key is released. Now that shouldn't be in issue because KeyListener is supposed to handle this for me.
The problem is that when I hold the key down I get lots of repea...
Is there a way I can be notified of an application launch and termination in Android? I mean, more like subscribing to the Activity Manager and then determining which applications have been started and stopped...
...
Hi guys,
let me explain my problem. I have a mouseout event assigned to a div tag with an id of calendar. Now when this handler is called (when the mouse is not over the calendar div), i want to wait 2 seconds, then see if the mouse is still not over the calendar div. If the mouse i still out then do a function, if not then do nothing....
I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I would like to change one of the icons to a signal that the user is logged in).
How, after the event is cought, can I make the widget draw its...
Hi everyone,
I'm new to ASP.Net Ajax and wondered if the following was possible.
I'm thinking of putting in an updatepanel in a page with an update progress bar in it.
The idea is for a post from a button in the updatepanel to trigger a method call in the codebehind that calls a server component. I would, ideally, like for the server...
Where Alert Management System roughly fits into this definition: "A system designed to screen events, build profiles associated with the events, and send alerts based upon the profiles and events"
So, the current setup is like this: There are multiple applications built in different technologies (Java, .Net, Perl, Python, VB) and they d...