LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Docking graphs with legends in CVI 8.0

I have been quite happy with the new features of CVI 8.0's user interface library & editor. Well done, NI!
 
In particular I have been able to use splitters to dock native tab controls, and also have the contents of those tabs re-size or move (i.e. dock) within those tabs. Furthermore I've been able to dock child panels within those tabs, and either let them re-size/re-scale with the tab based on their panel attributes or give them resizing/moving behavior via docking with splitters too. All in a couple of hours! Awesome!
 
Okay, so here is my question: Is there a way to get graphs with legends to dock nicely when the legend is not lined up outside the graph in the lower right corner? I find that legends positioned over the graph or on the left respond strangely to being attached to splitters.  I have attached two images that show an example. (Note that bigger changes in size, or putting the legend on the left make for even more dramatic shifts.)
 
Thanks in advance!
--Ian
 
 
Download All
0 Kudos
Message 1 of 2
(3,104 Views)
Thank you for the nice words, Ian. It's good to know that you're finding these features useful.

Having said that, it does look as if you found a bug that happens when you size controls via splitters, that affects the placement of free-standing parts of controls (labels, legends and digital displays) depending on the position of these parts relative to the rest of the control. And legends are affected in a different way than labels or digital displays, although all three can be placed incorrectly.

We will fix this for the next version of CVI. In the meanwhile, I think your only option is to reset the position of the legend whenever you receive an EVENT_DROPPED event in the splitter's callback function.

Thanks for reporting this, Ian.

Luis
NI
0 Kudos
Message 2 of 2
(3,050 Views)