I have a control inside a frame and want to move it at run time. I'd like to set the scalemode to pixels but frames don't seem to have this property. Do I have to use Screen.TwipsPerPixelX and Screen.TwipsPerPixelY or is there another way?
Printable View
I have a control inside a frame and want to move it at run time. I'd like to set the scalemode to pixels but frames don't seem to have this property. Do I have to use Screen.TwipsPerPixelX and Screen.TwipsPerPixelY or is there another way?
Does "it" mean that (1) you want to move the control inside the frame and leave the frame at a fixed position or (2) move the frame itself and thus carry the control with the movement of the frame?Quote:
Originally Posted by krtxmrtz
It means (1) ;)Quote:
Originally Posted by Code Doc
So then you would set its location using the .Move method of the child control and the settings would be relevant to the frames top let being 0, 0
Interesting. Even though the form ScaleMode can be set to pixels and thus the frame positioned in pixels, any control contained inside the frame remains positioned in twips relative to the frame.Quote:
Originally Posted by krtxmrtz
So why not divide by thte twips per pixel? Shouldnt be an issue.
Of course but I was surprised that even if the form the frame is in was set to pixels, still the frame metrics was twips. That's why my question was if there was any other 'hidden' trick I had overlooked or didn't know about.Quote:
Originally Posted by RobDog888