Sign in to follow this  
Followers 0
simbo

Windows Vista Sidebar

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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

Matt

You 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 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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0