Panel resize event bug?

I'm having a bit of hassle with a panel resize event.
For reasons best known to me, I have some parallel loops monitoring certain UI behaviour and reacting appropriately.
I have noticved that when a loop which is monitoring the "Panel Resize" event stops, (No dynamic registration) the next panel resize will freeze the VI.  It's as if the Event case is not releasing the handle to the "Panel resize" event.
If I handle the "Panel Resize" event via a dynamic registration and subsequent release, everything works fine.
This is in LV 8.2.1.
Shane.
Say hello to my little friend.
RFC 2323 FHE-Compliant
Attachments:
Freezes.vi ‏22 KB
Doesnt freeze.vi ‏24 KB

tst wrote:
I think this has to do with LabVIEW locking the FP (as configured) even when the event structure should not execute any more. I actually created a simple example of it recently, but saved it in one my projects instead of where I would see it, so I forgot about it. I now dug it up and back saved it to 8.0. You can also simplify this example by removing the value change event and making the key down event lock the UI.
Message Edited by tst on 11-10-2008 02:14 PM
Sorry Yair,
but this is not a bug!, it is explainable behaviour and expected behaviour.
What happens, the front panel is locked on the second edit. (use exectuion high-lighting) The event structure is always listening for events where it is registered for, even if the event case will never execute, on the first edit (key down) the event is triggered and the VI is locked and unlocked. The second edit the event is triggered again and the FP is locked. Because the event structure can't execute the FP stays locked.
Shane's behaviour is truly a bug.
The same behaviour is seen with the 'Pane:size' event. (in 8.6)
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • Is there a way to achieve 'Panel Resize Event Filter' like function?

    Gopalakrishnan P
    Hi all,
    Panel resize filter is not available in Event structure. So if I use the below code, on pressing the maximize button, windows will maximize the front panel and later LabVIEW brings it back to the mentioned size. There will be a flicker during this operation. To avoid this flicker, is it possible to disable windows OS to perform maximize event or to set the default window maximum size in windows or any other way to implement this?
    The maximize button should not be disabled, but  have to maximize the panel to a specific size without that flicker. What I'm actually trying to do is to use windows messaging queue to capture the maximize event and then implement the same through LabVIEW. Related example is in this link http://zone.ni.com/devzone/cda/epd/p/id/4394 
    Has anyone tried solving a similar problem by this method?
    Also please suggest if there is any other way to achieve this.
    Gopal
    Thanks,

    Hi Krishgopal,
    Please try the following method
    File»VI Properties and choose Window Appearance from
    the Category pull-down menu.
    Click the Customize button and Deselect  the option : Allow user the resize window
    Attached is a screenshot of the same.
    Please let me know if this is able to help you out.
    Regards,
    Ankur
    Attachments:
    No_Resize_Front_Panel.pdf ‏274 KB
    Sample_NoResize.vi ‏6 KB

  • Panel size event acts first in dialog VI?

    Appearently, the event 'panel size' occurs first when a dialog subvi is called. This will cause issues if a one time timout is used. Can someone please confirm that this is true?
    I have attached a caller and subvi to demonstrate. When the dialog is called, the index should show 1, indicating that only one event was executed, but in this case it shows 2.
    Attachments:
    caller.vi ‏8 KB
    subvi_dialog.vi ‏9 KB

    Hi Drazen,
    Actually, the Pane Size (panel resize) event will occur twice as your sub-vi front panel is opened: first when the resizing begins, and again when the resizing is over (when LabVIEW sees that Old Boundaries and New Boundaries are equal). So, the 2 you see immediately in the indicator on the sub-vi is for both panel resize events. A timeout event when the timeout is set to zero initially never occurs because the VI registers the panel resize event first.
    I hope that clarification will help you develop your application!
    Product Support Engineer
    National Instruments

  • Limit Panel Resize to One Dimension?

    Is there an easy way to limit panel resizing to a single dimension? That is, can I make a front panel that allows resizing the HEIGHT but not the WIDTH?
    What would be nice is if there was a way to set the "VI Properties>>Window Size" MAXIMUM size along with minimum (default to <Inf>). But I would settle for a programmatic way to do it, too. I tried making a UE to catch the <Panel: Resize> event, and replace the "Left" and "Right" bounds of the NewBounds with those of the OldBounds, but that ended up doing some wonky stuff.
    Anyone out there found a solution for this problem?
    [I should add, I'm still running LV 8.6.1...maybe this has been addressed in later versions?]

    I'm pretty sure that there isn't, as I don't think Windows supports it and resizing windows is presumably handled by it.
    If there's a window message associated with the resize, you might be able to intercept it using some platform-specific code, but that's beyond the realm of my own experience.
    One thing you can try to do is disable the resizing completely and then add your own resizing logic and code (such as buttons near the edge which will expand or compact the UI by X pixels). I think this is what you usually see in programs which allow expanding in only one direction (although usually the buttons expose an entire pane at once).
    Try to take over the world!

  • Panel Resize - how to tell when mouse released?

    I need to programmatically resize all my controls when the panel is resized.  I can't use the automatic option, as I have some specific things to do, e.g. some controls stay at fixed size, others resize.
    I've used an event structure and am doing the resizing on the "Panel Resize" event.  The problem is that this takes a little time, mainly as one of the controls is an Adobe Reader ActiveX control, which takes a little time to rescale and redraw.
    The result is that the VI seems to queue up the events as the panel is resized - if you grab the corner of the window and move it around, the VI then sits and ploughs through all the events that were created as it was resized.
    What I'm really after is an event that fires after the panel has been resized and the mouse has been released.  Is there a way of achieving this?
    Thanks

    There's no event for this, but you can filter your events, for example, like this:
    There are other variations on this (setting a flag, using a case structure in the original event case, etc.).
    Try to take over the world!
    Attachments:
    Example_BD.png ‏2 KB

  • Front panel resize delay

    Hello,
    I am developing GUI that needs to look nice and user will have option to resize it. Since scale as the window property works bad I wanted to use panel resize event.
    But there is delay - controll is resized some time after I resize front panel and that looks bad. When I look on project window or error list it resizes instantly. 
    Why I can't achieve that result in Labview??
    I could always read panel size lets say every 10ms and calculate ontrolls size based on that,  but is there better option using this panel resize event??
    Solved!
    Go to Solution.

    Right click on the pane (right click in the bottom right hand corner) and select the 'Scale objects while resizing' option.
    That should fix it for you
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Handling resize event ...

    I have a class that extends Panel. I add some buttons
    (Min/Restore/Max/Close ... top right corner,etc) to the chrome
    using rawChildren.addChild. I'd like to restrict the window to
    never be allowed to get to a height less than the height of the
    buttons or a width less than the combined width of the buttons
    (this is a generalization, I've included logic to account for
    borders, etc). Nevertheless, I've tried countless approaches ...
    then I tried listening for a resize event ...
    //in constructor
    this.addEventListener("resize", myResizeHandler);
    //handler
    private function myResizeHandler(event:ResizeEvent):void{
    width = Math.max(someMinimumCalculatedWidth(), width);
    height = Math.max(someMinimumCalculatedHeight(), height);
    As shown ... within the event handler, I set width/height
    properties of the panel. In the case where they are different than
    current width/height, it expected it would trigger yet another
    resize event .... and I expected to get into some kind of nutty
    event loop (as you can see ... I'm in that ** I'll try anything
    ...** mode). Surprisingly ... it worked properly. There doesn't
    seem to be a resize event triggered when I set the width/height to
    values different than they were before entering the handler? I've
    perused the Panel/UIComponent source and everything I see leads me
    to believe another resize event would be triggered.
    So ... as strange as it sounds, I'd like to understand why
    this works :-) I can't bring myself to just move on without knowing
    why another resize event isn't dispatched and why I don't end right
    back up in myResizeHandler ...

    "AJC5327" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a class that extends Panel. I add some buttons
    >(Min/Restore/Max/Close
    > ... top right corner,etc) to the chrome using
    rawChildren.addChild. I'd
    > like to
    > restrict the window to never be allowed to get to a
    height less than the
    > height
    > of the buttons or a width less than the combined width
    of the buttons
    > (this is
    > a generalization, I've included logic to account for
    borders, etc).
    > Nevertheless, I've tried countless approaches ... then I
    tried listening
    > for a
    > resize event ...
    >
    > //in constructor
    > this.addEventListener("resize", myResizeHandler);
    >
    > //handler
    > private function
    myResizeHandler(event:ResizeEvent):void{
    > width = Math.max(someMinimumCalculatedWidth(), width);
    > height = Math.max(someMinimumCalculatedHeight(),
    height);
    > }
    >
    > As shown ... within the event handler, I set
    width/height properties of
    > the
    > panel. In the case where they are different than current
    width/height, it
    > expected it would trigger yet another resize event ....
    and I expected to
    > get
    > into some kind of nutty event loop (as you can see ...
    I'm in that ** I'll
    > try
    > anything ...** mode). Surprisingly ... it worked
    properly. There doesn't
    > seem
    > to be a resize event triggered when I set the
    width/height to values
    > different
    > than they were before entering the handler? I've perused
    the
    > Panel/UIComponent
    > source and everything I see leads me to believe another
    resize event would
    > be
    > triggered.
    >
    > So ... as strange as it sounds, I'd like to understand
    why this works :-)
    > I
    > can't bring myself to just move on without knowing why
    another resize
    > event
    > isn't dispatched and why I don't end right back up in
    myResizeHandler ...
    A lot of times I find I have to go several classes up the
    inheritence chain
    to find where something lives. A shortcut to this is to find
    the public
    class extends statement and click whatever it extends. Press
    F3.
    HTH;
    Amy

  • Resize event in applet?

    I have a panel in my applet and I want it to always on the center of the applet. I have coded like this in the method init() :
    myPanel.setBounds((int)(getSize().getWidth()-300)/2,(int)(getSize().getHeight()-300)/2,300,300);
    and I set my applet to have null layout. I guess that I must put the above code to the resize event, but I find nothing about this event. Any suggestion would be pleased.
    thanks in advance.

    I have a panel in my applet and I want it to always on
    the center of the applet. I have coded like this in
    the method init() :
    myPanel.setBounds((int)(getSize().getWidth()-300)/2,(in
    )(getSize().getHeight()-300)/2,300,300);
    and I set my applet to have null layout. I guess that
    I must put the above code to the resize event, but I
    find nothing about this event. Any suggestion would be
    pleased.Well, if WindowEvent.STATE_CHANGED doesn't help... stupid question back: is it possible to resize an Applet? It's been a while since I wrote applets, I can't remember much, but I thought it has a fixed size attribute that's stated within the <applet> or <object> tags?

  • 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();
    }

  • Issue with TextArea resize event

    Hi,
    In the following
    sample there
    is a button and a textarea in a VDivideBox. If you move the
    divider, the Textarea is resized and in its resize event I change
    the fonts size. It works very well except in one case: If the
    Textarea is given the focus and then you try to resize it by moving
    the divider, then all the text goes blank ! I've debugged it and
    everything looks fine, so I can't figure out what's going on...
    I'm using Flex 3. To see the code, right click and View
    Source.
    Thanks for helping.

    Hello,
    You say:
    "The event trace shows that INPUTFINISHED got triggered. The technical workflow log also shows a record of the terminating event - but still the task does not get finished - the task still remains INPROCESS and does not get COMPLETED."
    I would concentrate on fixing this. If an event is being created wth the proper key (check that) then the workflow should pick it up. You say you can even see it in the workflow log? Are you using a wait step, or have you set the event as a terminating event for the whole workflow? Try generating the event manually (with SWUE) to figure out what the problem is. This should work. Check the workflow log for errors.
    regards
    Rick Bakker
    Hanabi Technology

  • How to handle component's resize event

    Hi All,
    Can someone tell whether you can in any way to capture component's resize event, e.g. panelGroupLayout?
    Thanks!

    Hi,
    its an event raised on the render kit, the component will not pass this on to the server.
    I did not try JavaScript but there is a registerResizeNotifyComponent(Object component) on the AdfPAGE object that you may be able to register a custom proxy object to. Then when the proxy receives the resize event you would call a custom event to the srever (serverListener)
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12046/oracle/adf/view/js/base/AdfPage.html
    Frank
    Ps.: As said - haven't tried this

  • Problem with panel resize option

    Hi all,
    I am working on an application which i want to run on all the different resolutions. So, i searched the whole LV forum to get the solution for my problem.
    after going through many related discussions i found that one should develop the app in the min resolution which it should support and in the VI properties the option for panel resizing should be tick marked.
    i did exactly the same, but still couldn't get it worked for my application.
    i am developing my app on 1024*768 resolution. it runs fine on the same resolution if i don't tick mark the resizing option. but, when i tick mark the option and run the app on the same resolution, it crops some part from the bottom.
    I am attaching the picture of the interface when run with resizing option and without it.
    Pls look into the prob and let me know how can i make it work?
    Thanks,
    Ritesh 
    Attachments:
    Interface_With proportions.JPG ‏95 KB
    Interface_Without proportions.JPG ‏103 KB

    For a GUI of this nature, there is no easy answer to this problem.  Search the forums for "large font" to get many examples of how people have solved this issue.  I usually bite the bullet and handle all resizing myself.  An example of this can be found here.
    Since you want to cover the entire workspace, you need to know what this is.  There are two VI server methods which will give you pieces of this information.  Display:All Monitors will give you the valid coordinates for all monitors attached to the computer.  Display: Primary Workspace will give you the useable workspace of the primary monitor.  This does not include the space used by the Windows taskbar (and, I assume, the GNOME, OS X, or KDE equivalents, but have not verified this), so is different from the area given by the first property.  You can fairly easily determine which display is the primary workspace by checking bounds, but do not assume that the taskbar is on bottom of the display when you do this.
    If you have problems finding information or something is not clear, let us know.
    Message Edited by DFGray on 03-03-2010 08:10 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • LabVIEW 8.2 Multicolumn Listbox Edit Cell Event Bug

    I've observed an odd behavior with the "Edit Cell?" event with multicolumn listboxes. If the "Edit Position" is set when clicking on the listbox and the "Edit Cell?" event is trapped with discard set to false, when clicking outside of the list box, previous edits are lost.   I have attached a simple example of this bug.
    Attachments:
    Listbox Edit Cell Event Bug.vi ‏19 KB

    Thank you for the update Fran.
    I lost my bet and you earned your stars.
    So it sounds like the issue was the multiple event structures alone.
    I just like to keep track of what the final fixes are.
    Ben
    Message Edited by Ben on 12-06-2006 04:50 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Resizing events, and blocking application

    Hi,
    While developing my application, that displays the state of processes, I observed something I can not duplicate that good. While debugging the app, I observed that when I manually resize the window size, my application could block (as in not response any more and stop running altogether). As said, I can not duplicate the problem. At the moment I can resize the window while it is updated, and the app keeps on running and stays responsive. But to solve this (potential) problem, should I add an event listener like WindowStateListener? Does this method catch window resizing events? And could I then add to my code something like
        public void windowStateChanged(WindowEvent e) {
            repaint();
        }Or, stated otherwise, to what event should I listen so a window resize event can be caught, and used to repaint the window?
    Abel

    I think that before resizing a windowActivated() event is generated... you could use this to set up your task before the window is resized. Of course, an activation doesn't mean resizing but perhaps it could help.
    Regards.

  • Resize event triggerd on TransistionManager.start ?!

    Hello there i got something in AS3 thats a bid odd or maybe im doing something wrong.
    I made a small example te clear some things up (see bottom part):
    This example relies on 1 MC on the stage called testMc now when you run this code it works fine.
    Evry time you click the movieclip in does what its suppose to do.
    The output shows
    trans
    trans
    trans
    trans
    etc
    The problem lies when you resize the screen and then press the button again for a few times you will see this in the output
    trans
    resize
    resize
    resize
    resize
    resize
    resize
    trans
    resize
    trans
    resize
    trans
    resize
    trans
    resize
    Somehow after the resize is done it keeps calling out for the resize event.
    How is this possible ?! and what can i do to fix this problem Ow i made it in CS5 if thats any help
    Thanks in advance
    import flash.events.MouseEvent;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    stage.addEventListener(Event.RESIZE, stageResize, false, 0, true);
    function stageResize(evt:Event):void
        trace('resize');
    testMc.addEventListener(MouseEvent.MOUSE_DOWN, testTrans, false, 0 , true);
    testMc.buttonMode = true;
    function testTrans(evt:MouseEvent):void
        trace('trans');
        TransitionManager.start(testMc, {type:Fly, direction:Transition.IN, duration:2, easing:Elastic.easeOut, startPoint:4});

    I don't think very many people use the TransitionManager class or really care about it at all. It is very limited in what it does and isn't very explicable or flexible. That is probably why nobody has responded.
    But evidently there is something in the Class that causes a resize event to be fired if the stage has been changed from its original size. BTW, are you testing this just in the IDE test environment? Most likely since it includes trace statements. Have you verified that it still does this on an html page (or whatever your eventually delivery format will be)? I tested it under AS3 in the testing environment and saw what you are seeing. But I haven't tried the other formats.
    If you are on a PC you could go into the Class files and add some trace statments in the classes and see where that event might be getting dispatched. The files are at:
    C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\projects\Flash\src\fl\transitions
    Be sure to make a back up before you go messing with them.
    But the best thing to do would be to not use the TransitionManager class!

Maybe you are looking for

  • How do I use multiple classes to access the same object?

    This should be staightforward. I have and object and I have multiple GUIs which operate on the same object. Do all the classes creating the GUIs need to be inner classes of the data class? I hope this question makes sense. Thanks, Mike

  • How to validate the values inputted in Salestext view at MM02 before saving

    Hello All, Does anyone know what FM or user exit to use in order to validate the values inputted in Salestext view at MM02 transaction before saving it. Regards, Alfred

  • Can't open PDFs in Safari

    When I try to open a PDF in Safari, my computer can't find the application. I used to be able to do it automatically. I even reinstalled Adobe PDF app.. What should I do? Allan PS I know Safari isn't popular anymore, but I still really like to use it

  • Bloody K7N2 D-ILSR

    Hi Guys. Been a while since my last visit here. I hope someone in here has a clue what might be wrong.  After an ordinary shutdown my system wont get online. I have a striped system with 2 SATA Seagate disks. I use the onboard serial-controller, and

  • Won't recognise AUX cable in car

    I used to use my Galaxy S3 in the car fairly frequently using a 3.5mm cable and playing it via the AUX channel on the radio.  I never had any problems with this. I've tried this using my Z1 Compact and it doesn't recognise the cable, let alone play a