Retrieving a form's original design time dimensions

  • Thread starter Thread starter None
  • Start date Start date
N

None

Anybody know a call get a form's original design time dimensions in an event
procedure after it's been resized?

Thanks!

Jess
 
None said:
Anybody know a call get a form's original design time dimensions in an event
procedure after it's been resized?

Never tried to do that. It just seems too easy to have a
couple of module level variables and copy the form's Height
and Width properties during the Open evnet.
 
None said:
Thanks for idea; I should have been a little more specific - I'm writing a
routine that will work across all the forms in my application and so I
didn't want a to keep track of all the dimensions for every form. It just
seemed a little more elegant if there was a nice call or property that I
could access?

I'm not sure I understand. Are you saying you want a
routine to document the design dimensions of all your forms?
 
No problem; thanks for all your effort - I was just hoping one of the "wise
ones" would know some little trick!

Marshall Barton said:
None said:
I guess what I'm asking is if there is something analagous to say:

forms!someForm.windowHeight

but for the original design-time dimensions that I can call within any
event.

Your original idea of storing a copy of this information when a form loads
will work fine; however, I was just wondering if there was a way to get this
information "on demand" with a simple call. I could write a more general
routine that will work across all forms without having to setup the extra
variables and code in each existing form as well as future forms.

There's nothing I know of that remembers the original values
of the form dimensions. The only thing I can think of that
could do that is if you created your own (design time)
procedure that cycled through all your forms and recorded
those values in a table that you could later use at run time
to get the values.
--
Marsh
MVP [MS Access]


writing
a
 
Back
Top