# Expanding a form in a tabless tab panel

**URL:** <https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695>\
**Category:** Classic Servoy\
**Created:** [February 17, 2005, 2:20am UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695 "2005-02-17T02:20:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerryR](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JerryR](https://forum.servoy.com/u/JerryR)\
**Post date:** [February 17, 2005, 2:20am UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/1 "2005-02-17T02:20:49Z")

</div>

I have a form set to ‘List View, Locked’ in a tabless tab panel. I would like to give the user a button option to expand the list vertically. I can get the tabless tab panel to expand, but the form displayed in it stays the same size (it displays the same number of rows in the list). Is there any way to get the form displayed to expand with the tabless tab panel?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 17, 2005, 8:39am UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/2 "2005-02-17T08:39:04Z")

</div>

Not sure what you try to do here.  
You want each row of the list also to expand? Or just that you can see more rows, thus making the list higher?

The latter is possible by defining the anchors on the tab-less tab panel.  
Just anchor it at top, bottom, left and maybe right. This will resize your tab-panel and therefore show more of the linked form inside that tab-panel.

Hope this helps

---

<div class="post-metadata">

**Author:** ![JerryR](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JerryR](https://forum.servoy.com/u/JerryR)\
**Post date:** [February 17, 2005, 3:41pm UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/3 "2005-02-17T15:41:52Z")

</div>

Robert… My goal is to make more rows visible. Anchoring the bottom of the tabless tab panel produces the desired effect when you resize the entire window (as expected), but has no effect when programatically expanding the size of the tab panel itself, using setSize. More thoughts?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 17, 2005, 7:49pm UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/4 "2005-02-17T19:49:14Z")

</div>

Ahh I see what you mean now.  
Indeed it doesn’t reload the (un)related form. Also using application.updateUI() doesn’t help.  
I did some testing and found that switching forms did the trick to force the tabpanel to load the (un)related form correctly.

Here is some example code:

```auto
var myObject = elements.myTabpanel;
myObject.setSize(myObject.getWidth(), myObject.getHeight()+20);
application.showForm(forms.myOtherForm);
application.showForm(forms.myCurrentForm);

```

Hope this helps

---

<div class="post-metadata">

**Author:** ![JerryR](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JerryR](https://forum.servoy.com/u/JerryR)\
**Post date:** [February 17, 2005, 7:57pm UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/5 "2005-02-17T19:57:33Z")

</div>

Thanks, Robert. I’ll give that a try.

---

<div class="post-metadata">

**Author:** ![JerryR](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JerryR](https://forum.servoy.com/u/JerryR)\
**Post date:** [February 17, 2005, 8:40pm UTC](https://forum.servoy.com/t/expanding-a-form-in-a-tabless-tab-panel/3695/6 "2005-02-17T20:40:01Z")

</div>

Robert…As it turns out, you don’t need to show another form. It works just to do an ‘application.showForm(forms.myCurrentForm);’ after enlarging the tabless tabpanel. Thanks for putting me on the right track.
