DataSocket and window resize

Does somebody have an idea about a DataSocket error (for OPC protocol) "-2147417843 DataSocketUpdateData.vi can't read data" occuring when the user resizes the running window using Windows classical upper right button?
Thank you for your help
Jean-François COUPAT
Fabricom Systèmes d'Assemblage

Bonjour,
Merci de vous intéresser à  mon problème.
Les 3 vi joint sont appelés cycliquement, car le programme Labview est "esclave" d'un Automate Programmable avec lequel il échange des commandes par l'intermédiaire d'un mot d'état.
La connexion DataSocket est établie par programme. La version de Labview est 7.1.
Le programme fonctionne, mais le fait de réduire la fenêtre de la face avant semble perturber la connexion DataSocket.
Salutations
Jean-François COUPAT
Fabricom Systèmes d'Assemblage
Attachments:
InterfaceOPC_parametre.vi ‏80 KB

Similar Messages

  • Scrolling and windows resizing

    Is there a way to turn off the feature where if you scroll up or down with your mouse positioned over a windows title bar it resizes the window. This "feature" works with both a standard mouse using a scrollwheel and also when using a touchpad with two finger scrolling.

    The only third party program that I use which modifies the mouse is Sizeup and I have rigorously gone through its setting to determine if it was causing this behaviour. Also the behavior persists even when I shut down sizeup so I don't think it is the cause.
    edit:
    I would also add that this behaviour only appeared after I upgraded to 10.8. While I do have a lot of third party programs running and alot of them were updated when mountain lion was released so it is theoretically possible that this is behaviour is comeing from an external source I have no idea why any of the other programs I have running would affect window resizing.

  • Verizon email and window resizing

    Has anyone else noticed that for the past few days, when you click on a link within an email in Verizon webmail, that the window that opens seems not to retrieve the size of the previous window opened (outside of VZ webmail), and is "restored down" to a size similar to that of the webmail display (minus the ad region on the right hand side), even though the last window opened (outside of VZ webmail) was maximized?   If so, does anyone have a way to remedy or get around it?  (I prefer to see only one window at a time on my screen, so I maximize whenever possible, and find it really annoying that I must do so everytime I click on a link in an email.   It should be MY choice, not Verizon's!)

    I haven't noticed anything but a simple way to fix it is to use MS Outlook (or express), Windows Mail or Macmail.  That way you download the emails onto your computer in a program that runs on your computer.  You control everything.  If something did change on the website, it is Verizon's website and they have full control over it. 
    I would suggest if this keeps bothering you to try one of the programs listed above.  If you have Windows you should have Outlook Express (or Windows Mail).  I think Macmail is self explanatory.

  • Make text areas and textfields streach as window resizes

    im using the border layout for most of my panels. how do i make text areas and textfields stretch as the window resizes?

    Components placed in BorderLayout.CENTER will resize as the window resizes.
    You will likely need to have nested JPanels, with different layouts, to create the ultimate layout of all your components in a frame, especially for non-trivial applications.
    If you need specific help with layouts, you'll have to post an SSCCE.

  • WINDOW-RESIZED and WINDOW-ACTIVATED

    The WHEN-WINDOW-RESIZED and WHEN-WINDOW-ACTIVATED
    triggers seem to be conflicting - when both of them
    should fire (focus is on one window but go on to
    resize another one), the WHEN-WINDOW-RESIZED trigger
    doesn't fire.
    Any solution or tricky workaround? Thanks in advance.

    Please, anyone?

  • Disable window resizing and lock them?

    Is it possible through a prefernce or maybe an application to disable window resizing and lock their positions. I let my friends and family use my computer and they always move stuff around and resize everything. It really annoys me and I hate having to adjust everything to the way I like which I have spent hours setting up so they can just destory in a matter of seconds. I know I can setup a guest account but I don't have the memory or processing power for it since I usually have about 3-5 applications always open. I would also I like to steer clear from that route if possible. Thanks for any help on my issue! I did try searching to no avail however if this is already been discussed I appologize and a link to the discussion would be appreicated.
    1.42Ghz G4 Mac Mini   Mac OS X (10.4.8)   ATI Raedon 9200, 256MB ram, Model number: A1103

    The setting up and use of a guest account will not affect the memory or processing power but will use some of the hard disk space depending on how much stuff you allow your guest user(s) to save.
    You can easily set your favourite apps to load when you login again by clicking and holding on the app icon in the your Dock before you setup the new account - a pop menu appears. The advantage of having a separate account is that if you set it up as a non-administrator account the guests would not be able to screw up things too much, where as at present they could cause havoc.
    chris

  • Crashes on window resize

    I am a loyal user of logic for 8 years now. yes I'm posting about an issue where logic crashes (as in: freezes for 30 seconds then closes even if other apps are reWired to it)
    It does this SOMETIMES, when resizing any window in logic..
    it says: UNEFINED RECURSION ERROR and then you know you'll be rebooting your mac g5 (tested on g4 too)
    I sit here thinking of ten years of buying updates.
    and by PURE LUCK alone, I buy every update hoping that certain issues will be fixed. Most are not.
    On a mac there are two ways a window can be act when being resized:
    1 - as you drag the re-sizer corner of the window, you see only a dotted outline of the window, then when you let go, the window resizes.
    2 - as you drag, the entire contents of the window moves as you drag.
    #2 causes crashes. #1 is fast and quick.
    Mr. Moderator, you can delete this post as expected. But you do know as well as I do, these guys never do a user request.
    I mean my $200 alone is enough to pay one developer to fix things like this.
    Nevermind $200 from 2 million people!
    What are you doing with your user requests and your users money?

    Might try removing your media files associated with the project... put them in another folder, or disconnect the fw drive that holds them...?
    Do other project files do the same or just this one?
    Jerry

  • How to dual install Vista and Windows 7?

    Hi,
    I have a question about setting up windows 7. But Im trying a slightly different approach. I have a drive on my Mac Pro that has Windows Vista on it. But I would like to put Windows 7 on it too. I dont know if i have to partition the drive to do this or can i just install it along side Vista? Thing is before i installed Vista I used disk utilities to partition the drive to 2 equal partitions but when I went on it to put Vista on it somehow Vista took the whole drive. So i have Vista on there and all set up but now I'd like to add Windows 7 without destroying Vista...How can I do that? Do i have to use the Mac OS and partition it and install or is this something I should do from the Vista side?

    None. You have everything you need.
    Windows 7 DVD
    Vista
    And if you want another Paragon CampTune for resizing partitions.
    For backup, Vista, no need to buy Paragon or Acronis. WinClone is free and handy too.
    Trouble with Macs, or any computer, there are always different ways to get to same place.
    Backup, and then try, that is all anyone can do. I had Vista SP1 for work, Vista SP2 beta for testing, and Windows 7 beta to give it a shot, and I like W7 better.
    http://discussions.apple.com/thread.jspa?threadID=1866970&tstart=0

  • How to install Dual OS(solaris 10 and Windows XP)?

    I have got a 80 gb sata hard disk and i am not able to install Dual OS(solaris and Windows XP ) on it.My Partitions are as follows:
    Primary partition-5GB
    Remaining are extended Partition.
    Extended partition details
    8 gb NTFS partition(installed windows XP)
    7 gb NTFS partiton(No data in it)
    20 gb NTFS partition(No data in it)
    20 gb NTFS partiton(has data in it)
    15 gb RAW partiton
    I first installed Windows xp on 8 gb Extended partiton.Then when i installed Solaris i could see only 2 partitons.One with the 5 gb and the other with the 71 gb.I actually wanted to install my solaris on the 15 gb Raw partition.Since i could not see the partition(15 gb Raw) i installed solaris on the 5 gb partition.Now when the comp boots it goes to solairs os only.i dont have the option to choose windows at all.
    could any one of you explain me how the partitions are supposed to be and how could i make it as a Dual OS.
    Saravanan
    Message was edited by:
    SaravananMandala

    Windows uses the primary partiton for boot, too, even if you installed it on the NTFS volume in the extended partition. Wherever you install Windows, it will need the primary partition for booting. You can never boot from Windows extended partitions
    As for the 15Gb raw partition, it look like what you call 'RAW partition' is actually just a small little part inside the extended partition. All your NTFS partitions (and your RAW partiton) are logical volumes and they all reside inside the extended partition. Even though Windows sees them as separate drives, each with its own drive letter, just as it sees the primary partition.
    You may try do use Windows fdisk or diskpart to delete the last logical volume in the extended partition, and then get the ntfs resize tool from Linux, or the CD1 from the Debian Linux install CDs, which has it included and accessible with a nice user interface, and resize your extended partition.
    I don't know if it works, I only used it to also resize some logical volume inside the partition. ntfs resize tool might not be easy to work with, you will need to read its documentation, but it does resize NTFS partitions (I have seen it).
    If it works, then you will have your 15Gb as unallocated space available for a new partition. Let the Solaris installer create this new partition automatically during install.
    Timothy Madden,
    Romania

  • Illustrator Application Window Resizes When Opening Smart Object from PSD

    Hi All, I've taken a vector graphic created in AI CS4 and pasted it into my PSD CS4 doc as a smart object. When the original AI file was created the application window was set as I preferred it, filling my screen. When I double click the Smart Object in PSD to edit it back in Illy, the window that contains the application has been switched off of the fill screen mode and is quite a bit smaller. I know it's small but now I have to click the maximize icon in the application bar to get Illy to fill the screen again. It wouldn't be so bad once, but the application window resizes itself every time I punch back into the smart object from PSD.
    Any ideas on how I can get the AI environment from switching around on its own??
    Win 7, CS4, all patches current, Dual 22" montiors
    thnx,
    jeff

    I just want to point out that when you open the smart object of course it is not the same file as the original but an embedded copy of it.
    That might also have something to do with this issue and might also be a photoshop issue with the smart object and one reason might be that Photoshop is see the image as resolution and Illustrator sees it as a dimension and the teams might be able to do something about this but might not actually be aware of it unless you file a report even if it is not a bug it would then be a feature request.
    They might not be able to do anything about it but then there might be a clever engineer with an idea, so it might be worth the report.

  • Partition Table Looks Different Between OSX and Windows 7

    Hey all,
    I recently replaced the hard drive on my 2007 iMac, going from the 320GB drive to a 1 TB drive. It actually worked! The previous drive was failing in very odd ways, though booting into the Windows side (more on dual boot later) always seemed to work, and S.M.A.R.T. always reported that the physical drive seemed OK.
    The previous drive (320 GB) had around 200GB devoted to OSX and 100GB partitioned off for a working Windows 7 installation (custom installed x64 Win7 Ultimate). I had the Windows system image backed up to my NAS, and had a Windows system bootable disc to restore that image.
    After replacing the drive (and almost crying that I had actually done it right), I first restored OSX from a Time Machine backup, and let it take the full 1TB of space as Journalled HFS+. Then, I used Disk Utility to shrink OSX down to 500GB, and created a second partition (formatted to NTFS) with the remaining 500GB.
    Now, restoring a Windows system image is an odd thing, as it tries to do a lot of partition work as opposed to simply restoring the Windows install to a partition. I tried Macrium Reflect first (made a backup in that, too), and it looked like it was going to let me restore to the second partition. It completed the restore...and the entire hard drive was hosed. Partitions had been moved, renamed, resized, and nothing was bootable. I had to use Recovery from an external USB thumb drive to go back to the single, full-drive install of OSX.
    Then I tried again. Made the second NTFS partition and used the basic Windows System Restore disk to restore from the standard system image I had on the NAS. I was not expecting this to work. But it did. Windows started showing up in Startup Manager when "option" was pressed on bootup, and both OSX and Windows booted properly and ran fine. This is where I (finally) get to the supreme oddities:
    OSX Disk Utility still reports two 500GB partitions, one for OSX and one for Windows.
    In OSX the Windows partition shows as having NO DATA on it. Not sure what would happen if I tried to write a file to it when mounted, but there is no data on it when viewed from OSX (I was always able to see the Windows files when I mounted that partition on the previous drive).
    The Windows partition does not show up as a valid bootable system in System Prefs --> Startup Disk (naturally, I suppose, since OSX doesn't think there is anything there).
    From the WINDOWS side, Windows still sees the old partition table: 200GB for the "unknown" HFS partition, and then the rest of the space can be devoted to Windows (started as 100GB, but I was ablt to expand it to use the remaining ~750GB!).  Windows thinks it can have 750GB of space even though I know its partition is only 500GB in size!
    Windows cannot see the OSX HFS partition data using HFSExplorer. It CAN see the HFS partition on the attached backup drive (the drive I use for Time Machine).
    GParted (a partition program on a Linux bootabld CD-ROM) shows the same partitions as OSX Disk Utility (2x500GB), and also thinks the Windows NTFS partition is empty (all space reports as "unused").
    Did I mention both OSX and Windows work fine???
    There are, of course, two other partitions on the drive: the first partition is the 200MB one I always see (EFI/GUID portion?), and then between the HFS and NTFS partitions is the 600MB recovery partition (which also shows at option-pressed boot time). OSX, GParted, and Windows see all four partitions, and in the same order. It is just that Windows sees the wrong sizes, and OSX cannot see any data in the Windows partition.
    Surely this is all going to break spectacularly at some point, isn't it? What if I ever did write a file to the Windows side from OSX, or what if OSX starts taking more space than the 200GB Windows thinks is the max for that partition? What if I try to make Windows use more than 500GB because it thinks it has almost 800GB to use? What if I defrag the Windows drive?
    I had no idea a partition table could look this goofy and yet still have everything be bootable and workable. Is there something I can do to get everything in sync? Basically, I am assuming I need to get Windows to do some low-level kung fu in Disk Manager in order to properly get everything lined up with the "right" partitions as reported by both GParted and OSX Disk Utility. But how do I do that?
    By the way, any ideas that totally nuke the drive and start from scratch are completely fine (if it seems like they are doing something different enough that I'd give it a try). I have good backups of both OSX and Windows and have restored them about a half dozen times already as I dealt with the previous failing hard drive and with trying to get dual-boot working again. Not to mention, this iMac is now my secondary machine to the new Mac Mini I got a couple weeks back when I wasn't sure how much more life I was going to get from this 6+ year old iMac.
    Thanks for listening to me ramble about this very odd issue, and a huge THANK YOU in advance to anyone who has ideas to help.
    Thanks,
    sutekh138

    Update:
    I am pretty sure the issue is a simple GPT/MBR discrepancy.
    I installed rEFIt and used it's partitioning tool (gptsync built in) upon bootup. It was able to show the GPT table and the MBR table, but it thinks the second partition of the drive (the Mac OSX bootable partition) is "extended" in the MBR table and says "will not touch this disk."
    However, it does look like an MBR sync should be straightforward, as there four partitions in the GPT table and four in the MBR (and MBR allows a max of four, AFAIK). I just need gptsync to relax some rules. I found a link to a supposedly newer version of gptsync compiled for OSX, so I will try that later.
    First, I will try Partition Wizard, a free tool I found for the Windows side. It has a "Repair MBR" option that I would have tried last night if I weren't running a new Windows Image Backup in case all of this goes haywire.  *smile*  The PW tool also has an option to change the MBR over to GPT entirely. That might work, but then I am not sure Windows 7 will boot (from what I read, x64 Win7 running on EFI-enabled hardware should work, but who knows).
    Anyway, I will try the following things, in order, until something works, when I get home tonight:
    From Windows, run Partition Wizard and try "Repair MBR".
    From OSX, download recent gptsync and try to run it.
    From Windows, use Partition Wizard to do a full MBR --> GPT conversion.
    Nuke the Windows partition in OSX Disk Utility, expand the HFS partition to take up the whole drive, and then add a Windows-bootable partition via Boot Camp-ish command line commands (diskutil). Because if nothing else works, I have to assume I just created the partitions wrong in the first place such that a Windows restore miraculously works, but the partition weirdness is just a timebomb waiting to happen.
    Finally, if none of the above work, I'll just get things back to the way they now work and wait for the timebomb to (possibly never) go off.  *smile*
    I'll update this thread if I get something figured out, in case anyone else stumbles upon it...
    Thanks,
    sutekh138

  • Pop up window resize disabled not working in fire fox (Linux)

    Hi all I am using Dreamweaver 8, with behavior I made a pop
    up window and disabled window resizing. It worked nicely in my
    windows XP system (I checked it in IE and Fire fox). But it is not
    working in Linux machine having same version of Fire fox
    browser(but worked correctly in IE on the same machine). In Linux
    machine we can simply resize the window.
    Does anybody give a solution to fix this problem?

    Post a link to the page, please.
    Why disable window resizing? What about those whose screen
    won't display
    the size you have picked?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "thozhayan" <[email protected]> wrote in
    message
    news:egpsde$s3r$[email protected]..
    > Hi all I am using Dreamweaver 8, with behavior I made a
    pop up window and
    > disabled window resizing. It worked nicely in my windows
    XP system (I
    > checked
    > it in IE and Fire fox). But it is not working in Linux
    machine having same
    > version of Fire fox browser(but worked correctly in IE
    on the same
    > machine). In
    > Linux machine we can simply resize the window.
    >
    > Does anybody give a solution to fix this problem?
    >
    >

  • Node Container that does not resize with Window Resize Event

    Hello,
    I'm not new to Java but I am new to JavaFX.
    I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
    So I was playing around with that but I have two issues.
    1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
    2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
    Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
    Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
    public class Test extends Application
         Scene mainScene;
         Group root;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      root.getChildren().add(rect);
                      x = x + 100;
        public void start(Stage primaryStage)
             final Pane pane = new Pane();
             pane.setStyle("-fx-background-color: #CCFF99");
             pane.setOnScroll(new EventHandler<ScrollEvent>()
                   @Override
                   public void handle(ScrollEvent se)
                        if(se.getDeltaY() > 0)
                             pane.setScaleX(pane.getScaleX() + 0.01);
                             pane.setScaleY(pane.getScaleY() + 0.01);
                        else
                             pane.setScaleX(pane.getScaleX() - 0.01);
                             pane.setScaleY(pane.getScaleY() - 0.01);
             pane.getChildren().addAll(root);
             pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
                   @Override
                   public void handle(MouseEvent event)
                        System.out.println(event.getButton());
                        if(event.getButton().equals(MouseButton.PRIMARY))
                             System.out.println("primary button");
                             final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
                                  .node(pane)
                                  .duration(Duration.seconds(10))
                                  .fromAngle(0)
                                  .toAngle(360)
                                  .cycleCount(Timeline.INDEFINITE)
                                  .autoReverse(false)
                                  .build();
                             rotateTransition2.play();
             mainScene = new Scene(pane, 400, 400);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }Edited by: 953596 on 19.08.2012 12:03

    To answer my own Question, it depends how you add childs.
    It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
    pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
    pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
    root.getChildren().add(pane);and it will stay the size even if the window is resized.
    Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
    import javafx.animation.Animation;
    import javafx.animation.ParallelTransition;
    import javafx.animation.ParallelTransitionBuilder;
    import javafx.animation.RotateTransition;
    import javafx.animation.RotateTransitionBuilder;
    import javafx.animation.ScaleTransitionBuilder;
    import javafx.animation.Timeline;
    import javafx.animation.TranslateTransitionBuilder;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseButton;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.ScrollEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class Test extends Application
         Stage primStage;
        Scene mainScene;
         Group root;
         Pane masterPane;
         Point2D dragAnchor;
         double initX;
        double initY;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            final Pane pane = new Pane();
            pane.setStyle("-fx-background-color: #CCFF99");
            pane.setOnScroll(new EventHandler<ScrollEvent>()
                @Override
                public void handle(ScrollEvent se)
                    if(se.getDeltaY() > 0)
                        pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
                    else
                        pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
            pane.setOnMousePressed(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me)
                    initX = pane.getTranslateX();
                    initY = pane.getTranslateY();
                    dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
            pane.setOnMouseDragged(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me) {
                    double dragX = me.getSceneX() - dragAnchor.getX();
                    double dragY = me.getSceneY() - dragAnchor.getY();
                    //calculate new position of the pane
                    double newXPosition = initX + dragX;
                    double newYPosition = initY + dragY;
                    //if new position do not exceeds borders of the rectangle, translate to this position
                    pane.setTranslateX(newXPosition);
                    pane.setTranslateY(newYPosition);
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      pane.getChildren().add(rect);
                      x = x + 100;
            pane.autosize();
            pane.setPrefSize(pane.getWidth(), pane.getHeight());
            pane.setMaxSize(pane.getWidth(), pane.getHeight());
            root.getChildren().add(pane);
            masterPane = new Pane();
            masterPane.getChildren().add(root);
            masterPane.setStyle("-fx-background-color: #AABBCC");
            masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
               public void handle(MouseEvent me)
                   System.out.println(me.getButton());
                   if((MouseButton.MIDDLE).equals(me.getButton()))
                       double screenWidth  = masterPane.getWidth();
                       double screenHeight = masterPane.getHeight();
                       System.out.println("screenWidth  " + screenWidth);
                       System.out.println("screenHeight " + screenHeight);
                       System.out.println(screenHeight);
                       double scaleXIs     = pane.getScaleX();
                       double scaleYIs     = pane.getScaleY();
                       double paneWidth    = pane.getWidth()  * scaleXIs;
                       double paneHeight   = pane.getHeight() * scaleYIs;
                       double screenCalc    = screenWidth > screenHeight ? screenHeight : screenWidth;
                       double scaleOperator = screenCalc  / paneWidth;
                       double moveToX       = (screenWidth/2)  - (paneWidth/2);
                       double moveToY       = (screenHeight/2) - (paneHeight/2);
                       System.out.println("movetoX :" + moveToX);
                       System.out.println("movetoY :" + moveToY);
                       //double scaleYTo = screenHeight / paneHeight;
                       ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
                               .node(pane)
                               .children(
                                   TranslateTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(moveToX)
                                       .toY(moveToY)
                                       .build()
                                   ScaleTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(scaleOperator)
                                       .toY(scaleOperator)
                                       .build()
                      .build();
                       parallelTransition.play();
        public void start(Stage primaryStage)
             primStage = primaryStage;
            mainScene = new Scene(masterPane, 430, 430);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }

  • Cd-rom for Mac and Windows

    Hi there,
    I want to make an hybrid cd-rom for both, Mac and Windows, and I am using the fscommand code in the first frame of my actions:
    fscommand("fullscreen","false"); // returns the player to normal menu view.
    fscommand("allowscale","false"); //sets the player so that the SWF file is always drawn at its original size and never scaled.
    I want both commands with their properties, however the displayState property is new to me. Please, Could you help me to do the same with this?.
    Of course all in AS3.
    I also have a code for a button that closes the .app of the .exe:
    function cerrar(e:MouseEvent):void {
    fscommand("quit");
    cerrar_btn.addEventListener(MouseEvent.CLICK, cerrar);
    Thanks in advance.

    The stage displayState and scale properties are like so:
    // fullscreen
    stage.displayState = StageDisplayState.FULL_SCREEN;
    // fullscreen with keyboard active
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    // non-fullscreen
    stage.displayState = StageDisplayState.NORMAL;
    Note that changing the displayState is usually done after the first frame is rendered so adding in a listener for that before changing it is a good idea. The scale and align don't require this.
    e.g.
    addEventListener(Event.ENTER_FRAME, _onEF);
    function _onEF(e:Event):void
         // frame has rendered, remove listener
         removeEventListener(Event.ENTER_FRAME, _onEF);
         // change display state
         stage.displayStage = StageDisplayState.FULL_SCREEN;
    Speaking of align, if you use NO_SCALE and expect to resize, you'll probably want to anchor the resizing from the upper left, like so:
    // top left registration
    stage.align = StageAlign.TOP_LEFT;
    Otherwise upon resize the upper left pixel will actually go into negative numbers.
    Scaling is:
    // no scale
    stage.scaleMode = StageScaleMode.NO_SCALE;
    // scale to fit exactly (aspect not maintained)
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    // scale but maintain aspect:
    stage.scaleMode = StageScaleMode.NO_BORDER;
    Exiting a projector, still the same..
    import flash.system.fscommand;
    cerrar_btn.addEventListener(MouseEvent.CLICK, cerrar);
    function cerrar(e:MouseEvent):void
         fscommand("quit");

  • Gmail scroll down arrow is covered by Firefox 4 window resize icon

    I updated Firefox to version 4 and now the scroll down arrow for the main mailbox of Gmail is covered up by the window resizing triangle icon for Firefox at the bottom right on the window.
    The scroll down arrow is effectively made unavailable.
    This appears to be the only site that causes this problem.

    You can add the bottom back back to your screen, which will move the resize corner below the scroll arrows. Just go to the '''View menu''' > '''Toolbars''' and enable the '''Add-on bar'''.

Maybe you are looking for