simbo Posted August 4, 2008 Posted August 4, 2008 Hi All I have a program with a GUI that looks something like this:- $window_styles=BitOR($WS_CAPTION, $WS_SYSMENU, $WS_THICKFRAME, $WS_MINIMIZEBOX) $my_GUI=guicreate("Matt's Program",1,1,-1,-1,$window_styles) GUISetState (@SW_SHOW) GUISetState (@SW_MAXIMIZE) I though that Vista would place my window to the left hand side of the sidebar, but instead my window fills the whole screen and the sidebar is on top of my window, thus obscuring the right hand side of my window. Apart from declaring the window width, how do I solve this? Many thanks in advance Matt
AdmiralAlkex Posted August 4, 2008 Posted August 4, 2008 I can't currently check this because my vista-computer is without any motherboard but unless I remember wrong you need to set the Sidebar to be "always on top". Without that applications can get behind and infront of it. I think you rightclicked or went to it's settings for that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
simbo Posted August 4, 2008 Author Posted August 4, 2008 I can't currently check this because my vista-computer is without any motherboard but unless I remember wrong you need to set the Sidebar to be "always on top". Without that applications can get behind and infront of it.I think you rightclicked or went to it's settings for that.Thanks for that Alkex. I see what you mean.I don't have a Vista computer. The program is on a client's machine and he assures me that when he opens programs like Word etc, or even just My Documents, that they appear to the left of the Sidebar. Apparently it's only my program that goes under the sidebar.Has anyone else found this?Matt
AdmiralAlkex Posted August 4, 2008 Posted August 4, 2008 I would love to help you when I get my computer working but that could take days-weeks so I hope someone else can help you. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Achilles Posted August 5, 2008 Posted August 5, 2008 Try style as this: $window_styles=BitOR( $WS_SIZEBOX,$WS_SYSMENU,$WS_MAXIMIZEBOX) My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
martin Posted August 5, 2008 Posted August 5, 2008 (edited) Hi All I have a program with a GUI that looks something like this:- $window_styles=BitOR($WS_CAPTION, $WS_SYSMENU, $WS_THICKFRAME, $WS_MINIMIZEBOX) $my_GUI=guicreate("Matt's Program",1,1,-1,-1,$window_styles) GUISetState (@SW_SHOW) GUISetState (@SW_MAXIMIZE) I though that Vista would place my window to the left hand side of the sidebar, but instead my window fills the whole screen and the sidebar is on top of my window, thus obscuring the right hand side of my window. Apart from declaring the window width, how do I solve this? Many thanks in advance MattYou can set the maximum and minimum size for a window like this GUIRegisterMsg($WM_GETMINMAXINFO, "MY_WM_GETMINMAXINFO") Func MY_WM_GETMINMAXINFO($hWnd, $msg, $WParam, $LParam) $structmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $LParam) DllStructSetData($structmaxinfo , 7, $minwid); min X DllStructSetData($structmaxinfo , 8, $minht); min Y DllStructSetData($structmaxinfo , 9, $maxwid); max X DllStructSetData($structmaxinfo , 10, $maxht); max Y EndFunc Remember to put the line GuiRegisterMsg before the line GUISetState (@SW_MAXIMIZE) Edited August 5, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now