Pop-up form height control.

sja13

Professional Idiot
Local time
Today, 14:34
Joined
May 3, 2017
Messages
63
Hi guys....

I have a form on which there is an Image.
When the User doubleclicks the Image, I want a "pop-up" Form to appear, with various radio-button options etc.

This all works (ish), but I'm struggling to size the "pop-up" Form vertically.

On the Form I have removed all scroll bars, control buttons, record navigation stuff etc.
The Header and Footer Heights are 0.
The Detail height is 4cm, Grow and Shrink are set to No.
The Form's AutoResize,and FitToScreen are set to No.

The Form width is OK, except it is the full height of the screen.
What have I missed? This one's driving me crazy! I'd be realy grateful for a clue or two!...
 
Have you tried MoveSize?

Sent from my SM-J320FN using Tapatalk
 
Set AutoResize to Yes. See if that makes a difference. And, as NauticalGent suggests, you can set the size explicitly. You can also set the size using the InsideHeight property of the form...
Code:
private sub form_open(cancel as integer)
[COLOR="Green"]   'set the inside height to 6 iches[/COLOR]
   me.insideheight = 6 * 1440 [COLOR="Green"]'1440 twips/inch[/COLOR]
end sub
hth
Mark
 
Thanks to all who replied - MarkK takes the prize - AutoResize=Yes has worked.

Foolishly, I assumed ("Make an Ass of U and Me") that I knew what AutoResize meant.
That was another of my many mistakes!
Reading up on the property it seems to be a bit of a trap for the unwary - most properties seem to be of the "set it and it works" class, but not this one!

Thanks again....
 

Users who are viewing this thread

Back
Top Bottom