I have an application with variable captions. I would like to detect the length of the caption and if it exceeds the width of the field I would like to make it scroll.
The problem I have is that I cannot check the number of characters because of the variable width of different characters.
Does anyone know of a means to determine the pixel width of a set of characters so it can be compared to the pixel width of a label caption?
Thank you.
The problem I have is that I cannot check the number of characters because of the variable width of different characters.
Does anyone know of a means to determine the pixel width of a set of characters so it can be compared to the pixel width of a label caption?
Thank you.