T.R | Title | User | Personal Name | Date | Lines |
---|
2519.1 | | AXEL::FOLEY | http://axel.zko.dec.com | Wed Mar 19 1997 12:00 | 6 |
|
You might want to see about getting a control that does this
for you.
mike
|
2519.2 | | LEXSS1::GINGER | Ron Ginger | Wed Mar 19 1997 15:44 | 6 |
| >You might want to see about getting a control that does this
for you.
any examples of such a control, or sources?
|
2519.3 | Try SCREEN.WIDTH and SCREEN.HEIGHT | MRSERV::PETERS | | Wed Mar 19 1997 16:43 | 11 |
| Since you mention wanting the "screen size", why not use the
expressions SCREEN.WIDTH and SCREEN.HEIGHT? But note they give you the
true screen dimensions, where Me.width and Me.height will give you
the form dimensions. In your case, with the form maximized, these will
be the same.
My typical use for these sets of values is for centering a form on
the screen.
Don
|
2519.4 | | LEXSS1::GINGER | Ron Ginger | Thu Mar 20 1997 09:28 | 10 |
| thanks, Ill look at screen.width.
I am curious as to why the me.height is incorrect at the time a
form_load sub runs. Is there any good description of the exact sequence
of events for this? When do the general declarations of a form get
processed? I assume they must be done before a form_initialize sothat
variables declared will be ready.
Related to form opening, I notice that the defalt form name comes up as
Form1, yet the default sub is Form_load, not Form1_load. Why is this?
|
2519.5 | Multiple resize calls | TURRIS::twuwuv.zko.dec.com::hower | | Thu Mar 20 1997 10:31 | 6 |
| Well, I've noticed that form_resize gets called several times before
the form actually gets displayed - and the scaleXXX properties are
slightly different every time. Never got the chance to investigate what
was actually going on, but it may be related to design time/display
time size updating. Might be worth checking?
Helen
|
2519.6 | | AXEL::FOLEY | http://axel.zko.dec.com | Thu Mar 20 1997 10:32 | 8 |
|
RE: .2
I think Sheridan or some of the other popular control
makers have something.
mike
|
2519.7 | | MIASYS::HETRICK | | Thu Mar 20 1997 12:40 | 5 |
| Re: .0
The resize event is probably the one you want.
Brian
|
2519.8 | form doesn't display until Load even completes | PGREEN::HAYESI | Is that a warp nacelle in your pocket...? | Mon Mar 24 1997 09:33 | 11 |
| If I recall, the Form-Load event completes (normally) before the form
actually displays. IN this case, I would guess that the 'maximise'
process doesn't occur until just before the form displays hence the
hight and width properties won't be updated until after the Form_Load
completes.
You can force the form to display early by using the Show method (can't
remember if you need a DoEvents as well).
Cheers
Ian.
|
2519.9 | | XSTACY::PATTISON | A rolling stone gets the worm | Mon Mar 24 1997 13:02 | 6 |
|
Putting the code in Form_Resize instead of Form_Initialize should
get round the problem. The resize event always gets called when a
form is displayed for the first time.
Dave
|