When working with split windows, I often make use of the command to size all windows equally. However, I also use mini buffer explorer in a vertical window, which I want to keep to a maximum width of 25. Is there any way I can configure vim so that either the mini buffer explorer window does not get re-sized or it stays at a maximum width of 25?
Thanks!
You can do
:set winfixwidth
in the window that you want to stay the same.
See
:help winfixheight
:help winfixwidth
Here is a part of minibufexpl.vim:
" If you would like a vertical explorer you can assign the column
" width (in characters) you want for your explorer window with the
" following .vimrc variable (this was introduced in 6.3.0):
"
" let g:miniBufExplVSplit = 20 " column width in chars
"
" IN HORIZONTAL MODE:
" It is now (as of 6.1.1) possible to set a maximum height for
" the -MiniBufExplorer- window. You can set the max height by
" letting the following variable in your .vimrc:
"
" let g:miniBufExplMaxSize = <max lines: defualt 0>
"
" setting this to 0 will mean the window gets as big as
" needed to fit all your buffers.
This should help to solve your problem.
Related
I have a Word macro that changes the orientation and page size of an individual page to accommodate the image placed on the selected page. My existing macro code does the page and footer resizing correctly (footers are based on our existing footer styles), but I'd like to enhance the code to display the height and width of the selected image before the userform appears to help guide the user's page size choice.
The user could get that information by right-clicking the image, choosing "Picture...", and selecting the "Size" tab in the "Format Object" window, but I am trying to have the height/width displayed as part of the macro instead of asking the user to follow those steps.
Editors in my department sometimes encounter documents in which an image has been placed on a page that is not wide enough to accommodate the entire image, resulting in part of the image being "cut off." My plan has been to have the user select the image on the Word page, then run the macro; the image's height and width (in inches, ideally) should be displayed prior to the user to selecting the optimal page size.
I've tried working with Selection.ShapeRange or Selection.InlineShapes, but I haven't yet been able to get the current height and width of the selected image. Any help will be greatly appreciated.
Thank you,
KRS
Here's how I opted to handle this:
My macro was designed to start with the user selecting an inline shape on the Word page. With that selection, I start by setting variables for the selection's width and height in points, convert to inches, and display the results in a MsgBox:
myHeightPoints = .Height
myWidthPoints = .Width
`Convert the previously established variable to inches`
`Dim myHeightInches As Double
Dim myWidthInches As Double
myHeightInches = myHeightPoints / Application.InchesToPoints(1)
myWidthInches = myWidthPoints / Application.InchesToPoints(1)
`Trim the result to 2 decimal places`
Dim myHeightDisplay
Dim myWidthDisplay
myHeightDisplay = Format(myHeightInches, "#.00")
myWidthDisplay = Format(myWidthInches, "#.00")
`Display the result`
MsgBox ("The selected image is " & myHeightDisplay & " H X " & myWidthDisplay
& " W" & Chr(13) & "Choose a page size that accomodates the figure and its caption.")
My dashboard consist of 10 sub-reports. And some of those sub-reports are several pages.In a page footer of a dashboard I entered expression in a textbox:
="Page " & Globals!OverallPageNumber & " of " & Globals!OverallTotalPages
which gives me the page number, but how can I move this to the right corner?
As you can see on a below picture the expression already further right than even sub-report itself. What else can I do?
This is my report properties for the Dashboard:
It looks like the table you have is a Matrix with Column grouping. The grouping is expanding and pushing the width but unfortunately, that doesn't push the footer out.
Since you can't make the position dynamic, you'll have to figure out where the sub report page ends and extend the main report's width to fit the page number.
It looks like the first column is 4 inches wide and the matrix columns are 2 inches wide. I would put the text box at 15 inches and make it 1 inch wide.
i have dynamically created textbox i want to increase margin between them for, if i increase the font size they will not overlap each other. is there any properties which i can use . i already used
txtbox.top = txtbox.top +5
but it is pushing all text boxes to down i want to increase gap between text boxes
for i = 0 to pnl.controls.count-1
pnl.controls(textboxD & i).top = pnl.controls(textboxD & i).top +5
next
i am using above code for moving toolboxes. thank you in advance
In the VB.NET VS2005 IDE I size this form's height to 180.
When I run this code it displays A150 B150 C180. (Not sure where the 150 comes from... or why it changes later.)
The form is still correctly displayed as 180 tall.
If I move the form's left or top position... this will change to A150 B150 C150
The form is incorrectly displayed as 150 tall
Debug.Print("A " & frmMy.Height)
frmMy.Left = 11 ' Changes to LEFT or TOP decreases the form's height by 30???
'frmMy.Top = 2
Debug.Print("B " & frmMy.Height)
Call frmMy.ShowDialog()
Debug.Print("C " & frmMy.Height)
Do I have something set in the VS2005 IDE that says "if you reposition this form... change its height too???
I was able to replicate similar behavior by setting AutoSize to True and AutoSizeMode to GrowAndShrink. Check if these settings were turned on inadvertently.
I am unable to change my button text to "&" .
Button1.text = "&"
When I run the program button has no text.
What could be the problem ?
The "&" character is used to indicate short-cut keys.
To display the & itself, use it two times ("&&").
The problem is that & is used to make a keyboard Alt shortcut (eg. "&a" would make an Alt+a shortcut for that button), so you need to use two ampersands && and it should work.