04-01-2014 11:19 PM - edited 04-01-2014 11:23 PM
I am using multicolumn listbox to show my test to user. In development PC it looks nice and displays as much as column I want but in other PC where I am installing my application there last row column is partially visible.
I have set VI to resize the VI as per monitor resolution. Attached image for reference.
What could be the reason?
04-02-2014 12:47 PM
04-02-2014 01:23 PM
See the attached vi
Norm
04-02-2014 02:58 PM
Ranjeet, this looks to be a difference in OS. It may be related to font size too. You can get the width of the entire table using container bounds, calculate the required width of each cell, and set the cell width with activeCell.CellSize.Width
Hope this helps you
Michael
04-02-2014 03:05 PM
The listbox scales with the front panel, which you said is scaling with the monitor resolution.
However, the widths of the columns do not scale with the listbox itself. You'll need to adjust them either manually or programmatically like Michael describes.
04-02-2014 10:57 PM
@Michael_78 wrote:
Please post your vi
One VI is in development PC and where I am getting problem in differnt PC where LV is not installed
04-02-2014 10:58 PM
@Michael_78 wrote:
Ranjeet, this looks to be a difference in OS. It may be related to font size too. You can get the width of the entire table using container bounds, calculate the required width of each cell, and set the cell width with activeCell.CellSize.Width
Hope this helps you
Michael
Yes OS is differnt but I doubt it. all other things are getting resize except
04-02-2014 11:00 PM
@Viper wrote:
See the attached vi
Norm
I know how to set programmatically set number of column. I need fix 4 column but my problem is in devlopment PC its perfect and in other PC 4th column is partially visible
04-02-2014 11:01 PM
@RavensFan wrote:
The listbox scales with the front panel, which you said is scaling with the monitor resolution.
However, the widths of the columns do not scale with the listbox itself. You'll need to adjust them either manually or programmatically like Michael describes.
Differnt monitor have differnt resolution. It might possible that one montor I will keep 3 and other I need 4. Then in that case I need to make differnt exe file for each
04-02-2014 11:21 PM
Hello Ranjeet,
What you have to do is 'disable the horizontal scroll bar' in a visible menu. The multicolumn listbox will automatically fit the columns.
Regards,
Ram Gurung
Certified LabVIEW Developer