I have an application that inserts an ApplicationMenuItem into the native blackberry contacts menu. I can get this to work just fine. Now my question is how would I change or remove that ApplicationMenuItem based on the contact that i am highlighted on? Would I need to use a GlobalEventListener? I assume overriding makeMenu can only be d...
I have a TextArea that I don't ever want to be scrolled. When scrolling within the application that holds this TextArea, however, the scrolling stops as soon as the mouse ends up over the TextArea.
Is there any way to pass the scroll event to the application, or tell the TextArea to not claim the event?
...
i want to test on iphone/ipod
thanks
...
Is there any way to determine if the mouse scrolls up or down using the Mousewheel handler on a sub? eg
Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel
if mousewheel.scrollup then
UserZoom = UserZoom + 0.05
Me.Refresh()
end if
End Sub
I w...
I have a MDI Windows Forms application and I remind on FormClosing event the user to save, this happens on the parent and child forms. But I would like the program to ask only one time for all the forms when the user tries to exit the application using the parent X button or the Exit Application menu button.
I tried with a bool static f...
I have an input field where the user enters an id#. I am using Ajax to check the database for that user's id# and afterwards populate the other input fields with that person's information from the database.
I am trying to run a series of validation statements after the information is inserted via Ajax into the input fields, but I can't ...
I'm trying to save some layouts from DevExpress Grid Controls so that users can change the layouts and reload them in at a later use of the control.
My question is this for speed issues I am loading the control via a user control inside of a form. Now my problem is I am creating the control by adding an instance of the control to a pane...
Hello,
would someone please write this code:
this.Loaded += (s, e) => this.loaded = true;
into several code lines so I can retrace the meaning?
In my code sample there is no s or e ?
...
When exit() is executed,trigger another procedure,is there an easy way?
...
I am going to be loading a swf into a div tag when the user initiates some action. The div tag's id is container, the embedded swf's tag id will be swf_content. I want to be able to set a variable to that swf_content tag when it is loaded. So something like:
$("#swf_content").ready(function() {
SWF = $("#swf_content").get(0);
})
...
Hello everybody.
I am setting up a own made wysiwyg plugin for jQuery. He is almost finished but know i want to add a keyup event to a iframe with designmode on. But i can't get it worked. I tryied almost everything a found on the internet. The class of the wysiwyg iframe with designmode is .dhwysiwyg. I though the next code will work:
...
By this code I add comments to a posts. But there is a problem - the first comment work, but i am not able to add next.
I use livequery, so it shold work. Can you help me?
$('form.comment_form').livequery('submit', function a()
{
var element = $(this);
var wall_post_id = element.attr("id");
var wall_messag...
With jQuery you can bind functions to an event triggered on a DOM object using .bind() or one of the event handler helper functions.
jQuery have to store this internally somehow and I wonder if is it possible given a DOM object, to find out which events have been bound to the object, and access those functions etc. The desired return re...
I have a thread (Runnable) that starts a number of other threads (Runnables). When each child thread finishes it needs to raise an event (or something similar) and return a notification to the parent thread. I can't see any events in Java (ala C#) - I had hoped I could just subscribe in the parent to the child object's 'I'm finished even...
Hello guys, I already looked all around, and can't find a solution: I have a form to upload files, and it should fire the submit after the file selection.
On FF/Chrome it goes weel, and submit the form after file selection, but I can't do this on ie.
Already tried with click/propertychange but nothing happens. Some code I already tried...
I need to avoid serializing an Event class member because when the event is handled by an object that is not marked as Serializable the serialization will fail.
I tried using the NonSerialized attribute on the Event class member but it fails to compile with the following error:
<NonSerialized()> Public Event PropertyValueChanged()
re...
By this code I add comments to a posts. But there is a problem - the first comment work, but i am not able to add next. I use livequery, so it shold work. Can you help me?
$('form.comment_form').livequery('submit', function a()
{
var element = $(this);
var wall_post_id = element.attr("id");
var wall_messag...
I am having an Android view with a Spinner on it.
I call a populateSpinner() method to add some default values to it.
I also have a onItemSelected() event which gets called before the view is completed to print.
I would like to run a code inside this block only when the user changes the selected items, not when I add or the form gets cr...
I have searhed high and low for a solution to this problem. I have no problem adding an Bitmap image into the richtextbox. The problem is that I don't want it to have the resize option to it. I want that one image to be SELECTED when I click on it, just like in most messengers, and to throw an onclick event. Any help in this area wou...
Apologies if this is a bit of a vague question with no proper answer. Please move/close it if it's not in the right place.
I've written a few relatively trivial GUIs in WxWidgets and Qt, and I'm persistently unsure how to architecturally handle the following situations:
You catch a mouse event to do something to a graphical object in...