10-22-2009 04:38 PM
I am having a problem with a listbox in 7.1.1. I have "1 item" selection mode set. Sometimes the highlighted item in the listbox is changed manually with a mouse click, and sometimes it is changed programmatically.
My issue is that sometimes the shading that indicates the selected item gets "stuck" on a selection, so that the previously selected item, and the new item, are both highlighted. This happens with programmatic and manual selected item changes. Over time, several items are highlighted. The program corrects itself when the scrollbar of the listbox is moved. (The programs functions properly otherwise.)
It seems that its a labview issue, which is fine, but I will give up trying to rework my program. Or maybe there is a workaround to prevent it. I've tried putting some wait functions and sequence structures in different locations to give labview more time to change the highlight, but nothing seems to work. ??
Thanks!
Greg
Solved! Go to Solution.
10-22-2009 11:18 PM
Can you post your code?
10-23-2009 09:55 AM
That may have been a bug in version 7.1.1 of LV.
Hide/Show or Invoke Node >>> Get Image sometimes help to get LV to update the screen.
Ben
10-23-2009 10:19 AM
Thanks Ben. I will try your suggestions.
gak: I will post my code shortly. Let me just simplify it and make it able to run without all of the data files that it currently needs to work.
Greg
10-23-2009 10:40 AM - edited 10-23-2009 10:41 AM
Ben that's it!!! hide/show Eventhough its a workaround, I think its worth a solution.
gak: Its working nicely now, thanks anyhow.
Greg
10-23-2009 11:09 AM
gstanczak wrote:Ben that's it!!! hide/show Eventhough its a workaround, I think its worth a solution.
...
Greg
Cool. That is what I alway thought of as the "jiggle the handle" work-around.
Ben
10-23-2009 12:15 PM
Clever! I will refer to you for my plumbing problems as well.
Greg
10-23-2009 12:38 PM
gstanczak wrote:Clever! I will refer to you for my plumbing problems as well.
Greg
Now you did it! You gave me a reason to tell another Family Sea Story.
One summer my dad was remodling one of his bathrooms and they (dad, sister and brother) had everything ripped out and had rags stuffed in the waste stack. So they worked for a while and later realized those rags are there anymore, bummer. So they broke out the snake and quickly snagged those rags BUT neglected to shut off the drill while pulling it out.
My sister has a video of when The Sh#$ hit the fan". She still giggles ever time we talk about another remodeling project.
Ben