RTollison 0 Posted March 13, 2020 I have a listview on a form that is sizable. i hard coded 5 columns to it but when different users with different monitors, laptops the columns overlap the text. is there a way to detect when text overlaps and then i could reduce the number of columns and refresh the listview. the text that is displayed is file names but depending on the users that info could be longer than the others. i would rather not hard code the # of columns but i don't know when to trigger the increase/decrease the number of columns. Share this post Link to post
RTollison 0 Posted March 13, 2020 Never mind i just went with a specific width for columns of 150. livstview.width div 150 = number of columns. so far everyone seems to be happy with it. Share this post Link to post
Andrea Raimondi 13 Posted March 14, 2020 You need to detect the real DPI and then expand the widths etc. Look into MultiMon and ShellScaling units. Share this post Link to post