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

Moving a tabbled control around on the form?

P: n/a
I've got a form that has a TreeView in the upper part of the form and a
TabControl in the lower.

When processing a Resize event, the TabControl does not need tb resized - just
moved so that the TreeView can be expanded/contracted to fill the available
space.

But there seems tb some sort of chicken-and-egg problem with objects within the
TabControl. Their coordinates are expressed relative to the form instead of
the TabControl and their movement is constrained by the boundaries of the
TabControl.

Best-sounding suggestion I've seen so far was offered up in
microsoft.public.access: write a loop to incrementally nudge the objects within
the TabControl and then move the TabControl a little bit with each iteration.

But I'm still not getting anywhere.

What I'm fishing for is somebody who can point me to a working example or an MS
white paper on the subject.

If anybody wants a more concrete statement of the problem, I posted
a 112k sample db at http://tinyurl.com/oznty

MS Access 2003.
--
PeteCresswell
Oct 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

(PeteCresswell) wrote:
I've got a form that has a TreeView in the upper part of the form and a
TabControl in the lower.

When processing a Resize event, the TabControl does not need tb resized - just
moved so that the TreeView can be expanded/contracted to fill the available
space.

But there seems tb some sort of chicken-and-egg problem with objects within the
TabControl. Their coordinates are expressed relative to the form instead of
the TabControl and their movement is constrained by the boundaries of the
TabControl.

Best-sounding suggestion I've seen so far was offered up in
microsoft.public.access: write a loop to incrementally nudge the objects within
the TabControl and then move the TabControl a little bit with each iteration.

But I'm still not getting anywhere.

What I'm fishing for is somebody who can point me to a working example or an MS
white paper on the subject.

If anybody wants a more concrete statement of the problem, I posted
a 112k sample db at http://tinyurl.com/oznty

MS Access 2003.
I'm just speculating but I wonder if 1) resizing the tab control to
fill the entire form section, then 2) moving the textbox, then 3)
resizing and repositioning the tab control would work. You might have
to iterate through step 3 a couple or more times to get everything
right, but I don't think you'd have to resort to as many 'nudges' as
you described above. Step 3 might also be amenable to use of the
SizeToFit method.

Bruce

Oct 11 '06 #2

P: n/a
Per de***************@gmail.com:
>I'm just speculating but I wonder if 1) resizing the tab control to
fill the entire form section, then 2) moving the textbox, then 3)
resizing and repositioning the tab control would work. You might have
to iterate through step 3 a couple or more times to get everything
right, but I don't think you'd have to resort to as many 'nudges' as
you described above. Step 3 might also be amenable to use of the
SizeToFit method.
You're the second one to pick up on that - and it sounds sensible to me.... It's
just that I haven't been able to make it work yet. Maybe this weekend...
--
PeteCresswell
Oct 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.