Making something happen on mouse click in separate class

Hi, I have two classes, Pixel, and Calc. Calc extends applet and pixel extends canvas. Calc creates instances of pixel in the applet, and what i want to happen is that when the user clicks on a pixel, it changes color. however, no color changing was happening. i tried inserting some debug code, and that didnt show up which makes me think the event isn't even happening at all. here's my code:
pixel.java
import java.awt.*;
import java.awt.event.*;
public class Pixel extends Canvas implements ActionListener {
     private Color c;
     public Pixel() {
          setSize(10,10);
          c = Color.yellow;
     public void paint(Graphics g) {
          g.setColor(c);
          g.fillRect(0,0,10,10);
     public void actionPerformed(ActionEvent e) {
          c = Color.black;
          System.out.println("in event code...");
}calc.java
import java.applet.*;
import java.awt.*;
import javax.swing.*;
public class Calc extends Applet implements ActionListener {
     private Pixel test;
     public void init() {
          test = new Pixel();
          add(test);
     public void paint(Graphics g) {
     public void actionPerformed(ActionEvent e) {
<applet code="Calc.class" width=400 height=400>
</applet>
*/what do i need to do??? thanks for your help
Tom

if you want something to happen you need to "activate" the actionlisternersomething.addActionListener(this);but if you want something to happen when you click with you mouse you need to implement MouseListenerimplements ActionListener, MouseListener{
  public void mouseClicked(MouseEvent me){}
  public void mousePressed(MouseEvent me){}
  //and other methods..
}It has several mouseevents that you can use..
then add the listener to the pixelclass, or in your mainclasspublic class Calc implements MouseListener{
  private pixel test;
  test.addMouseListener(this);
  public void mousePressed(MouseEvent me){
    test.setColor(new Color(255,255,255));
}to make this work you need a setColor method in your class pixelpublic class Pixel .. {
  //the old stuff
  public void setColor(Color col){
    c = col;
}hope it helps..

Similar Messages

  • Pop-up box upon mouse click without separate URL

    Hi there,
    I'm not sure what to call this, so I have referred to it as a "pop-up box upon click" for lack of a better description. I am an amateur and have taught myself how to make this site.
    Hi there, here is what I am trying to do...There is a page on my website that display details about our shows. Instead of having all info displayed all the way down the page, I want it to be tucked away neatly, so the viewer can click it for more details. All they would see initially is just the date and location. I have tried the Adobe spry collapsible panel but I'm not a fan of it and it keeps breaking when I try to update it.
    How I want it to look and behave is like the Photos page on my website. I want to click whichever show I am interested in reading more about, and have a neat and clean little box pop up with the details and an 'X' to close it (exactly looking and behaving like when I click a picture thumbnail to enlarge it). It would be nice if the content inside the box was selectable for the viewer as well so they can copy and paste the info. I don't want to have to create and link to new page for evey single show we book.
    Please let me know a code I can implement to do this, how to edit the content inside the new box, and where to put it on my page's code.
    Website I'm wanting this on: www.dieseljunkies.ca > Shows
    Software I am using: Adobe Dreamweaver CS3
    Thanks!
    J

    Just went and dl'ed the adobe widget browser and found something under lightbox called clearbox which can display web content. I added it to "My Widgets". It tells me to import it into dreamweaver, to go to Insert>My Widgets and select the widget. Only problem there is no Insert>Widgets in Dreamweaver CS3 for PC. I am quite lost now. I tried to configure it and all that but no clue where it is saving to or how to go about this. I am wondering what an easy step by step would be for this eg:
    1 Open Dreamweaver
    2 insert a clearbox link on your page by Doing "this"
    3 Insert "this" code "here"
    4 host "this" file on your website's ftp
    5 edit "this" part of the code for content and "this" part for the header
    Jason McFarland, Marketing & Inside Sales
    KELCOM Mobility Solutions Division
    363 Eugenie St. E., Windsor, ON N8X 2Y2
    Phone: 519-250-9100 ext. 2501 • Mobile: 519-564-9823
    Fax: 519-790-0241
    [email protected] • www.kelcom.com
    DID YOU KNOW?…
    KELCOM sells
    barcode scanners,
    barcode printers
    and labels!

  • In eLive nothing happens when I click on the various Learn, News or inspire boxes

    I am new to Photoshop but shouldn't something happen when I click on the various boxes (learn, new, inspire) / links?

    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Mouse clicking in blank area destroying all button display

    Hello,
    I have created one small application using JFrame, Jbutton and Panel. whenever i click on root button it create one more button etc etc.. and display properly but when i click on blank page it on the panel it destroy the display and not show more created button.. i have tried with panel.repaint() but it is not working... code goes like...
    JFrame frame = new JFrame("MouseEventDemo");
    JButton button = new JButton("Test");
    panel.add(button);
    applic.getContentPane().add(panel);
    frame.pack();
    frame.setSize(600,400);
    frame.setVisible(true);
    // call subclass for creating button.. and in subclass i also set the frame
    Please help
    R's
    Binny

    here is the code.... JButton, JPanel, ButtonViewer all this classes are resize into com.tree package i m trying to create root -> child button tree
    import java.awt.AWTEvent;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Image;
    import java.awt.Event;
    import java.awt.event.MouseEvent;
    import java.awt.Container;
    import java.awt.FlowLayout;
    import com.tree.*
    import java.sql.*;
    import java.util.ArrayList;
    import javax.swing.JApplet;
    //import javax.swing.*;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JComponent;
    public class ButtonTestViewer extends Object implements MouseListener
         JFrame frame;
         ButtonViewer viewer = new ButtonViewer();
         JButton root;
         Panel panel;
         ButtonTestViewer()
              //super();
              frame = new JFrame("MouseEventDemo");
              viewer.setOrientation(Orientation.VERTICAL);
              viewer.setAlignment(Alignment.CENTER);
              panel = viewer.getPanel();
              panel.setBorder(BorderFactory.createTitledBorder("Visualizer Button"));
              root = new JButton("1");
              panel.add(root);
              JScrollPane jScrollPane1 = new JScrollPane();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jScrollPane1.setAutoscrolls(true);
              jScrollPane1.setViewportView(panel);
              frame.getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
              //panel.addMouseListener(this);
              viewer.add(root, null );
              root.addButton( JButton.ACTIVATE_CALLBACK, new ButtonChild(viewer,null,frame,root.getText()) );
              frame.pack();
              frame.setSize(600,400);
              frame.setVisible(true);
              viewer.getPanel().repaint();
              viewer.getPanel().validate();
         public static void main(String argv[])
              new ButtonTestViewer();
    public void mousePressed(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseReleased(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseEntered(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseExited(MouseEvent e) {
              //frame.repaint();
              //repaint();
         public void mouseClicked(MouseEvent e) {
              System.out.println("mouse clicked");
              //panel.repaint();
    class ButtonChild extends CallButton
    static private int count = 0;
    private ButtonViewer viewer;
    private Image image;
    private JFrame frame;
    private int node;
    private ArrayList nodeList = new ArrayList();
    private ResultSet rs = null;
    private String sql = "";
    private int nodeid;
    private int position;
    private boolean nodeFlag = false;
    public ButtonChild( ButtonViewer viewer, Image image, JFrame frame, String label )
         System.out.println("label is:"+label);
    this.viewer = viewer;
    this.image = image;
    this.frame = frame;
    this.node = Integer.parseInt(label);
    this.nstmt = stmt;
    //this.container = container;
    //frame.show();
         public boolean activate(Event event)
              System.out.println("b");
              return false;
         public boolean activate(MouseEvent me)
              System.out.println("c");
              JButton child;
              try
                   for(int i=0; i<nodeList.size(); i++)
                        if(node == Integer.parseInt(nodeList.get(i).toString()))
                             nodeFlag = true;
                             break;
                   if(nodeFlag == false)
                        int k=3;
                        for(int i=2; i<=k; i++)
                             String name = ""+i;
                             //node = i
                             viewer.add(child = new JButton(name), (Widget)me.getSource() );
                             child.addButton( JButton.ACTIVATE_CALLBACK, new ButtonChild(viewer,image,frame,name) );
                             //container.add(child);
                             nodeList.add(name);
                        nodeList.add(""+node);
                        frame.repaint();
              }catch(Exception e)
                   e.printStackTrace();
              return true;
    }

  • Making the mouse click by itself

    If you are trying to use an automator workflow with a software that is
    not included in the automator list (and therefore there are no prebuilt actions for you to choose), but all you need to do is manually open
    the program yourself, place the mouse over the START button in the software,
    and you just need automator to click the mouse at a predetermined time,
    is there a way of doing that....just making the mouse click over a spot you
    have left the mouse, at a predetermined time?
    I know how to save the workflow as an ical plug in to trigger the workflow at a specific the time, but I have no idea if I can just make automator "click the mouse" button by itself any place you just leave the mouse.
    Any input would be appreciated. Thanks.

    QuickTime Broadcaster is scriptable, and has commands to start and stop broadcasts:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">     tell application "QuickTime Broadcaster"
              if (exists document 1) then
                   start document 1
                   delay 30 -- ...or however many seconds
                   stop document 1
              end if
         end tell
    </pre>

  • Firefox stops responding to mouse clicks after one click; am on iMac PPC G5,OS 10.4.11; this freeze happens with Logitech AND Mac mice.

    About a month ago Firefox would stop responding to the clicks of my mouse after a click or two. Minimizing the page and reopening, or clicking off to another window and back, sometimes gives me another click or two but it always freezes again. I'm on an iMac G5 PPC (from around 2005) desktop running OS 10.4.11. I have a Logitech mouse and loaded a newer driver, and upgraded to Firefox 3.6.12 but the problem persists. I also tried running in Safe Mode but this did not fix the problem, and tried both the original Mac mouse and my Wacom tablet but neither fixes the problem.

    Same problem FF3.6.13 WinXP. I had this before but it went away. Upgraded from Firebug 1.6.1 to 1.6.2 tonight and the problem returned; not sure if that's coincidence.
    Weird thing is, it's not just that Firefox doesn't respond to the mouse clicks. The click goes right through Firefox to whatever's underneath. However, only the top FF window is affected. If I have two FF windows open, alt-tab into window A, then into window B (both maximised), then when window B stops responding the clicks are picked up by window A.
    With window B not responding but over window A, if I click where window A has a SELECT, window A receives the mouse event and the OPTIONS appear over window B.
    Only alt-tabbing to another non-Firefox window fixes the problem, and only temporarily.

  • HT201250 I have thousands of pictures on my Mac.  If something happens to my Mac I don't want them lost.  I do time machine back ups to an external hard drive once a week.  Is this good enough for making sure my pictures don't ever get lost?

    I have thousands of photos on my Mac.  If something happens to my Mac obviously, I don't want to lose the photos.  I do Time Machine back ups to an external hard drive once a week.  Is this good enough to make sure my pictures don't get lost?

    tgs6164 wrote:
    I have thousands of photos on my Mac.  If something happens to my Mac obviously, I don't want to lose the photos.  I do Time Machine back ups to an external hard drive once a week.  Is this good enough to make sure my pictures don't get lost?
    Purchase a couple of these when they go on sale.
    Start burning all the photos onto DVDs. 
    At least you'll have all your photos if your computer, time machine or any other backup you use goes bonkers.

  • NSView subclass and mouse clicks

    I wrote a relatively simple program. It's got a single visual component on the window, an NSView subclass with drawing delegated out to another class called Arrow. Anyway, it uses a timer to trigger calls to drawRect which in turn "animates" a layer. I have a 100x100 layer and a velocity & position which get updated each time through depending on how much "real" time has passed. As the layer bounces around the screen, the animation seems smooth and everything looks good. If I start clicking in the window, however, things get wonky. The animation stutters (probably expected) and the position sometimes gets set back to the origin (0,0, bottom left corner of screen). I wonder if there's something I can do to stop mouse clicks from affecting the view, I have no set up anything to use the mouse clicks AT ALL so I don't really know how they can affect anything in the code I wrote. If this isn't enough info to answer the question, I'll post the xcode project.

    The end result is going to be a very simple 2d game with maybe 8-10 things on the screen moving around at any one time. My next step is to try out openGL but using these CALayers seemed a lot simpler. However, since you say any event will block, I expect that will happen to opengl as well. I'll dig some more in the examples. It seems I followed the pattern from the crash landing demo (although I'm doing it on the mac itself, not iphone/simulator) to set up the rendering.
    When you suggest using core animation, are you talking about just telling it the start/end position and the speed, and letting it handle everything in between? I don't think that will work for my case because eventually I will have to handle mouse/keyboard events to alter the movement in real-time. Am I missing something?
    Thanks again for your help.

  • Mail does not respond to mouse clicks properly

    This bug in Mail started in Lion, and has continued (or possibly worsened in some instances) in Mountain Lion.  Has anybody heard of a fix?
    Basically Mail acts like it is freezing, but in fact is not handling mouse clicks properly.
    1) If Mail is "behind" another active app window, clicking in the content area of the Mail window will not activate the window until you click a SECOND time.
    2) Once you get Mail to respond by clicking it the second time, if you click back and forth between it and the window in front (e.g. between safari and mail, the clicks DO register, but Mail acts as if the click position is offset from where you actually click.  The offset seems to vary and I haven't found a consistent link between the offset and where I click in mail or the other window, or the relative positions of the two windows.
    3) When you try the 2) trick on elements that can scroll, you realise that as well as an offset, Mail is trying to "drag" instead of respond to a click, so the list of mail folders pulls and bounces back, or the list of mail scrolls, or sometimes if everything lines up, an image of an envelope appears and moves as if you are trying to drag an email from one place to another.
    4) Clicking on the title/button/toolbar of Mail ALWAYS brings it to the front...
    5) If you bring Mail to the front by repeatedly clicking on the content area (and yes, sometimes it takes more than one click...) and as the FIRST thing you do after activating the window, click one of the buttons in the toolbar (e.g. the trash or delete button), it will depress, and stay down, as if you have done a "press and hold" instead of a "click".  Clicking on the button again will complete the action, but clicking elsewhere in the title bar will release the button and the action will not occur, just as if you had held the mouse button down and dragged off the button before releasing, which is appropriate behaviour IF you had held the mouse button down in the first place...
    6) If you activate Mail by clicking in the content area, then clicking a second time in the content area, then continue to single click around the content, it behaves as if it is one step behind you, responding as if the LAST click is the click you just made.  Interestingly the "button down state" seems to persist, because for instance clicking on a succession of emails will highlight each email in turn, but the content of the email on the right will not update with each click, only updating when you "break out of the cycle" with a double click or a title bar click.
    These are all REPRODUCIBLE, even after a restart.
    They ONLY happen in Mail.
    I have tried mouse, track pad, turning off bluetooth, so I don't think these things are related.
    SO...
    I THINK that MAIL, since Lion, has an issue with its event handler, where MouseUp events are either lost or mishandled, so that clicks are being registered as drags, or the "button down" state is not updated or something...
    With the above description I feel the Mail programming team should be able to track down the bug in minutes and fix it.
    Apple - feel free to get in contact with me and I will let you access my machine via remote desktop or teamviewer or something to see the bug in action.
    It is time to fix this annoying behaviour.
    Message was edited by: jaffle
    Worked out that 2 and 6 are related - the offset isn't an offset at all - it is the thing you last clicked on!

    Okay, I tried deleting the Finder preferences first (along with a handful of other preference files that I knew were no longer needed), and it seemed to help--at first. But eventually, all the same problems started happening again, so I concluded that it was necessary to just start with a fresh (empty) preferences folder. As you know, this is a pain to deal with, but I limited my pain by moving all the old preferences files into a folder on the Desktop rather than simply deleting them. That way, I could just put back any missing preferences that were too hard to recreate. Restoring all of my preferences with new (uncorrupted) prefs files will be an ongoing process, but the good news is that this effort (so far) seems to have solved the problem. Mail is responding to all my clicks, even when I switch between different apps and different spaces.  :-)
    Now that things are working correctly, I notice that when I switch between apps and/or spaces, the selected app (or the frontmost app in the new space) will show an active state for its window, whereas before, the selected app didn't update to show that it was active--it kept the inactive state for its window. I'm no expert, but it seems to me that this might have something to do with the windowserver process, so it might make sense for the next person who stumbles on this thread to start by deleting any preferences files that begin with com.apple.windowserver. Just a hunch, but it's worth starting there before you do a complete flush of all your preferences.
    Thanks again for the help--hopefully this workaround will be persistent. Fingers crossed!

  • The Hyperlinks and even the active buttons(like Back, Forward, Maximize,minimize,closeetc) on a webpage opened on Firefox page become inactive and there is no action on mouse click on them.

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I use Firefox Version 3.6.6. If firefox is kept opened for a day or two with some tabs opened, then the active buttons like the "Back","Forward","Maximize","minimize","Close", etc and even the links on the webpage become disabled. On mouse click no action gets performed on these type of links. Once this starts only a PC restart causes Firefox to work normally.
    Please kindly help me with a solution and I would request a fix for this issue.
    == This happened
    ==
    A few times a week
    == Firefox is kept opened for long time, may be for a day or two with quite a lot of tabs opened.
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Google Redesigned 0.4.5 false
    Greasemonkey 0.8.20100211.5 false
    Java Console 6.0.16 true
    Java Console 6.0.17 true
    Java Console 6.0.20 true
    Java Quick Starter 1.0 false [email protected]
    Microsoft .NET Framework Assistant 1.1 false {20a82645-c095-46ed-80e3-08825760534b}
    New Tab King 3.1.4 false
    RealPlayer Browser Record Plugin 1.1.1 false
    Stylish 1.0.8 false {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.casesensitive 1
    accessibility.typeaheadfind.flashBar 0
    browser.places.smartBookmarksVersion 2
    browser.startup.homepage_override.mstone rv:1.9.2.6
    extensions.lastAppVersion 3.6.6
    general.useragent.extra.microsoftdotnet (.NET CLR 3.5.30729)
    network.cookie.prefsMigrated true
    print.print_printer \\secureprint\Level 8 Right Wing Printer
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_top 0
    privacy.sanitize.migrateFx3Prefs true
    security.warn_viewing_mixed false
    == User Agent
    ==
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.24 Version/10.54

    I do not use McAfee software and I am having this issue. I can right-click on the "back-or-forward" buttons and get a history list to choose from (which is far from an improvement), but do not get any response from a left-click. The "back-or-forward" navigation buttons are greyed-out. Also, when I open Firefox (4), I get two title bars at the top with two separate sets of the "minimize", "maximize" and "close" icons. It appears as if one window is open within another, but if I click any of the commands "both" windows respond. It's annoying and cumbersome.

  • RH9 submenus do not appear; pc "dings" on mouse click

    Edition: RH HTML
    Version RH9
    When I click on a submenu like File>Open or File>Import>HTML, at the moment the dialog box should appear, the cursor momentarily changes to the "spinning circle" (Windows 7) as if a dialog box is going to open, but then nothing happens. The cursor returns to the arrow. When I click anywhere on the screen, the computer beeps as if it's waiting for a interaction with a dialog box -- one that is not visible. RH doesn't seem to be locked up, it just seems like a dialog box has popped off the monitor and I can't get it back.
    This even happens on the initial RH screen when I click "Open". I must end the program in Task Manager in order to restart RH. This problem happens with any project, including the samples.
    RH was working fine before this happened about a week ago. I was going to import an .html file and it seems like I clicked too fast or somewhere on the edge of the menu hotspot or something -- like I almost clicked in the right place, but didn't. Suddenly, I just got beeps when I clicked.
    My troubleshooting attempts:
    Resizing the screen, resetting pods, closing pods, tile/cascade windows...
    Uninstall/install RH9
    Search the forum. Found a simlar topic called "HELP! Preview Topic has stopped working". Printed and tried the steps suggested for making changes in the Registry, but the directory/file structure didn't match mine, so I didn't make any changes.
    Please help soon. I'm having to use an auxilliary computer that is much slower.
    Thanks in advance,
    Shelley

    Hi there
    In RoboHelp 9 you click the Workspace and choose Default. But I'm doubtful that this will actually help things.
    The symptom you are describing sounds exactly like a situation where a dialog is appearing, but you are unable to see it for whatever reason. With a second monitor, we usually see folks that were using a second monitor, then disconnected it. The problem is that the dialog is expecting to appear on the second monitor and you cannot see it because it isn't connected.
    You might try downloading a copy of MurGeeMon and see if you can use that to manipulate the windows.
    Click here to visit the MurGeeMon site
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • No right mouse click in Safari?

    Hi-
    When I right mouse click (Mighty Mouse) in Safari no popup appears. (The one that would have "Back" - "Forwar" - "Reload", etc.)
    In Firefox right mouse click brings up this popup as does IE.
    Am I missing something, can I get this to work in Safari?
    Cheers,
    D.

    What happens if you control-left-click. This should bring up the same contextual menu as a right-click. If that doesn't work then I would try creating a new user account, launch Safari from that account and try the right-click. If the new user account works then you have a corruption issue in your own account. There is no option in Safari to turn this action on or off. Contextual menus are part of the operating system itself.
    I have found that the right-click menu in Safari depends on where your cursor is when you right-click. If I right-click over graphic areas I sometimes get a different menu relating to images or graphics.

  • Buggy mouse cursor position (Jumps around to random spot on mouse click)

    I've only noticed this annoying quirk in photoshop CS4. This only happens when using the tools in photoshop, and not in any other programs.
    When using the tools in photoshop, every so often, some times more often then others, the tools will jump to a random place on (and many times FARE off) screen on mouse click. As in the tool is no longer where my mouse is, but is registering elsewheer.
    A few examples. Working with the pen tool to line something, click a control point to set it, go to click to set another one and that point is now being dragged around well off my screen even though the mouse pointer is on screen.
    Using the brush tool to color something in and click and the brush is coloring fare above my curser.
    Select something and the selection is jumping here and there each time, go to crop? Click and drag and the grabed part jumps off screen.
    It is random as to when it wants to jump, and where it wants to jump. Some times it happens all the time, others every so often, or times not at all,.
    No settings are ever changed reguarding the mouse, it's just random and ONLY in photoshop with using it's tools. My mouse it's self is not jumping, just where the tool is drawing/putting down whatever is.
    This jumping also seems to be a rather common thing, as I stream my drawing live at times and when it starts doing this I've had many people comment and remark that their copy also does the same thing. Posting a journal entry about it also resaulted in a lot of replies with people facing the same thing.
    Is this a bug in CS4? People have told me to check my mouse settings under the control panel but that shouldn't have anything to do with it when every other program I use does not do this yet photoshop does. Flash don't, dreamweaver don't, illustrator don't. Painter, bryce, max, etc etc none of them do it. Only photoshop and only when I am using a tool. It's effects are still random.

    Hi,
    I have the same problem as well. I don't think it's related to the mouse hardware at all- on mine the mouse curser stays in the same position but Photoshop registeres is elsewhere! If I let go (of holding the mouse button), the mouse is still where I left it. I've had this problem since Photoshop CS4 x64 but the problem still happens on Photoshop CS5 x64 (it was fine at first but after about a month of use now CS5 has started having the same problem).
    I've had the problem for a while (almost a year now) and is really annoying! I dont have any tablets, and I've changed my mouse a few times. I am using a laptop with Windows Ultimate x64. It only happens in photoshop, it's fine in Adobe InDesign.
    Hopefully someone might come up with a solution!
    Thanks to anyone who can help me/us

  • Using mouse click to return image coordinates.

    Ok so I've been trying to figure out how to do this and it seems very complicated for something that really seems straightforward.
    Anyway. I have a camera that updates an image object on the front panel using a while loop. I have another image object that is updated with a still image when the "snap" button is pressed. Now what I want to do is to click on a point in the snapped image and have the VI return the coordinates of that pixel in the image coordinate frame.
    What I've got so far is an event structure in the while loop with the following to occur in the event "image object -> mouse down":
    Server reference (reference to the image object) -> Property node (last mouse position) -> output screen coordinates.
    I've got two errors that don't make a whole lot of sense to me (I haven't worked with event structures before): "event data node contains unwired or bad terminal" and "event structure one or more event cases have no events defined". This second one seems strange since I don't actually want anything to happen if there's no mouse click. The first one seems to refer to the element box on the left hand side of the event structure.
    The above is my lastest attmpt at sorting this problem and as far as I can see it should work. whatever about the errors, am I even taking the right approach with this? I'd have thought image cordinates would be a common enough thing but search the boards here, it would appear not...
    Kinda stumped here. Any help is much appreciated.
    Message Edited by RoBoTzRaWsUm on 04-14-2009 08:34 AM
    Solved!
    Go to Solution.

    Hello RoBoTzRaWsUm,
    I have taken a look at your VI, which has been taking a correct approach to the data you are looking for.  As you are using and event structure, you should be looking for an event to occur.  When using a Property Node, you are trying read an attribute of a control.  However, in an Event Structure, I believe you should be using an Invoke Node.  An Invoke Node allows your to read an event or write a method with the Control Class in LabVIEW. 
    1. Place down and Invoke Node from the Functions Palette in 'Programming'->'Application Control'
    2. Wire your Image Control reference to it
    3. Click Method, and select 'Get Last Event'
    4. Right click on 'Which Events' and 'Create Constant'.  Make the constant '1' in the array
    5. Read the 'Coordinates' Cluster from the left hand side of the Event Case by right clicking  and 'Create Indicator'
    You will find a piece of example code attached.
    Regards
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland
    Attachments:
    UKSupportMouseClick.vi ‏39 KB

  • Macbook Pro crashes on mouse click

    Hello everyone,
    I've been having this problem for two weeks now and it's happening more and more frequently!
    Info:
    Macbook Pro 15'' mid 2011
    Mac OS X Mavericks / Mac OS X Yosemite
    Hard Drive: Samsung 840 Evo 250GB SSD
    8 GB Ram
    THE ISSUE:
    Every so often at a random time, at the exact moment I perform a mouse click, my macbook pro crashes.
    That instant, the screen goes dark ( like I just ripped out it's battery ) and reboots automatically, saying "your mac restarted because of a problem".
    Like I said, it's gotten more and more frequent! ( 5 times a day or more now... )
    WHAT I'VE TRIED:
    So the problem occurred in Mavericks, so I figured I'll install Yosemite ( on a new partition ) and see if it's any better.. Well it isn't...
    Same problem, same type of crash.
    Then I figured maybe it's related to my magic mouse.. So i turned it off and used a third party mouse. No luck! It also happened while using the Macbook's trackpad.
    I also haven't found anyone with a similar problem online so far, so if any of you have experienced something like this or know what might be causing it, i'd be grateful for any information!
    Best regards,
    Robert

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CSeq 'n Cause: -' | tail | awk '/:/{$4=""; print}' | pbcopy
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.
    The Terminal window doesn't show the output. Please don't copy anything from there.

Maybe you are looking for