General information
Category:
Forms & Form designer
Title:
Making a modal form only appear when needed???
I have a big problem. I am writting an international application and I needed a messagebox with the ability to change the button text. So I thought I'd make my own, all was lovely until I tried to make the form automatically adjust its width depending on the amount of text being sent.
I have tried several ways including calculating the width using FONTMETRIC AND TXTWIDTH but because they work on an average width of a character for a font it was no good. So I got around it by placing the text into a label and setting the label to AutoSize. Then referencing the width of the label to calculate the form width. I have got it to resize but what I need to do is make the form only be shown after the form width has been changed. At present the form resizes itself so everyone can see it, which looks crap to put it plainly.
Does anyone know of a way around this???
Lee
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only