resize a window in Xul - resize

Can anyone tell me that how can i resize a window in XUL.I tried resizable but it is not working.

To make the window manually resizable, you use what you tried - 'resizable'
var myWin = window.openDialog('chrome://myapp/content/mywindow.xul','mywindow','centerscreen,chrome,resizable,dialog=no',{});
To resize it programmatically, try the functions ResizeTo or ResizeBy

resizeBy ( width, height )

Related

Label with Auto Length increment as per need but not width

I'm stuck on a code where I need to make Label AutoSize with fixed width. I've tried
Label1.AutoSize = True
Label1.MaximumSize = (FixedWidthInteger,0)
but its still not resizing the length when text if overflow. I've tried to make Panel also AutoSize Enabled to let Label resizing itself but both ways doesn't work. Thank you if you can help me with this please.
Its fixed. I just change the Anchor to all sides of the Panel and its resizing well now.

Textbox scroll to bottom in Avalonia

I have a textbox that I write info to that automatically creates a scroll bar when the screen is filled, and I'd like to scroll to the bottom of it. It seems like what I need to do is set the scrollbar Offset to some vector, but my problem is finding the ScrollViewer.
I can't use FindControl because it's not named anywhere in the xaml, and I can only change a few values using textbox.SetValue
The only way to scroll a TextBox currently is to set the CaretPosition. For example to scroll to the end of the text you could use:
textbox.CaretIndex = int.MaxValue;
For me it works only when I set textbox.CaretIndex to the length of the text. Assuming that property Logs (string type) is binded to textbox I used this
textbox.CaretIndex = Logs.Length

Autohotkey to resize window with child windows

I use FrontPage 2003 for linking html files, through the command 'Insert' > Hyperlink.
And the window opens as follows:
I made a script with Autohotkey to resize the window, so I see more of the files in the 'current folder' (I think the class is SysTreeView32), but it doesn't apply to the child windows (I guess it is called mdichild), it shows as follows:
What I need is to make the script resizes the window and all the child windows.
The current scrip is:
#NoEnv
ResizeWin(Width = 0,Height = 0)
{
WinGetPos,X,Y,W,H,A
If %Width% = 0
Width := W
If %Height% = 0
Height := H
WinMove,A,,%X%,%Y%,%Width%,%Height%
}
#!u::ResizeWin(800,800)
From the screenshot, it looks like the resize is working.
Unfortunately, there are some windows that just don't resize properly. I assume that if you use your mouse, you can't resize it manually either. This is especially prevalent for older programs.
The only way of resizing individual controls, would be to use the ControlMove command.
However, in order to use this command, the control must be able to be detected. This would be either as ClassNN, control name, or HWND (window handle).

How to remove the 'resize triangle' from StatusStrip in VB.NET

I have a Form with a StatusStrip component docked at the bottom. The form has fixed width and is not resizable. However the StatusStrip has a little 'resize triangle' at the right (6 little dots).
This gives the impression that the window is resizable. How can I remove it?
Set the SizeGripStyle to Hide in the designer
or programatically with:
yourForm.SizeGripStyle = Windows.Forms.SizeGripStyle.Hide
Edit: Maybe it's the same as mentioned here
From Stefanos's comment, do this:
statusStripObject.SizingGrip = False

Scroll panel based on mouse position in VB.NET

I'm trying to make an autoscroll enabled panel that will scroll if the mouseposition.x > panel.location.y
However, I cannot seem to find a panel.scroll() function. Is there a way to programable make the control scroll?
Thanks
panel.VerticalScroll.Value = 50
and
panel.HorizontalScroll.Value = 50
you can use
panel.VerticalScroll.Minimum, panel.VerticalScroll.Maximum,
panel.HorizontalScroll.Minimum, panel.HorizontalScroll.Maximum
to check max and min values