On opening Windows Terminal (Preview), part of the window is below the taskbar. When I move the application window to a desired position on screen and re-open the application, it is not at the previous position, which I had set by dragging the window.
In the profile.json settings file, there is no option to set the default window location.
How do keep the window position from previous session, as I don't want to drag the window every time I open the application?
Restoring the previous position is not possible yet, but as of https://github.com/microsoft/terminal/releases/tag/v0.6.2951.0 you can set an initial position for new windows:
"initialCols": 120,
"initialRows": 60,
"initialPosition": "2400,500", // x,y
Also see https://devblogs.microsoft.com/commandline/windows-terminal-preview-1910-release/.
If you just want to center the terminal then add the following attribute to your terminal's settings.json:
"centerOnLaunch": true,
refer to microsoft docs: center on launch
If you want specific position then add this code instead:
"initialCols": 120,
"initialRows": 60,
"initialPosition": "2400,500", // x,y
Related
I have a floating window that is owned by my app's main frame window. Now, I have created a new frame window and I want to change the owner of the floating window to the new frame window I created. But, I have not been able to find a way to do so.
Essentially, as a user activates either of my frame windows, I want to make the newly activated frame the owner of the floating window.
I tried SetParent hoping if I didn't change the style of the floating window from WS_POPUP to WS_CHILD, that would be a trick that would work but the floating window just fails to display after doing that. And, it is actually becomes a child window in that it shows up when enumerating the child windows of the frame I passed to SetParent.
Is it possible to change the owner of a window after calling CreateEx where I pass in the initial owner?
Is it possible to adjust windows control panel settings from the command line? The settings I'm specifically interested in are the cursor width and blink rate, which can be customized in the Ease of Access Center [1]. I think this is a registry thing, right?
Same as Control Panel Settings from Command Line but I don't think a C# solution will work for me, because what I'm actually trying to do is toggle these cursor settings from AutoHotKey.
[1] https://bltt.org/adjusting-the-windows-text-cursors-blink-rate-and-width/
You can set the blink rate with the SetCaretBlinkTime function and the AHK code might look something like this:
DllCall("User32\SetCaretBlinkTime","Uint",666)
I'm not sure if you can change the width:
The width of the caret, in logical units. If this parameter is zero, the width is set to the system-defined window border width.
You can retrieve the width or height of the system's window border by using the GetSystemMetrics function, specifying the SM_CXBORDER and SM_CYBORDER values. Using the window border width or height guarantees that the caret will be visible on a high-resolution screen.
but on the other hand SystemParametersInfo has SPI_SETCARETWIDTH but it is only documented to work on edit controls.
I am trying to have finer grained control over my windows maximize/restore behaviour. When I restore I want to position and size the window myself overriding the default windows behaviour where it repositions to the original position.
I currently restore (which moves the window to its original location) and then move it again to the location I want but this results in a jumpy experience. Can I do change window maximize/restore status without moving the window?
Thanks
You could try GetWindowPlacement, modify rcNormalPosition, SetWindowPlacement and finally ShowWindow to restore...
How can TinyTERM's MainWindow be programmically moved using TinyTERM's CScript and/or TinyTERM's TE Object?
I see the CScript language has a MoveWindow function
Void MoveWindow( hWnd, iX, iY, iW, iH bRepaint )
Calls Win32 MoveWindow function.
MoveWindow( hFrame, x, y, w, h, 1 );
Does anyone know how to get the MainWindow's hWnd?
I am using Version 4.42.
TinyTERM Plus Programmers Reference Manual
http://www.centurysoftware.com/docs/TinyTERM_Plus_PRM.pdf
Support Page
http://www.centurysoftware.com/support/index.php
I want to Move the MainWindow because I using another program to launch TinyTERM Plus. Currently TinyTERM starts up in the middle of the screen. I would like to move it on top of the application that launched it. Since I am going to have 4 (or more) applications launching a session of TinyTERM it is going to be confusing to have all the TinyTERM session on top of each other. The user will have to manually move them around.
In TinyTerm .TPX file the following two settings can be used:
xwindow= (Sets the LEFT position of the window)
ywindow= (Sets the TOP position of the window)
This .TPX file is set up in the same format as a .INI file.
This needs to be changed before starting up TinyTerm.
Another setting I used was to change the Window Size:
wwindows= (Change the WIDTH of the window)
hwindows= (Change the HEIGTH of the window)
When this was resized the font also got resized.
This came in handy because the User could define the sized of
the window that started up TinyTerm. Knowing that size allowed
me to set TinyTerm window to the same size.
I have made a GUI in Netbeans. Now I want that the frame size should remain constant, means the user cannot do maximize or restore the frame.
When I go the the frame properties dialog box, I didn't see any property that allow me to set the size of the frame.
I opened the frame properties dialog box by right clicking on the "FrameView" node in the "Inspector" window.
How can I do that?
Uncheck "resizable". That will prevent the user from changing the window size.
Next, set the preferredSize property (if you're using java.awt.Frame instead of JFrame set the minimumSize property instead).