diek_nf
asked on
Perplexing Height Properties
Hi,
First, I only have 10 points. If you can help me fix this they are yours.
I have a multiform project. The height properties on most forms can be set at 300(eg.,command button), but a few of the forms have eg.,command.height = 5837.266. Both are the same actual height. I took over the project from the another programmer, and I cannot seem to figure out where this option(to revert all height to the same variable). Please help.
diek
First, I only have 10 points. If you can help me fix this they are yours.
I have a multiform project. The height properties on most forms can be set at 300(eg.,command button), but a few of the forms have eg.,command.height = 5837.266. Both are the same actual height. I took over the project from the another programmer, and I cannot seem to figure out where this option(to revert all height to the same variable). Please help.
diek
Take a look at the ScaleMode property of the forms. Most likely the form with the Command.Height = 300 is Pixels and the form with Command.Height = 5837 is in Twips ScaleMode.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Erick,
Perfect that was exactly it. Do you have any recommendations on using twip or pixel? If you do not it is okay. Thank you.
diek
Perfect that was exactly it. Do you have any recommendations on using twip or pixel? If you do not it is okay. Thank you.
diek
Twips is the default scalemode. The use of other scalemodes depends on what you are doing with the form/control. e.g. Pixel scalemode is useful when using the Windows API functions, which use pixel dimensions. A User defined scalemode is often used to make it easier to draw charts or plots.
Unless you need another sclalemode - use Twips.
Unless you need another sclalemode - use Twips.
ASKER
Erick
Again, quick helpful.
derrick
Again, quick helpful.
derrick