Panel redraws when changing ATTR_SIZABLE state

I have found a bug (or at least undocumented behavior).  I have a panel that I programmatically change the resizing attribute (ATTR_SIZABLE) at various times (user login).  
When my software does this
SetPanelAttribute(panel,ATTR_SIZABLE,state);
 ... the panel redraws.  By "redraws", I mean it appears as if there was some hidden HidePanel / DisplayPanel happening in rapid succession.  It's a very annoying and disorienting effect for my user.  
If I comment out that one line, the redrawing doesn't happen as I would expect and intend.
At the moment, I have no work-around.

Hah ! I was tracking down that 'panel blink' problem last week and thought it was something like that. Since it was a minor problem I didn't exactly find what the problem was, but that's it, I confirm.

Similar Messages

  • Code for capture digital data when change of state

    Dear Sir,
    I had written a program to capture the digital data when it change of state.
    It work well when I check the check box "Lock file for faster access".
    But error occur when it unchecked.
    Because I need to open the tdm file at the vi running, thus I need to uncheck it.
    Please kindly to advise any solution for it.
    The program is attached.
    Thank You.
    Attachments:
    datalogcos.vi ‏53 KB

    Hi Jayme,
    Sorry for late reply.
    The screen capture of error message is attached.
    Thanks for your helping.
    Poly-Alex
    Attachments:
    error.jpg ‏24 KB

  • Toggle button to "Down" when changing application state?

    I am trying to make a button component modal so that when I click it, the application changes to a different state and the button stays in the button "down" state. Then if I click a different button, the application state changes again, the first button changes to the "up" state and the second button changes to the "down" state. Basically, I want radio button actions, but on a styled button.
    Is there a way to do this in Catalyst or do I have to handle this in the FB code?

    I had some difficulty getting Catalyst to allow me to set the states of toggle buttons added to my project. So, I decided to create my own custom toggle button to give me the ability to fully style it. Here's the process I followed:
    converted my styled "normal" buttons back to artwork
    Converted the artwork to a custom component
    Created states for custom component for Unselected, Selected, Over, etc.
    Associated the artwork from Illustrator to the appropriate states for the custom component
    set the custom component state (e.g., unselected, selected...) for the each of the appropriate application states
    set the component action to "transition to state" when the custom component is "clicked"
    Renamed the custom component in the library to "CustomToggleButton"
    Exported the CustomToggleButton library component and then imported it so it was reusable in my library

  • How to run functions when changing states?

    Hi everybody
    I want to run function when changin states
    For example I change my state and write something on Panels title and when this state appears i want to read my title and to do smth
    How can I do it. Where is my mistake?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle"
        width="340" height="250"
        layout="absolute"
    currentStateChange="StateChangez();">
    <mx:Script>
    <![CDATA[
    public function StateChangez():void
    if (currentState=='a')
    //Alert.show('a');
    if (Panel1.title=='New')
    Alert.show('New');
    else
    Alert.show('Edit');
    else
    Alert.show('b');
    ]]>
    </mx:Script>
    <mx:states>
      <mx:State name="a">
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button2}"/>
       <mx:AddChild position="lastChild">
        <mx:Panel x="0" y="40" width="340" height="210" layout="absolute" id="Panel1">
        </mx:Panel>
       </mx:AddChild>
       <mx:RemoveChild target="{button3}"/>
      </mx:State>
      <mx:State name="b">
       <mx:RemoveChild target="{button2}"/>
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button3}"/>
       <mx:AddChild position="lastChild">
        <mx:Label x="10" y="222" text="b"/>
       </mx:AddChild>
      </mx:State>
    </mx:states>
    <mx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </mx:Script>
    <mx:Button label="New" x="10" y="10" id="button1" click="currentState='a';Panel1.title='New';"/>
    <mx:Button x="68" y="10" label="Edit" id="button2" click="currentState='a';Panel1.title='Edit';"/>
    <mx:Button x="10" y="218" label="b" click="currentState='b';" id="button3"/>
    <mx:Button x="265" y="10" label="Read" click="StateChangez()"/>
    </mx:Application> 
    Message was edited by: AtomicRussian

    Hi,
    I think your event handler "StageChangez()" is called before your Panel title is set. Try first change title, then change currentState.
    Oh yes my mistake, you are adding it when state changes. You can put your Panel's title change in StageChangez() and after that you can do some actions.
    Regards,
    Adrian
    Message was edited by: AdrianWiecek

  • Set up Signal Express to log when there is a change in state of the inputs (NI USB-6501 logger)

    Hello NI Forum, I have recently purchased digital I/O logger NI USB-6501.  This arrived with Signal Express, which I intend to use as a Lite version.  I just wondered if it was possible to set up Signal Express to only add a log entry when there is a change in state of the inputs?  I have this working on a 0.1sec sample period and can interrogate the logs after recording.  Most of the time nothing will be happenning, I just wondered if there was a way to reduce the ammount of data captured?  Cheers.

    Ah that unfortunate, and yes start/stop conditions for loging are part of the Full version of SignalExpress
    Here's the comparision: http://www.ni.com/labview/signalexpress/purchasing-options.htm
    Sorry about that

  • Change Boolean state when switching between cases

    I have a case structure with a true and false case.  In the false case
    I have two boolean I can turn on and off by clicking on them.  When
    changing to the true case I disabled the two booleans using a property
    node.  However when switching to the true case the booleans are
    disabled and remain in their last state, i.e. if they were true (on) in
    the false case, they remain true (on) in the grayed out disabled false
    case.   How do I change the state of the boolean in addition to
    disableing it.  i.e. if in the false case the boolean is in the true
    state (on) and I switch to another case the booleans are disabled using
    the property node and return to the false (off) state?  I have attached
    a example vi.
    Thank you for your help.
    Danny
    Attachments:
    Property node and select function.vi ‏14 KB

    Jorge already gave you some useful advice, but I would really recommend that you rethink your approach.
    Here are some points:
    I am not sure why you place the booleans inside the case structure.
    You song and dance is just an "invert" (see picture). Even better leave it all out and swap the contents of the two cases!
    There is no reason to constantly spin the loop writing the same properties over and over. It is sufficient to recalculate when one of the controls change. Use an event structure!
    You can eliminate the second switch by placing the diagram constants in the two cases.
    Attached is a quick draft using events to duplicate your existing functionality. See if it gives you some ideas.
    Message Edited by altenbach on 02-03-2008 02:23 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    invert.png ‏3 KB
    Property_node_and_select_functionMOD.vi ‏18 KB

  • When changing headphones to 5.1 rear not working(volume panel), need to default in diagnostic t

    Hi,
    When I'm changing headphones to 5. in volume panel my rear speakers and middle one won't work...
    I need to run diagnostic tool where I need to chose the default option in order to get my rear and middle
    speakers to work.. I need to do this every time...
    It get's annoying as I play BF242 and then try to listen to some music ot watch an movie in 5. ...
    it takes an minute or so to do this but I would preffer not to have to....
    I'm an xfi noob so there may be an setting that is causing this... does anyone knows how to change this?
    edit: btw. the headphones(headset actually) are connected to the panel...
    x-fi platinum champion fatalty, xp
    the speakers are connected to teh x-fi card (analog)
    edit2: It seems that when changing headphones to 5. the front center, rear left and rear right are being played in headphones...
    :S?
    Message Edited by foxhound009 on 06-07-2008 2:29 PMMessage Edited by foxhound009 on 06-07-2008 2:38 PM

    Quote from: Chrysomya on 29-April-13, 20:14:26
    Just downloaded a new driver for the realtek HD, will this resolve my problem? Current driver version is 6.0.1.6657.
    Your issue is drivers related.
    For Windows 8 use 6.0.1.6839
    http://www.msi.com/product/mb/Z77A-G43.html#/?div=Driver&os=Win8%2064

  • Locale Input changes on Mac OS X Lion when changing the view state

    On Mac OS X Lion, the following code results of changing the locale input when changing the view state. If you set the input locale to Pynin, then run the application, then click on "go to the test 2", the input locale changes back to english. This is obviously not the correct behavior (the input locale should stay the same as defined on the computer).
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">   
        <fx:Script>
            <![CDATA[
                protected function gototest2(event:MouseEvent):void
                    this.currentState = "test2";
                protected function gototest(event:MouseEvent):void
                    this.currentState = "test";
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="test" />
            <s:State name="test2" />
        </s:states>
        <s:Button label="go to test" includeIn="test2" click="gototest(event)" />
        <s:Button label="go to test2" includeIn="test" click="gototest2(event)" />
        <s:TextInput includeIn="test2" />
    </s:WindowedApplication>

    Could you please open a new bug report on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can add their comments and votes.

  • [Bug?] Defer Panel Update not working when changing scale property

    Hi,
    I found that Defer Panel Update [when True] does not work properly when changing the scale fit property of an intensity graph.
    Try the VI.
    When Defer Panel Update is True, and you change the Numeric controls, the Intensity graph is not updated (as expected).
    But now change the "Z Scale.Scale Fit" button and.... the Intensity graph is updated (only the Z-color, not the axis).
    This looks to be a bug to me!
    Nicolas
    Attachments:
    [Bug] Defer Panel Update not working when changing scale property.vi ‏27 KB

    Hi Nicolas,
    This indeed looks like a bug. I will do more research on it and file a bug report if it's not already filed.  Thank you for posting this information!
    Yi Y.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How to keep the waveform chart updated when changing states in state machine/

    Hello Everyone,
                           Can anyone please sugest me how to keep the waveform chart updated even if I am changing the states in a state machine??
    I am having analog inputs on the waveform chart...
    Thanks in advance...
    Now on LabVIEW 10.0 on Win7

    hello guys,
                    thanks a lot for the suggestions, here is the attached code... please follow the following steps to run it..
    ONce you hit play,press either Start Main/Cyl UP button on the front panel,
    once you start observing the waveforms, you can press the Cyl_Dwn button on the front panel... You can observe that the state changes to Start Counter state,
    and the waveform chart also stops updating... I would like both the waveform charts to conitnuously show the data even if the state is changed....
    Now on LabVIEW 10.0 on Win7
    Attachments:
    Soda Vending MAchine.vi ‏212 KB

  • Change the state of button when another button is pressed

    Hi all, 
    I have a pretty straightforward question but just cant figure out how I can achieve it...I am trying to switch between two types of waveforms (sine and square) on a graph using buttons and a case structure.
    I currently have two buttons A and B. When I press A, it turns true and displays waveform 1. When I press B, B turns true and displays waveform 2. However when B is true, I have A still enabled as true (pressed)
    I cant figure out how to change the state of A back to false when B is pressed and vice versa.
    I am fairly new at Labview so if someone can refer to a post where its this is already answered or point to the right direction, that would be appreciated
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Waveform.vi ‏94 KB

    Instead of cluttering the code with event cases (!), hidden controls(!), value properties(!) and local variables(!) (as suggested above but not recommended at all!! Besides, it does not even work correctly!), all you need is a radiobutton control that also allows "no selection". See attached (LabVIEW 2013). You could also add a third boolean for the sine wave and disallow "no selection" to make the code even more self-documenting.
    I made the radiobutton container transparent to match your existing style.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Waveform_MODCA.vi ‏94 KB
    Waveforms.png ‏11 KB

  • Black screen upon wake from sleep when I change power state while in sleep

    Hi,
    I'm having this problem where my MacbookPro won't always wake from sleep.
    OSX is 10.6.3 and fully updated.
    I've done a lot of troubleshooting, and I can now replicate the issue 100%:
    1 - Put the MacbookPro to sleep by closing lid
    2 - Change power source (from plugged-in to battery or vice versa)
    3 - open lid - MacbookPro will wake, but stays at black screen and is unresponsive.
    Only if I change power state while sleeping will this issue show. Anyone else experincing this issue, and anygot got a clue on what to do?
    regards,
    Lasse

    I've seen the same issue after upgrading to 10.6.3. I have a one year old MacBook Pro. I would have the screen be black after coming back from sleep or hibernate (tried both).
    The workaround I found is to close the lid -almost- all the way and then immediately open it back up again, like I am catching the Mac going back to sleep and then changing my mind. For whatever reason, this has been reliably solving my issue for the last couple weeks reliably.
    Only other oddity I noticed is that immediately after upgrading OS X told me that my one year old battery needed to go in for servicing...
    Anyway, now all looks right with the world assuming you don't mind a quick close/open cycle.. Lovely...
    Tim

  • Change a state in main.mxml from a script in another mxml

    Hi,
    i'm having some trouble with my application, let's say i have the main application file called MAIN.MXML
    in wich i have set different States, and have different forms.
    now i have a form called loginForm which contains the textInput item for Login and Password, i also have a link Need to Register
    which onClick will change the state to show in the same panel a different form registerForm (with the relevant textInput items)
    now the MAIN.MXML includes a custom component called <comp: NetworkManager /> which includes all the logic scripts and MXML
    tags to create and manage an HTTPService request to a PHP Server.
    when the user click on the Login button, this will call a function included in the main.as script (imported in MAIN.MXML) which
    will call a function in the script within NetworkManager.MXML passing all the form data.
    in NetworkManager.MXML the script will create an XML message, will send to the PHP Server and wait the response... if this comes
    true the user is authenticated, otherwise is not.
    so far so good, i get the message sent, the correct response back. Now i want to hide the form in MAIN.MXML and put something like
    Welcome firstName lastName!! instead. But i don't know how to do it. If i try to access the states in MAIN.MXML from the NetworkManager.MXML
    i'll get all sort of errors which i don't have it here with me.
    I know this sounds like a newbie question, and it really is ... any taker?
    your help is much appreciated.
    thanks
    T.

    Hi,
    i've tried RemoveChild but i get an error like:
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[C:\autobuild\3.2.0\frameworks\p rojects\framework\src\mx\core\UIComponent.as:5096]
    at mx.core::Container/removeChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\ core\Container.as:2274]
    at components::NetworkManager/sendUserAuthHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:182]
    at components::NetworkManager/serverHandler()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:98]
    at components::NetworkManager/__serverRPC_result()[C:\Documents and Settings\Tom\My Documents\flex_prj\Shoppy\src\components\NetworkManager.mxml:290]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\framewor ks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
    at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]
    at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
    at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:403]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    who is the caller of loginForm then? i've tried with Application.application.loginForm but i do get the same error though.
    loginForm is contained in a Canvas item, is it the caller? or who else?
    thanks
    T.

  • My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?

    My MBP with RD's Facetime camera freezes when changing portrait to landscape during facetime calls on the display of the person who i'm calling to, but it shows alright on my side, what's going on?
    Another thing is that on Skype, whenever i clicked to sharescreen it only show a complete black out window. nothing else.
    Tried restore OSX mountain lion, doesn't work. what should i do?

    kaeandcolesmon,
    If you open the recovery drive (partition) it should only have a single folder (Recovery).
    To make sure that your not saving restore points to that drive.
    See:
    Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Changing boolean state and read change

    Hello Everybody,
    sorry to bother you, but as a new user of Labview, I still have problems to program VI's. I try to do my best alone, but right now I have been in a dead end for a while... Thats why I come back to you.
    Here is my problem:
    - in A VI I made, I have a boolean , which command if data are recorded or not. When recording is on, the led enlights, when it is off the led is of.
    - Actually, I would like to link the recording action to something more complicated:, I would like the changing state of the boolean to enlights several leds in a specific order. 
    Thus, when the boolean change, this should change the state of the leds. 
    I managed to do so, when pressing the button in the boolean_count.VI, that has the result I would like to obtain.
    My problem is that, the change of state is not initiated only by a push button. It depends of several state (true or false), which order the recording or not.
    To simulate that, I have tried to do same as previously, but with 2 booleans, which have to be both true to initiate a change. I tried to do so in the file Try_out_boolean.VI 
    But iin this file, when I push my buttons, there is no change of state in the right part of my panel...
    I hope You can underrstand what I mean. If you have any suggestions, I will be glad to read them.
    Solved!
    Go to Solution.
    Attachments:
    Try_out_boolean.vi ‏15 KB
    boolean_count.vi ‏12 KB

    in the property node "1and2" of your Try_out_boolean.vi, you read the property "BindingLEDVisible".
    (as well as I downloaded) That makes no sense.
    -> click with the mouse on this property node an choose the property "Value" instead.
    Then your application should react as wanted.
    Thre may be other improvements possible, e.g. using event structures instead of continually polling -
    but that is another topic...
    i hope, this helps a little bit.

Maybe you are looking for

  • HT1920 I have two apple ID accounts. How do I merge them into one?

    Hi all I have realised that I have two AppleID accounts - one set up many years ago with an old email address. The other my current ID I use all the time. How do I go about merging the two into the account I use now? MS

  • How do I set up wireless printing to my Airport Express?

    I run my 17" MBP through a DLink wireless router which is located next to my modem in my basement. I have an Airport Express station (not the Base or the Extreme) which I used to use for wireless iTunes serving to my stereo, but which I now wish to u

  • Ichat hangs at connection, then dumps

    Hey there, so my ichat seems to hang just after connecting, i get an error that looks somthing like this: Audio channel info: local machine using x.x.x.x:16402, expecting remote machine to send to 192.168.1.15:16402 Video channel info: local machine

  • FC - Import AI File is not 1:1

    Importing .ai file is not 1:1 How to import Files into FC  1:1? FC artboartd = 760 x 600 (px?) AI file = 760 px [IMG]http://img255.imageshack.us/img255/723/fcimportfilesize0.jpg[/IMG]

  • Chinese Print for HP 4250

    Hi Experts, I'm trying to print a Purchase Order in Simplified Chinese, but strange characters are printed. When I see the print Preview in SP01 everything is Ok, also if I print something in text format. However I'm unable to print with: Data Type: