Strange behaviour of Mouse-Events and Range size

Hello,
i found a strange behaviour of the Paragraph-Ranges in Word and can't explain this myself.
I have a add-in with a Custom Task Pane "UserControl1" and a button "Button1":
dropbox.com/s/zz2m0out5rvds0m/word.jpg
This is the Code for the user control:
public partial class UserControl1 : UserControl
public UserControl1()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
showRanges();
private void button1_MouseEnter(object sender, EventArgs e)
showRanges();
private void showRanges()
Debug.WriteLine("-------------------------------------");
foreach (Microsoft.Office.Interop.Word.Paragraph para in Globals.ThisAddIn.Application.ActiveDocument.Paragraphs)
Debug.WriteLine(para.Range.Start.ToString() + " - " + para.Range.End.ToString() + " | " + para.Range.Text.ToString());
The mouse-enter and mouse-click events of the button, prints out the ranges of the current paragraphs. In this example it outputs:
0 - 15 | The first line
15 - 32 | And a second one
Thats fine!
And now the strange stuff starts: When i change something in the first line in the document like "The VERY first line" and use the button again, i got different range outputs for mouse-enter and mouse-click events.
mouse-enter event (wrong ranges):
-------------------------------------0 - 143 | The VERY first line
143 - 160 | And a second one
mouse-click event (correct ranges):
0 - 20 | The VERY first line
20 - 37 | And a second one
Why the hell I get wrong Ranges when I use the mouse-enter event??? (When I enter the button with mouse a second time, it shows the correct ranges again).

Hi Torben,
What is Word version?
According to my test in Word 2013, the code you provided works fine for me.
I changed the code as below:
private void showRanges(string eventname)
Debug.WriteLine(eventname + "-------------------------------------");
foreach (Microsoft.Office.Interop.Word.Paragraph para in Globals.ThisAddIn.Application.ActiveDocument.Paragraphs)
Debug.WriteLine(para.Range.Start.ToString() + " - " + para.Range.End.ToString() + " | " + para.Range.Text.ToString());
private void button1_MouseEnter(object sender, EventArgs e)
showRanges("Button MouseEnter");
private void button1_Click(object sender, EventArgs e)
showRanges("Button Click");
The document:
The output:
The result is same.
There might be something else at the end of the first line.
If you change current document to .zip and find document.xml, what does it look like?
Here is my document.xml:
<w:body>
<w:p w:rsidR="001347D9" w:rsidRPr="001511D8" w:rsidRDefault="001511D8">
<w:pPr>
<w:rPr>
<w:sz w:val="72"/><w:szCs w:val="72"/>
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="001511D8">
<w:rPr>
<w:sz w:val="72"/>
<w:szCs w:val="72"/>
</w:rPr>
<w:t>The VERY first line</w:t>
</w:r>
</w:p>
<w:p w:rsidR="001511D8" w:rsidRPr="001511D8" w:rsidRDefault="001511D8" w:rsidP="001511D8">
<w:pPr>
<w:rPr>
<w:sz w:val="72"/><w:szCs w:val="72"/>
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="001511D8">
<w:rPr>
<w:sz w:val="72"/>
<w:szCs w:val="72"/>
</w:rPr>
<w:t>And a second one</w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="_GoBack"/>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:sectPr w:rsidR="001511D8" w:rsidRPr="001511D8">
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:linePitch="360"/>
</w:sectPr>
</w:body>
Is there anything different?
I have uploaded the sample document for your test, please check:
https://onedrive.live.com/redir?resid=AD77AE76D657E280!166&authkey=!AFfIP0eVTDQdMAc&ithint=file%2cdocx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Very strange behaviour of mouse, trackpad and finder

    As if there were a demon in my Mac:
    - left mouse click doesn't work correctly
    - left mouse click clicks by itself
    - cursor sticks to objects on the screen and drags them around, from desktop, from safari, anything
    - dock doesn't appear
    - when I drag the cursor over objects it marks them without me clicking left mouse click, it also creates rectangles
    - click another window, but it doesn't come in foreground
    - when all these strange things happen, the mouse pad seems not to work, it doesn't click, it feels differently, doesn't make the usual clicking sound, doesn't move down
    - the USB mouse is no better, though! (when all this happens)
    ... I can end this ghost in the machine only by forcing the Mac to shut down
    ... after that it sometimes works ok for a while... then IT happens again
    ... closing and opening the mbp helps sometimes
    is it the software, is it the hardware, is it both?
    (I repaired disk permissions, cleaned PR ram, scanned for viruses)
    any ghostbusters around???
    p.s.: all these thing do not happen when I boot from my windows partition on the same mac

    There are several possible causes for this issue. Take each of the following steps that you haven't already tried until it's resolved. Some may not be applicable.
    1. Follow the instructions in this support article, and also this one, if applicable.
    2. Open the Bluetooth preference pane in System Preferences and check for unknown or forgotten input devices. Disconnect any USB input devices that you aren't using.
    3. Boot in safe mode and test, preferably without launching any third-party applications. If you don't have the problem in safe mode, but it comes back when you reboot as usual, stop here and post your results. If you can't boot in safe mode, do the same. If you booted in safe mode and there was no change, go on to the next step.
    4. Reset the System Management Controller.
    5. If you're using a Bluetooth trackpad, investigate potential sources of interference, including USB 3 devices.
    6. A swollen battery in a MacBook Pro or Air can impinge on the trackpad from below and cause erratic behavior. If you have trouble clicking the trackpad, this is likely the reason. The battery must be replaced without delay.
    7. Press down all four corners of the trackpad at once and release. If there's any effect, it's likely to be temporary, and the unit needs to be serviced or replaced.
    8. There's a report that a (possibly defective) Thunderbolt Ethernet adapter can cause the built-in trackpad of a MacBook to  behave erratically. If you're using such an adapter, disconnect it and test.
    9. There's also a report of erratic cursor movements caused by an external display that was connected but not turned on.
    10. If none of the above applies, or if you have another reason to think that your computer is being remotely controlled, remove it from the network by turning off Wi-Fi (or your Wi-Fi access point), disconnecting from a Bluetooth network link, and unplugging the Ethernet cable or USB modem, whichever is applicable. If the cursor movements stop at once, you should suspect an intrusion.
    11. Make a "Genius" appointment at an Apple Store to have the machine and/or external trackpad tested.

  • What is the relation between FetchSize and Range Size

    Hi
    What is the relation between FetchSize ("in batches of" field) and Range Size in view object tuning section? What would happen if, for example, I set the fetch size to 10 and range size to 5?
    Ferez

    Timo,
    From oracle’s documentation we learn that RangeSize attribute of the Iterator “controls the number of records ADFm requests from the BC layer simultaneously”
    RangeSize Tuning
    This parameter controls the number of records ADFm requests from the BC layer
    simultaneously. The default RangeSize is 25 records. Consider setting this value to
    the number of records to be displayed in the UI simultaneously for the View Object so
    that the number of round-trips between the model and BC layers is reduced to one.
    This is configured in the Iterator attribute of the corresponding page's page
    definition XML.
    and the purpose of FetchSize  is now clear for me but let me ask another question about VO’s rangeSize which you told is used when we use range paging. You mean that when we use range paging so the rangeSize of VO is used to fetch data from database and the FetchSize is ignored in this case? Please correct me if I am wrong.
    Ferez

  • Strange behaviour whit custom JTextField and JToolTip

    Hello everyone. I hope I'm writing in the right section and sorry if I did not search for this issue but I really don't know which keywords I should use.
    I'm using NetBeans 6.1 on WinXP and JDK 1.6.0_07, I have a custom JTextField with regex validation: when you type something that don't mach regex it shows a JToolTip. This JToolTip should disappear when the text typed is finally correct, or when the textfield loses focus (see code below).
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Point;
    import javax.swing.JToolTip;
    import javax.swing.Popup;
    import javax.swing.PopupFactory;
    public class MyJTextField extends javax.swing.JTextField implements FormComponent
    private static Popup popUpToolTip;
    private static PopupFactory popUpFactory = PopupFactory.getSharedInstance();
    private boolean isValidated = false;
    private String regEx = "a regex";
    public MyJTextField()
    this.addKeyListener(new java.awt.event.KeyAdapter()
    public void keyReleased(java.awt.event.KeyEvent evt)
    if(evt.getKeyCode()!=java.awt.event.KeyEvent.VK_ENTER)
    validateComponent();
    else if(evt.getKeyCode()==java.awt.event.KeyEvent.VK_ENTER)
    if(isValidated)
    ((Component)evt.getSource()).transferFocus();
    this.addFocusListener(new java.awt.event.FocusAdapter()
    public void focusLost(java.awt.event.FocusEvent evt)
    if(popUpToolTip!=null){popUpToolTip.hide();}
    public void validateComponent()
    if(text.matches(regex))
    isValidated = true;
    if(popUpToolTip!=null){popUpToolTip.hide();}
    else
    isValidated = false;
    if(popUpToolTip!=null){popUpToolTip.hide();}
    String error = "C'&egrave; un errore nella validazione di questo campo";
    JToolTip toolTip = createToolTip();
    toolTip.setTipText(error);
    popUpToolTip = null;
    popUpToolTip = popUpFactory.getPopup(
    this,
    toolTip,
    getLocationOnScreen().x,
    getLocationOnScreen().y - this.getPreferredSize().height -1
    popUpToolTip.show();
    }(I've cut it a bit, here's only the lines that involve JToolTip use)
    I have many of them in a form, and when the first tooltip appears (on the first textfield I type in) it never disappears, while nex textfields work just fine.It seems the first tooltip appearing can't be overwritten or something similar. If I use this same component on any other NetBeans project, everithing works without issues.
    I have some other custom components working the same way (JComboBox, JXDatePicker), and they had this "not disappearing tooltip" issue since I changed this
    popUpToolTip = popUpFactory.getPopup(this, toolTip, getLocationOnScreen().x, getLocationOnScreen().y - this.getPreferredSize().height -1);
    whit this
    popUpToolTip = popUpFactory.getPopup(null, toolTip, getLocationOnScreen().x, getLocationOnScreen().y - this.getPreferredSize().height -1);
    but if I try it on the JTextField all textfield's tooltips stay stuck there, not only the first one appeared (while other components still works fine).
    This thing is really driving me crazy. Someone has an hint (or a link to another thread) which could explain this strange behaviour?
    Thanks in advance.

    BoBear2681 wrote:
    Note that an SSCCE wouldn't require you to post any proprietary code.Hmmm... well, I'll try again to reproduce the issue and post an SSCCE.
    BoBear2681 wrote:
    That probably indicates that the problem is somewhere other than where you're currently looking.Yes, I suppose so. Maybe it's some interference between all the custom components I created, or maybe something else that apparently doesn't conern at all. If I cannot reproduce it in an SSCCE and I'll figure out what's the cause of this mess I'll post it here for future knowledge.
    Many thanks for your advices. :)

  • Strange behaviour when setting client_info and module in v$session

    Hello,
    I've tried to set the CLIENT_INFO field in V$SESSION using DBMS_APPLICATION_INFO.SET_CLIENT_INFO but found a strange behaviour.
    Normally the forms modules seems to set the field MODULE in V$SESSION to its name. If I use DBMS_APPLICATION_INFO.SET_CLIENT_INFO the CLIENT_INFO field is set correctly but the MODULE field is set to 'frmweb.exe' instead of the forms modules name.
    I also tried to set the MODULE using DBMS_APPLICATION_INFO.SET_MODULE but then strangely the MODULE and MODULE_HASH field of the original frmweb.exe (the main applet?) entry and the entry for the forms module were the same (set to the new module name). From now on every newly opened module had 'frmweb.exe' as the module entry until I closed the forms application.
    Example:
    Entries in V$SESSION:
    -- After start of forms application there is only one entry for the process:
    PROCESS           MODULE            MODULE_HASH            CLIENT_INFO
    1596:7204         frmweb.exe        854945150
    -- When a new forms module is opened it looks like this:
    PROCESS           MODULE            MODULE_HASH            CLIENT_INFO
    1596:7204         frmweb.exe        854945150
    1596:7204         my_module         1929284615
    -- When the modified forms module that sets the client_info/module is opened this happens:
    PROCESS           MODULE            MODULE_HASH            CLIENT_INFO
    1596:7204         mod_module        3097977240
    1596:7204         mod_module        3097977240             my client info
    1596:7204         my_module         1929284615As one can see the entry of the forms application seems to be overriden (at least the MODULE and MODULE_HASH fields) but the CLIENT_INFO only changes for one of the entries?
    The following code is responsible for the changes of CLIENT_INFO and MODULE:
        -- get client info
        client_info :=
            webutil_clientinfo.get_ip_address
            || ' (' ||
            webutil_clientinfo.get_user_name
            || ')'
        -- set client info
        DBMS_APPLICATION_INFO.SET_CLIENT_INFO(client_info);
        -- get module (set action to '')
        DBMS_APPLICATION_INFO.SET_MODULE(name_in('system.current_form'),''); I really don't understand, why it does not work properly.
    Any help is appreciated!
    Thanks in advance.

    This was an application module pooling, activation / passivation issue.
    After view objects had been set-up correctly, the problem disappeared.

  • [SOLVED] Strange behaviour of gnome-terminal and xterm

    Hello,
    I've been on Archlinux for 2 days, and I have a strange problem with gnome-terminal and xterm. When I write a too long command on a line, the text continues from the beginning of this line erasing the text, instead of going to a new line. Do you have any idea of how to fix that?
    Thanks a lot!
    Last edited by crotte (2008-04-13 21:59:34)

    Seems to be in a fresh install, too. I didn't change any setting of bash and no PS1.
    I still can't reproduce it... I hate those errors. :-(
    Edit:
    Fixed by using zsh now.
    Last edited by Misery (2008-05-16 08:48:44)

  • Very strange behaviour of table values and event case

    Hi all
    i'm becoming crazy on my .vi
    i want to change the second col values on click from yes to no and from no to yes simply by a click.
    The problem is that this changing happens after some clicks on an old position.
    Try to click on some "no" on the file that is attached.
    Thanks a lot!
    Dario
    http://www.sd-studio.it - web design agency
    Attachments:
    Ecu_wizard.vi ‏101 KB

    The issue took me a sec to understand but here it is.  You are trying to change the value during the mouse up event.  And you do... however you have just selected that cell in the table.  So LabVIEW is waiting for the user to change the value, and in this case ignoring your change.  All you need to do is add a property node to the end of that sequence that is Key Focus and set it to false

  • When both plug-in objects and jQuery mouse events are present, Firefox re-starts the plug-in object (eg Flash movie) after a jQuery mouse event occurs. This doesn't happen in any other browser. How can I get around this?

    Please check http://www.syus.com for an example. There is a Flash movie underneath the main navigation. The main navigation has a jQuery mouse event, and when you mouse over a button in the main navigation, the Flash movie re-starts. I can confirm that this happens not only on Flash swf files, but on standard <object> YouTube embeds.

    Ok, I promise this is my last post without your help. I did some more troubleshooting and it only seems to happen when jQuery appends elements to the body that were previously invisible. In other words, I can simply change the css in jQuery from using element.css('display','inline'), but if I try to use something like slideDown or other jQuery tooltip functions that append and/or remove elements or style definitions it causes the "object restart" bug.
    It is impossible for any developer to eliminate this bug without changing the actual source of jQuery, which I can't do. My only other option is not to use sophisticated show/hide jQuery elements like drop-down menus and tooltips on the same page as an embedded object, but I don't want to do this since Safari, Chrome and even IE (dear God) users won't have a problem with this. I think this is a major major bug that should be fixed in Firefox 4 as more and more sites will be looking to use the latest jQuery plugins.

  • Can i capture the the mouse events

    i am writting application in which i have to send the screen image to client as well as mouse events and keyboard events. i am successfull in doing screen image but mouse events are not traped
    please send me any suggestion about how i will do it.
    [email protected]

    Have you tried to implement MouseListener?

  • Mac java - no mouse event

    I am having trouble with my app where when you are at the login screen and you enter your login name, then click on the password text field the focus will not go there but remains on the user name field. You can tab ok to the password field. Has anyone encountered this with mac's. I am not sure if it's the code ( I have taken it over from someone else).
    At one point the tab didn't work either, but I found some code that was specific to 1.4 and newer versions of Java, but it was only looking for Sun's 1.4 or better, not Apple's, so I was able to fix that by checking to see if the Java being used was Apple's. So I'm not sure if this is another code-specific exclusion, but if it is, I just can't find it. The mouse click works fine if I use Apple's 1.3 java.
    So I guess my question is, does anyone know of any issues with mouse events and Apple's java 1.4 version.
    Thanks.

    Something isn't right with your code. The code below works fine on OSX 10.3.2:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SignInDialog extends JDialog {
       private JTextField serverJTextField = new JTextField("server");
       private JTextField userNameJTextField = new JTextField("username");
       private JPasswordField passwordField = new JPasswordField("password");
       public static void main(String args[]) {
          new SignInDialog();
       public SignInDialog() {
          super();
          try {
             init();
             setVisible(true);
          } catch (Exception ex) {
             ex.printStackTrace();
       private void init() {
          this.setTitle("Login");
          this.setResizable(false);
          this.setSize(new Dimension(270, 187));
          this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
          JLabel serverJLabel = new JLabel("Server:");
          JLabel usernameJLabel = new JLabel("Username:");
          JLabel passwordJLabel = new JLabel("Password:");
          JButton loginJButton = new JButton("Login");
          JButton cancelJButton = new JButton("Cancel");
          // (int x, int y, int width, int height) 
          serverJLabel.setBounds(new Rectangle(10, 12, 130, 25));
          serverJTextField.setBounds(new Rectangle(84, 12, 167, 25));
          usernameJLabel.setBounds(new Rectangle(10, 49, 130, 25));
          userNameJTextField.setBounds(new Rectangle(84, 49, 167, 25));
          passwordJLabel.setBounds(new Rectangle(10, 86, 130, 25));
          passwordField.setBounds(new Rectangle(84, 86, 167, 25));
          loginJButton.setBounds(new Rectangle(90, 123, 75, 25));
          cancelJButton.setBounds(new Rectangle(176, 123, 75, 25));
          this.getContentPane().setLayout(null);
          this.getContentPane().add(serverJLabel, null);
          this.getContentPane().add(serverJTextField, null);
          this.getContentPane().add(usernameJLabel, null);
          this.getContentPane().add(userNameJTextField, null);
          this.getContentPane().add(passwordJLabel, null);
          this.getContentPane().add(passwordField, null);
          this.getContentPane().add(loginJButton, null);
          this.getContentPane().add(cancelJButton, null);
          loginJButton.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                System.out.println("loginJButton.actionPerformed");
          loginJButton.addKeyListener(new java.awt.event.KeyAdapter() {
               public void keyPressed(KeyEvent e) {
               if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                  System.out.println("loginJButton.keyPressed");
          cancelJButton.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                dispose();
    [/code[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting mouse events outside of nodes

    Does anyone know how to get a mouse event to trigger outside of a nodes clip area? I am trying to write a game and follow the model/viewer/controller outline. I want the controller to handle the mouse events and the controller have no substance on the screen. Mouse events only seen to work when they are inside a node. My current fix is to make the controller appear on the screen as a giant rectangle of the background color. However if there is a better way I would appreciate it.

    My current fix is to make the controller appear on the screen as a giant rectangle of the background color.That's indeed the classical and recommended way. Or make it transparent. Can be in the background (let the nodes handle the clicks (they can block mouse or not), get all "lost" clicks) or in the foreground (get all clicks, letting them pass through to be handled also by nodes).

  • Very strange behaviour of RGBImageFilter class

    Hi!
    I found very strange behaviour of RGBImageFilter class and problem is
    that I need to solve that problem :/ So, situation is next:
    I decided to use filtering process for collecting information about
    image. So, I extended my own class from RGBImageFilter and overwrite
    filterRGB( ... ) method ( everything is absolutely the same as in
    documentation ) and also added my own code for 'no matter what'.
    This code changes some class variable and my idea was to read those
    variables after filtering process end, but... Suddenly I realized that
    those variables, many times changed while filtering were performed
    ( I checked it ) after filtering gave the same value as in constructor!
    The only one clue and idea about what happened is that class instance
    were cloned and then executed, but thats not a functionality I was
    searching. :/ I made some example of that 'effect'.
    Image file name goes in command line.
    Please pay attention on -3 value on exit: Filtering works, count growing
    ( just uncomment setPixels() method to see it ) but, but...
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    class ToForum
         public static void main( String[] args )
              try
                   JFrame frame = new JFrame( "now i beleave in x-files!" );
                   frame.setDefaultCloseOperation( frame.DISPOSE_ON_CLOSE );
                   Toolkit kit = Toolkit.getDefaultToolkit();
                   Image origin = kit.getImage( args[0] );
                   RedBlueSwapFilter filter = new RedBlueSwapFilter();
                   Image filtered = frame.createImage( new FilteredImageSource( origin.getSource(), filter ) );
                   MediaTracker tracker = new MediaTracker( frame );
                   tracker.addImage( filtered, 1 );
                   tracker.waitForAll();
                   System.out.println( "AND WE GOT: "+filter.getCount()+" !!!" );
                   Container content = frame.getContentPane();
                   content.setLayout( new FlowLayout() );
                   JLabel label = new JLabel( new ImageIcon( filtered ) );
                   content.add( label );
                   frame.pack();
                   frame.setVisible( true );
              catch( Exception ex )
                   System.out.println( "Exception in main():\n"+ex );
    class RedBlueSwapFilter extends RGBImageFilter
         private int count=-5;
         public RedBlueSwapFilter()
              count = -3;
              canFilterIndexColorModel = true;
         // uncommenting this function will show that filterRGB method IS calling !!!
         // so, why then AFTER filtering count is still ( or again ??? ) equals to 0 ?
         public void setPixels( int x, int y, int w, int h, ColorModel model, int pixels[], int off, int scansize )
              System.out.println( "on entering in setPixels count="+count );
              super.setPixels( x, y, w, h, model, pixels, off, scansize );
              System.out.println( "on exiting from setPixels count="+count );
         public int filterRGB( int x, int y, int rgb )
              count++;
              return ( (rgb&0xff00ff00) | ((rgb&0xff0000) >> 16) | ((rgb&0xff) << 16) );
         public int getCount()
              return count;

    Cliff, Hi. I'm curious because this can't work. I have no problem synching with the exchange - as long as i accept the message that the certificate of the exchange (which is not the certificate of the exchange but the certificate of dig @reighthandsideofmailadress) is not valid (expired, wrong common name etc).

  • APEX Listener and EPG - strange behaviour

    Hi
    For some years, I've used EPG for APEX but have struggled with performance particularly as I can have up to 150 student developers using at any one time.
    I do a fair amount of work using ORDImage and have successfully developed APEX applications to upload image files and display full-size and thumbnail images.
    After upgrading to APEX 4.1 (from 4.0), I decided to install APEX Listener standalone.
    Before I did so I checked that my applications still worked in 4.1 and they did.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.
    Configuring APEX Listener and running the same application through that DOES display the images.
    So this part of the application works under APEX Listener but not under EPG.
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank page with a wwv_flow.accept URL although the image does indeed upload. Under EPG it works as expected and I get a success confirmation.
    So this part of the application works under EPG but not under APEX Listener.
    Has anyone else come across different behaviour depending on the mode of connection?
    Thanks
    Brian
    [Oracle EE 11gR2, Windows Server 2008R2, APEX 4.1, APEX Listener 1.1.3]

    Hi Brian,
    it sounds like you have both EPG and APEX Listener running on the same machine, so your problem might result from a port conflict. Note that both services use TCP port 8080 as default.
    At least a port conflict would explain the strange behaviour in your case, some things working on one web server and some on the other.
    Some parts of your initial post hint to that direction, e.g.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on >wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.... because the APEX Listener only interfere with the EPG if it is at least running on the same machine as your database and furthermore, if it is unconfigured in terms of ist database connection, a port conflict might be the only way it could cause anything like that.
    However, if you are sure that's not the issue, please check if you see any error in the APEX Listener's log for the following action you performed:
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank >page with a wwv_flow.accept URL although the image does indeed uploadIf you actually see just a blank screen, something very bad must have happened and you should see some kind of stack trace there.
    For further investigations, if necessary, it would be helpful to know how you deployed or started your APEX Listener and which JDK version you use.
    For the moment, I still think the port conflict is my best guess.
    You could avoid it by either changing the port for EPG (I'd not recommend that if you have other users still using it) or by changing the port for your APEX Listener.
    -Udo

  • Firefox mouse event not behaving the same on PC and Mac computers

    I use the FCKEditor and having a very strange problem. When I click on the FCKEditor's editing area, the keyboard gets disabled untill I click the mouse somewhere outside of the editing window. The problem only happen on Firefox (3.6.10) on Mac computer (Snowleopard 10.6.4). Doing exactly the same steps on PC works without any problem.
    What I want to know:
    - Is it possible that the Firefox on Mac is different than the PC in handling mouse events? Or some other areas?

    Sounds more that Firefox is treating that editor area as read-only.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Unexpected Behaviors of Mouse Event in Look And Feel

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test{
         public static void main(String[] args){
              try {
                  // Set System L&F
                 UIManager.setLookAndFeel(
                     UIManager.getSystemLookAndFeelClassName());
             catch (UnsupportedLookAndFeelException e) {
                // handle exception
             catch (ClassNotFoundException e) {
                // handle exception
             catch (InstantiationException e) {
                // handle exception
             catch (IllegalAccessException e) {
                // handle exception
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(400,400);
              final JPopupMenu popup = new JPopupMenu();
              popup.add(new JMenuItem("Test"));
              JPanel panel = new JPanel();
              panel.addMouseListener(new MouseAdapter(){
                   public void mousePressed(MouseEvent e){
                        System.out.println("Mouse Pressed!");
                        if(e.isPopupTrigger())
                             popup.show(e.getComponent(), e.getX(), e.getY());
                   public void mouseReleased(MouseEvent e){
                        System.out.println("Mouse Released!");
                        if(e.isPopupTrigger())
                             popup.show(e.getComponent(), e.getX(), e.getY());
              frame.add(panel);
              frame.setVisible(true);
    }When I right click, the popup menu shows up and prints:
    Mouse Pressed!
    Mouse Released!
    Then I click on another position, it will print:
    Mouse Pressed!
    Mouse Released!
    The problem is when I set the LookAndFeel to SystemLookAndFeel (which is Windows XP), it only prints:
    Mouse Released!
    after the pop up menu shows up.
    I wonder what happened to the Mouse Pressed Event?

    Late to the party, but I'd like to add that I came across this same problem when we recently upgraded from 1.6_02 to 1.6_11. I have a JTable where a right-click produces a JPopupMenu, but a double right-click is a shortcut to one of the popup menu functions. Popup shows up fine on the single-click in both, but the double-click function didn't work in the later version.
    As hinted in this thread, it happens when you are reacting to the mousePressed event and you've install the System L&F (at least on Windows XP). I printed out PopupMenu.consumeEventOnClose after setting the L&F, and it reported true. So all I did was override that property to false after setting the L&F, and everything was back to normal.
    Not sure why that changed between those two updates. There were bug fixes 6539458 in u4 and 6217905 in u10 that are both related to JPopupMenu, so maybe one of those accounts for the difference. Hopefully I'm not breaking something by overriding the property.

Maybe you are looking for

  • Master List of Shortcut Keys

    Is there a list in a PDF Format or a Word format or any format that has the compete list of Shortcuts for Final Cuts Default Keyboard Layout? I am a teacher and I would like to give this list to my students. Thanks in advance

  • Toast 7 images in quicktime

    I recently had some video sent to me in the bin/cue file format. After reading on this forum that i would have to convert them with toast 7 to a disk image to view the files, i have, but now i'm stuck. Quicktime cant open the image and iDVD and iMove

  • How to recover photos if they seem to be missing after iPhoto update ?

    MacOSX OSX Version 10.8.3 Processor 1.8 GHz Intel Core i5 Memory 8 GB 1600 MHz DDR3 iPhoto iPhoto '11 version 9.4.2 (710.42) Problem 1. Updated to iPhoto version 9.4.2 through the app store. 2. Didnt not check back after the upgrade was complete. Che

  • Camera adjustments

    Needing to change the resolution of pics taken for for files. Default setting eat up too much memory.  Any suggestions? Apps to download to be able to adjuste setting? Thank  you!

  • Invoice Against Delivery Challan

    Against the material in PO(GRN based), if the invoice has been parked twice against the GRN, then system allows to post the invoice twice. How we can restrict it. Also if against one GRN, the invoice has been parked, then second time how i can restri