Good morning (or afternoon or evening),
As some of you may know, I am in the process of converting an old Access application to Servoy. We make extensive use of tabbed interfaces in the original system, and want to make use of that in Servoy as well. I would like to create a tabpanel that has, say, 2 rows of tabs, with equal sized tabs across the tabpanel.
Currently, when I create a tabpanel, the tab size seems tied to the text on the tab, which leads to a sort of unappealing mix of tabs of all different sizes. I have found that I can control the width of the tab somewhat by adding leading and trailing spaces to the tab text, which, if I count spaces correctly, will center the text and increase the size of the tab as needed. I haven’t gotten into creating a second row of tabs yet, but it appears that this just “happens” if the tabs become larger than the width of the tabpanel and scrolling is set appropriately.
I’ve looked in Adrian McGilly’s “Servoy Beginner’s Handbook”, here on Servoy Talk, and in the Version 4 Developer’s Guide (I haven’t been able to locate a Version 5 Developer’s Guide yet, but it’s been a few days since I looked), and so far haven’t found much of any information on how to control this. I also haven’t learned about “styles” yet, and perhaps the answer is there. What I’d like to be able to do is something akin to…
- Give me “x” tabs in “y” rows, and have Servoy calculate the width of the tabs based on the tabpanel size.
- Allow me to control the order of the tabs by a “tab” value of some sort.
- As an alternative, at least control the width of each tab.
I’m certainly no expert on UI design, but it would seem that having a consistent size to the tabs and having a reasonable number of tabs in each row would make the overall look and fell more pleasing and usable. I understand that at some point, you’d need a different sort of interface if the number of tabs becomes to onerous, but up to say, 15 or so in total, should be ok. After that, it may be better to move to something like the interface used in the Eclipse “Preferences” form, although I’m not entirely sure how you’d implement that in Servoy. I think one of the frameworks may do something similar.
So, after all that, I’m wondering what I’ve missed. As always, any help would be greatly appreciated.
Thanks and have a good day.
Ron