Why does DISABLED disable a SCREEN RECTANGLE instead of just the control?

I have solved this problem, but wanted to post it here for discussion.
LabVIEW 7.0, Windows.
I have a cluster: Item 0 is a custom enum control, item 1 is a string control.
Under certain conditions in my program, the string field must be disabled (and grayed out), because it's not applicable.
When I did that, I found that the enum was disabled as well. Actually, it would sometimes work if I hit the up-arrow just right, but the menu would never pop up. It worked find if the string was enabled.
The string field (item 1) had a label above the left side of it. The enum (item 0) was positioned immediately above the right side of it.
So why was item 0 disabled if item 1 was? I verified that the DISABLED property was NOT getting set to disabled (it reported 0 when I read it). There were no other property nodes to item 0.
As it turns out, it seems that when the string was disabled, there was a RECTANGLE on screen which was disabled. In spite of the fact that neither the string field not its label overlapped the enum, the fact that the enum was within the string's RECTANGLE was disabling it. The fact that the enum's up-arrow extended above this rectangle is what made it work if I hit it just right (the top 1 or two pixels, i guess). I found this out by moving the enum off to the right (out from under this rectangle.
My eventual solution was to go to the typedef for this cluster and move the enum IN FRONT of the string. I did not change the cluster order, just the physical front-to-back ordering. Now it works, with the enum back where I wanted it in the first place.
I have attached a VI which demonstrates this. I tested it on LV 7.1 / OSX and it still fails. Not sure if it's a bug, or intended behavior.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Attachments:
BugTest.vi ‏34 KB

I would say this is most probably optimation. While you can of course escalate a user event message all the way down to any of the lowest controls only to see in most cases that the control did not care about this message for whatever reasons, this adds significant delay to the event handling. So having the top level control (cluster) do a quick and dirty rectangular check to see which control should receive the message if any and only passing it to that control speeds things up significantly.
Doing anything but a rectangular area check is again a performance problem as well as a never ending story of special cases which need to be handled just this tiny bit different to the rest, and any modification for a particular situation has often several undesired consequences for other cases.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Why does a pop up screen ask me to extract the image using Lightroom Installer, when all I want to d

    Why does a pop up screen ask me to extract the image using Lightroom Installer, when all I want to do is view it ?

    My local computer shop solved the problem. Apparently when you download cloud it changes a lot of settings.
    So second issue.
    Why do I now get asked to burn to disc rather than saving to my hard drive when I want to export from Lightroom ?

  • In mail, why does entire email address show up instead of just person's name

    When I address most emails (to persons who are in my contacts), only their names show up in the "To:" window. But with certain people, their name plus their <full email address> all show up in the window.
    I've tried re-entering their names in my contacts. I've tried deleting these names-with-full-email-addresses from the Previous Recipients list. No matter what I do, their name fills in as "First Name Last Name <full email address>" in the "To:" window. I also mail to other clients at the same company and their names just show up as names only -- normal.
    Any idea why this is happening, and how I can make it stop?

    It's fixed. Not sure why. Maybe one of the things I tried just needed time to take effect. Suddenly, it's working.

  • Why does my photo have a ! instead of viewing the photo when I double click on it? Some work some don't.

    What is wrong with the photo?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • Why does my iphone 3gs screen go white after it goes "to sleep" for the first time after turning it on?

    Why does my iphone 3gs screen go white after it goes "to sleep" for the first time after turning it on?
    The screen isn't broken because it works after i turn the device off and back on, but after it goes black once, it's only white again.
    But it takes the touches although it's only white, because I can answer my phone when I slide my finger on the bottom of the screen, eventhough there in not the button to see.
    This is so weird. I have already done everything I can think of that might help. But I cannot think of anything that might be causing it, because nothing has happened to the device.

    Let me know if I should start a new discussion instead of opening a new topic here.
    My wife's iPhone is the same vintage as mine 3Gs, but has never had the battery problem.  Its affliction instead is that it cannot detect WiFi networks unless it is quite close to the source.  Often, when my iPhone not only detects but shows a maximum cells connection with a network, hers cannot detect the network at all.  In contrast, her iPhone seems to detect ourcellular carrier just as well as mine does.
    Is there any help for this affliction?

  • IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    It is necessary to confirm your identity as the 'buyer'.  Please do not use all capital letters.  It is not well regarded here and can be tricky to read for some. Thank you.

  • Why does my iphone 3gs screen goes black after reaching another party and won't come back on to press end the call

    why does my iphone 3gs screen goes black after reaching another party and won't come back on to end the call

    hi smalley3,
    Welcome to the Forums.
    The flickering issue maybe due to a bad LCD cable or in some cases, a faulty GPU (the GPU is integrated to the CPU, and the CPU is soldered to the motherboard).
    If there's still no image on the screen even after connecting an external display then you likely have a bad GPU.
    In this case, I recommend you contact support for service (and also to see if there's a consideration that can be done on the warranty repair).
    Support phone list
    Regards
     

  • Why does audio books list by chapter instead of books?

    Why does audio books list by chapter instead of by book ?

    Perhaps I should have given more detail. The device works the way it works. Listing every chapter is part of the normal behaviour, and often not in a useful order which is the main thrust of that article. However it does point out that you can use one of the various free/cheap tools available to stitch the individual files into a single audiobook file which is what iDevices really expect to receive.
    Alternatively you could use a smart playlist which matches a particular title and only includes files with a play count of zero to make it easier to locate the current chapter. I don't recall ever trying this so I'll have a go and see how it works out.
    tt2

  • Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?

    Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?
    MacBook Pro 2.33 GHz intel core2 Duo

    Welcome to the iOS world of nonthinking, wherein the OS decides everything for you, whether or not that's what you want. Salient details described in http://www.apple.com/macosx/whats-new/features.html#resume
    See one of these to disable it:
    http://hints.macworld.com/article.php?story=20110918051930924
    http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/
    http://restoremenot.info/

  • Why does my macbook pro retina display shutdown while entering the administer account

    why does my macbook pro retina display shutdown while entering the administer account

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

  • Why does FireFox open as a very small box in the top l/h corner and i have to resize it every time

    Why does FireFox open as a very small box in the top l/h corner and i have to resize it every time this only occurs on the initial opening up of F/Fx after boot-up

    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox (File > Exit/Quit) to save that setting.
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    If the above didn't help then see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • TS1382 why does my ipod classic keep saying its charging and the back of it get hot

    why does my ipod classic keep saying its charging and the back of it gets hot

    The battery and/or charging circuit may be faulty. Reset the device and try again having let it cool down first.
    tt2

  • Want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through a long procedure each time

    I want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through the long tedious procedure each time I install firefox. It is something that should be in the options tab , and I want to know why it isn't. I am totally frustrated with firefox and getting ready to switch.

    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • HT3209 why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    This Apple article might help ya out -> iTunes Store: "Error (-50)" when downloading purchased content
    Try following along with the article and deleting the cached downloads, then try again.

Maybe you are looking for

  • Can't close Quicktime Windows!! CMD-W is not working

    Hi my quicktime did not close anymore..CDM-W is not working and neither can i see the red amber green icons on the top left.. there is no menu when i try to rightclick within the video. the effect is dramatic that every time i open quicktime it autom

  • Need Help for International Travel Please

    I am going to be in Panama for a year. What I would like is: 1) to be able to call phones in the U.S. 2) to be able to receive calls from the U.S. 3) to send and receive texts from the U.S. This is all I want, but I don't mind if the service packages

  • Error when I use Recordset

    I have used recordset behavior before without any problems. Now I get this error: the Recordset script does not define the applyServerBehavior function Why ?????????? I work on an apple laptop with OS X version 10.4.9. I have try to reinstall but wit

  • Unable to recover messages

    Hi, So here is the problem. 1.) I deleted my email account online due to some technical issues and recreated the email account with exact same details. 2.) Before deleting email account I backed up my email messages (~/Library/Mail) Folder. After rec

  • 3.3 Bug: Win32 API Error 2 - Please help

    Wondering if anyone may be able to help with the following error message: "An internal error has occured: Win32 API error 2 ("The system cannot find the file specified") When calling ShellExecuteExW from AgWorkspace.shellExecute". The wonderfully unh