Tab control resize (1 Viewer)

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
How can resize tab control to each control press.If press tap1,tab control height = 1000.If i press tab2,tab control height = 500
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:01
Joined
Oct 29, 2018
Messages
21,531
I think tab control height affects all tabs, no? If so, might consider using labels or buttons instead.
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
I want if press tab1,the height of the tab control to change.If press tab2 height change
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:01
Joined
May 7, 2009
Messages
19,246
If there are more controls (downward) on tab1, you cant resize tab2.
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
Yes i have controls downward on tab1.Ok thank you
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
Something like that
 

Attachments

  • Screenshot (17).png
    Screenshot (17).png
    173.9 KB · Views: 207
  • Screenshot (18).png
    Screenshot (18).png
    66.5 KB · Views: 201

GPGeorge

George Hepworth
Local time
Today, 09:01
Joined
Nov 25, 2004
Messages
1,980
Discussing the problem in the abstract isn't very precise. What are you trying to accomplish in the relational database application involved?
If manipulating a tab control's dimensions seems like a good idea, perhaps there's another aspect to it that needs to be considered, i.e. why is that useful?

----
Speak and ye shall receive. ;)

But that looks suspiciously like a web page to me. And I don't see how a tab control is illustrated.
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
That i ask.If like the webpage cant do in access
 

GPGeorge

George Hepworth
Local time
Today, 09:01
Joined
Nov 25, 2004
Messages
1,980
That's a different kind of proposition. To be honest, the amount of work required is outside the scope of my motivation, but I know there are interface design specialists who'll devote a lot of time to such an idea. Let them have at it.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:01
Joined
Oct 29, 2018
Messages
21,531
Hi. Are we talking about resizing multiple tab controls or just the tabs in a single tab control? The image you showed is already a standard behavior in Access. There are no controls below the tab control in your image, so it's not the same as your earlier description. If you're trying to move up the controls below the tab control when the tab page is empty, then you can do what Arnel suggested earlier - resize the tab control.
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
In tab1 have some fields like image 1.In other tab i have some fields like image 2.If i can resize when select ta2 the height of tab control near the fields.Sorry for bad english
 

Attachments

  • Screenshot (19).png
    Screenshot (19).png
    201.9 KB · Views: 147
  • Screenshot (20).png
    Screenshot (20).png
    45.4 KB · Views: 137

Pat Hartman

Super Moderator
Staff member
Local time
Today, 12:01
Joined
Feb 19, 2002
Messages
43,457
Forms should be designed so that they fit in their entirety on the screen. You should never have to scroll horizontally - ever. The only vertical scrolling should be to show additional records in a continuous form.
 

isladogs

MVP / VIP
Local time
Today, 17:01
Joined
Jan 14, 2017
Messages
18,261
The height of tab controls can never be smaller than the position of the 'bottom control' on any of the pages.
So. if you want to make your tab control smaller, you will need to move one or more controls up.

Theoretically, you could do that in code when moving to a new page and then move them back again when you re-open the relevant page.
However, I think that would be a lot of work for minimal benefit...even if you can get it to work.
 

GPGeorge

George Hepworth
Local time
Today, 09:01
Joined
Nov 25, 2004
Messages
1,980
I think it's important that we not lose sight of the fact that the interface you see in a web browser, i.e. the screen shots you have posted, is very different from that in Access. While it is possible to implement many elegant designs in the Access interface, they'll never be the same.
Perhaps tab controls aren't the right approach here at all. I can't see how you could implement that without a significant investment that may or may not pay off.

What is the end goal?

WHY would you want to do that?

Is it simply to emulate the web page, or is there a business reason which can be articulated?
 

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
Just want to put in my base some effect.Thank you all
 

CJ_London

Super Moderator
Staff member
Local time
Today, 17:01
Joined
Feb 19, 2013
Messages
16,663
another option is to set the tab border to transparent. You'll lose the border around the tabs. If you want them then also set the back to transparent and put boxes around the tabs. Very simple example attached
 

Attachments

  • tabs.accdb
    348 KB · Views: 148

theDBguy

I’m here to help
Staff member
Local time
Today, 09:01
Joined
Oct 29, 2018
Messages
21,531
Just want to put in my base some effect.Thank you all
Are you talking about something like this? If so, I am not sure what would be a good use of it.

1648405194958.png
1648405226181.png
 
Last edited:

mikekal

Member
Local time
Today, 09:01
Joined
Jun 24, 2017
Messages
114
Yes that i mean.I cant understand where is the code in example
 

Users who are viewing this thread

Top Bottom