04-08-2014 12:41 PM - edited 04-08-2014 12:43 PM
Hi , could you please lte me know how can I fit an array of buttons to one column of a table control in a way that when I change the size of the table control or if I open the vi in any screen they match with the height and width of the table cells ( picture is attached )
My anotehr questions is , I would like to see the whole table control but I have seen when I open the vi in different moniors , sometimes I can't see some part of the table control and I need to scroll up/down and write/left. How can I make sure the table control adjust iteself with the screen size?
thanks
04-08-2014 12:50 PM - edited 04-08-2014 01:02 PM
Vote for this idea and wait a few LabVIEW versions (fingers crossed). 😄
Personally, in my programs I use arrays of clusters fo things like that (example), Here's a picture of a small section of one of my panels. The nice thing is that I don't need a table and can mix strings, numerics, buttons, etc, in any order.
04-08-2014 01:31 PM
Hi Altenbach
Thank you for your suggestion. Is there any way to somehow link these array of buttons to the table control?
I tried to read the cell size and then change the button height and width according to that but still a small change will break everything and they don't fit inside the cells
04-08-2014 01:35 PM - edited 04-08-2014 01:37 PM
I would not do it that way, too painful. 😄
Maybe you can use a plain table cells instead of buttons in these two columns and just make them bold and/or different background color. Look for mouse-down events and if the mouse was in one of these cells, act as if a button was pressed.
04-08-2014 02:07 PM
Could you please let me know how can I how can I make them bold