By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,335 Members | 1,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,335 IT Pros & Developers. It's quick & easy.

Resize(): Reliable way to determine bottom padding?

P: n/a
Whenever I write a Form_Resize() routine, I define a constant "botMargin"
and set it to something that works.

Problem is, I don't have a clue as to what values are involved and it's
usually a trial-and-error process. Works...and it goes pretty quickly with
experience...but it seems like I should know exactly what dimensions I'm
playing around with....

?
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

PeteCresswell wrote:
Whenever I write a Form_Resize() routine, I define a constant "botMargin"
and set it to something that works.

Problem is, I don't have a clue as to what values are involved and it's
usually a trial-and-error process. Works...and it goes pretty quickly with
experience...but it seems like I should know exactly what dimensions I'm
playing around with....


I don't know as to whether your margin targets vertical or horizontal
measurements. To me this sounds more like you're not taking into
consideration i.e. the header-section's height. Most of the time, you'll
probably just change the location and/or size of controls within the
detail-section while having i.e. a form-header which is to remain as is.
Thus you may want to first set the detail-section's height, for instance:

Me.Section(acDetail).Height = Me.InsideHeight _
- Me.Section(acFooter).Height - Me.Section(acHeader).Height

Otherwise, maybe you just haven't found out that you shouldn't be using
me.width/me.height but rather me.insidewidth and me.section(...).height ..?

Cheers,
Olaf [MVP]
--
My .02: www.Resources.IntuiDev.com
Nov 13 '05 #2

P: n/a

Olaf Rabbachin wrote:
Hi,

PeteCresswell wrote:
Whenever I write a Form_Resize() routine, I define a constant "botMargin" and set it to something that works.

Problem is, I don't have a clue as to what values are involved and it's usually a trial-and-error process. Works...and it goes pretty quickly with experience...but it seems like I should know exactly what dimensions I'm playing around with....
I don't know as to whether your margin targets vertical or horizontal
measurements. To me this sounds more like you're not taking into
consideration i.e. the header-section's height. Most of the time,

you'll probably just change the location and/or size of controls within the
detail-section while having i.e. a form-header which is to remain as is. Thus you may want to first set the detail-section's height, for instance:
Me.Section(acDetail).Height = Me.InsideHeight _
- Me.Section(acFooter).Height - Me.Section(acHeader).Height

Otherwise, maybe you just haven't found out that you shouldn't be using me.width/me.height but rather me.insidewidth and

me.section(...).height ..?

You were right on the money: I'd never even heard of .InsideHeight.

Somehow I'd lost the thread on my reader - just came upon your reply
via Google.

Thanks!

Nov 13 '05 #3

P: n/a
Hi,

Go**********@FatBelly.com wrote:
Somehow I'd lost the thread on my reader - just came upon your reply
via Google.


better late than never! ;-)

Cheers,
Olaf [MVP]
--
My .02: www.Resources.IntuiDev.com
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.