Possible to have editor window tabs dynamically resize to fit into view - visual-studio-code

Just to clarify, this question has nothing to do with tabs inside a document. This is about editor tabs (like browser tabs) in Visual Studio Code. When I have more open than the window will show the extras disappear from view. Is there a way to have them automatically resized so they all fit into view the way a web browser would do it?

Should do it:
// Controls the sizing of editor tabs.
// - `fit`: Always keep tabs large enough to show the full editor label.
// - `shrink`: Allow tabs to get smaller when the available space is not enough to show all tabs
at once.
"workbench.editor.tabSizing": "shrink",

Related

Sizing an Access Form window in Design View

I'm working on a form for an Access database I'm putting together. In the Design View I've gotten the area covered with grid to be the right size for the form. When I go to Form View though, there's a ton of empty space on the right & bottom. How do I remove that empty space?
Here's what the form looks like in Design View for context:
Answering Andre's questions:
Popup? Currently yes, but I'm not dead set on that. It's also Modal for what that's worth.
Maximized? No, when I go to Form view it's got at least a couple inches from where the grid space stops in my screenshot though.
Tabbed or Seperate? Not sure I follow. If you're meaning is the Form opened on a tab in the Access main pane or in a seperate window it's seperate.
If it's a separate window (popup or not-maximized), then setting the Form.AutoResize property to Yes should do it.
For some more info ("tabbed document windows" is an option for the current DB), see this answer: https://stackoverflow.com/a/34321906/3820271

Fancybox 2: auto resize the iFrame height for tabbed content

I use Fancybox2 to open an iFrame popup window (content comes from the same website). Within this popup, I have tabbed content (Bootstrap tabs). Each tab has content of different heights.
I am hoping that Fancybox can resize its height accordingly when I click tabs to see content on different heights.
I tried different combinations of autoSiz, autoHeight, etc. Got no success. Googled, and it seems many people asked related questions.
Am I missing something? Or is it doable? I feel this should be an easy configuration.
Thanks!
You may need to trigger the $.fancybox.update() (fancybox v2.x) method after the tab selector event
If using iframes, try parent.$.fancybox.update()
You may also need set fitToView to false

how to add a scrollable toolbar for pdf reader IOS application

I have downloaded the pdf reader from https://github.com/vfr/Reader. This looks great but the bottom page bar or toolbar is stable. It adds all the pages into one single tool bar with out providing any scrolling feature. could someone help me to change this to a scrollable view?
I achieved this by changing the readerpagebar to derive from UIScrollviewController instead of UIViewController and increased the content size of scroll bar to number of images mounted in it. if someone needs further info, I will post the code here.

How to mimic Eclipse Preferences Windows in Delphi 2010 IDE

I'm new to Delphi. I really wanted to build a Preferences Windows in my company legacy system (which uses 'Delphi 2010' today) just like Eclipse's.
I could already mimic almost all the items:
Divided the whole screen in 3 panels (one at the left, one at the right and one at the bottom),
On TTreeView inside the left panel, and one TScrollBox on the panel of the right to be able to scroll things if they don't fit on the window for any reason (low monitor resolution or too much options). Even used a TSplitter between panel on the right and the panel on the left.
Here's what I could get:
My doubt is: what should I do to be able to load multiple options once an item inside the TreeView is selected? What delphi component should I use to mimic all this info in the right panel?
Make a frame for each page. This is kind of a "sub-form" that you can design visually. Create and destroy them at runtime in the appropriate event-handlers of the tree view.
Use a TPageControl. Add a TTabSheet for each group of controls you plan to have — one for each item in the tree control. Set TabVisible := False for each sheet to keep the tabs from appearing at the top of the page control. Each time an item in the tree control is selected, make the corresponding tab sheet visible by setting the page control's ActivePage property. Put controls on the sheets according to the preferences associated with that sheet's category.

Scrolling TabPanel

I Am trying to create a Tab Panel where I can add and delete tabs on demand.
Where I am getting stuck is that if a potential user adds too many tabs the new tabs go off the screen.
Each Tab is to contain a text area widget where a user may enter text.
Is there any way of horizontally scrolling the just the TabBar and not the whole browser window?
I could use a scroll panel but I was hoping to scrol just the Tabs, not the panel contents.
I cannot see any available method in the com.google.gwt.user.client.ui.TabPanel API that will perform this function and no real way to split the panel.
Help!
It's not what you've asked for, but you might consider using a StackPanel instead of a TabPanel, since if the user can enter a long list of items it's generally better to have vertical scrolling instead of horizontal scrolling.
The gwt TabPanel isn't the greatest, and there's not a real easy way to do what you want. You could take a look at the tab widget in Ext-GWT, which scrolls the tabs, but I don't think extjs is generally a good idea.
There's a bunch of new layout-based widgets arriving with GWT 2.0. Look at TabLayoutPanel. It places tabs in a very wide container inside a div with overflow=hidden. You might be able to add some controls to scroll that container and get the effect you want.
Good luck, and report back if you get something working. GWT really needs more widget contributors.