I'm in the process of trying to add ellipsis (...) to the content of certain textboxes, editboxes, and labels when the content of these controls is greater than these control's display area. In other words, I plan on trimming the value displayed in these controls so that the largest amount of content can be displayed in the control followed by "...".
Apparently VFP 9 can do this to textbox controls displayed in a grid - but I'm looking for a solution that allows me to do this with regular textboxes, editboxes, and labels.
I've looked at DisplayPath() but this function assumes a fixed pitch font. I'm currently in the process of looking at Fontmetric() as a way to calculate the max number of chars I can display in a given width, but can't seem to think of a way to apply this function when a multiline, word-wrapped value is displayed in a textbox, editbox, or label.
Any suggestions?
Malcolm
Apparently VFP 9 can do this to textbox controls displayed in a grid - but I'm looking for a solution that allows me to do this with regular textboxes, editboxes, and labels.
I've looked at DisplayPath() but this function assumes a fixed pitch font. I'm currently in the process of looking at Fontmetric() as a way to calculate the max number of chars I can display in a given width, but can't seem to think of a way to apply this function when a multiline, word-wrapped value is displayed in a textbox, editbox, or label.
Any suggestions?
Malcolm