I have this JTextPane (wrapped in a JScrollPane) that is backed by a HTMLEditorKit. The contents of the JTextPane is simple HTML with some images (local files) embedded using img tags. The problem is that when you load the the JTextPane, it takes a split second to load and then it comes up with the scroll bar at the bottom of the page. I...
I'm testing some event dispatch code in a Flex app, using FlexUnit's addAsync method for testing that events are dispatched. Great so far, I can ensure that at least one event was fired. However, I want to be a bit more detailed; I want to ensure that exactly the set of events I'm expecting are dispatched. Is there a useful test patte...
I have an iframe that needs to catch the onscroll event from the parent window. The domains between the iframe and the parent are the same. I have gotten code to work in FF and IE7, but IE6 does not work, and I don't know why.
In FF:
parent.window.document.onscroll = function(e) {...} works
I've tried many things through trial and error...
Recently i've noticed, that the Page_PreRender event is not being fired. If protected override void OnPreRender is used - everything is fine. AutoWire is enabled and the same code performs just fine on another machine...
Where should i dig?
...
I need some actionscript code to simulate the dragging and dropping of a Sprite, I was wondering if it is possible to do so? if it is how?
For example to simulate a click on a Sprite I can achieve with the following line of code.
sprite.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
...
I have a DataViewGrid I populated from a DataTable in a query to a DB. While trying to capture the Row_Leave event, so I could properly update it, I can't seem to capture the latest value in boolean columns.
If I update just a text field, when I access the underlying DataSource I get the latest value I entered, buy if I access the boole...
Hi,
I wonder if any of you guys can help me with what I think is observing problem.
I have an element (svg to be more specific) that I want to update every time a value somewhere is changed.
I have variable:
GetThreadTree().treeBoxObject.getFirstVisibleRow() that initially is 0. I want to run a function updateCanvas() every time valu...
I am attempting to create a clickable piechart in ASP.NET 2.0 with C# using version 7.1 of Infragistics' software.
The chart appears as it should, but the function marked in the OnChartDataClicked event is not called.
From the .aspx:
<igchart:UltraChart ID="UltraChart1" runat="server" OnChartDataClicked="DataRegionClicked">
<...
Note that I'm answering my own question since I think it might be useful to have the information on the site!
FAQ: It's also perfectly fine to ask and answer your own question, but pretend you're on Jeopardy: phrase it in the form of a question.
When the following class is serialized with a BinaryFormatter, any objects subscribin...
When you hold "shift" and scroll with your mouse on a mac, it interprets your vertical scroll motion into horizontal scroll actions. This is my most missed feature when working on linux, and I would love to bring it to linux (since I have looked thoroughly and nobody else seems to have done so yet).
I hope this can be done with some sor...
I wonder if anyone knows how to use Win32 to automate a keystroke using Ruby?
...
I'm creating a simple drawing application that adds new Shape objects to a MovieClip "canvas" every time the user clicks and drags. The problem is, I'm noticing that even though the MouseEvent listeners are set to the MovieClip, the child Shape objects are being returned as targets as well. This disrupts the localX and localY as well, ...
Is there any way to create a notification when a new e-mail arrives in my Android inbox? I would like to show an animation when I receive a new e-mail or SMS - would this be possible without writing my own e-mail client?
I'd also like to be able to customize the notifications based on who the sender is, the subject line, etc - basically...
Hi,
I'm creating a web application which uses jQuery to modify and HTML to represent the data. There can be several representations in the document related to a single data node. The user can dynamically create them.
For example, data will be represented and can be modified in tables. Additionally the user has the opinion to extend a "q...
I'm experiencing some strange behaviour when using a stylus with swing.
I am interpreting pressing the button on the side of the stylus(RIGHT) and pressing the stylus down(LEFT) as a "Grab" event, but occasionally (more often than 0), events are just being dropped.
The JavaDocs for MouseEvent are pretty explicit about how multibutton p...
If I have a combobox click event set in the designer.cs page and then at some point during the running of the program, based on some condition, I no longer want the combobox Click event to be set, how do I "unset" it? I've tried comboboxname.Click += null and I've tried setting it to another dummy function that does nothing...neither wo...
I seem to be having problems with my java gui code, and I have no idea why it's not working.
What needs to happen is when the mouse is clicked on the panel or frame - for now lets just say panel; as this is just a test eventually this code will be implemented for another gui component, but I'd like to get this working first - the popup ...
What methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effect...
From How to: Publish Events that Conform to .NET Framework Guidelines
Although events in classes that you
define can be based on any valid
delegate type, even delegates that
return a value, it is generally
recommended that you base your events
on the .NET Framework pattern by using
EventHandler, as shown in the
followin...
I would expect something like this to work but the ListItem, BeforeProperties, AfterProperties are all null/empty.
I need the file name and file content.
public class MyItemEventReceiver : SPItemEventReceiver {
public MyItemEventReceiver() {}
public override void ItemAdding(SPItemEventProperties properties) {
SPListItem ...