strate Posted December 20, 2005 Share Posted December 20, 2005 How do I make a full screen gui that takes in account the height of the taskbar? I have a program that will be ran on different pc and want the gui to look the same on each one. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
BigDod Posted December 20, 2005 Share Posted December 20, 2005 How do I make a full screen gui that takes in account the height of the taskbar? I have a program that will be ran on different pc and want the gui to look the same on each one.Try this #include <GUIConstants.au3> $taskbar = WinGetPos("","Notification Area");taskbar x,y,width,height $x = @DesktopWidth $y = @DesktopHeight - $taskbar[3] GUICreate("My GUI",$x,$y,0,0) GUISetState (@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
strate Posted December 21, 2005 Author Share Posted December 21, 2005 (edited) #include <GUIConstants.au3> $Start_Bar = ControlGetPos('','Start',40965) $Main_App = GUICreate('Label Application',@DesktopWidth,@DesktopHeight - $Start_Bar[3]-25) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Exit Thanks you started me in the right direction. I'm not sure why but getting the size of the bar never crossed my mind. I've found that this works better for me. Another question, would it be possible to change the size of the gui after it is created; without recreating the whole thing? I know that I need to place it in the loop, something like guisetsize, lol. Last one, is it possible to maxmize a gui like you can other programs? Currently when I maximize, it covers the taskbar, which i do not want; ideas? Edited December 21, 2005 by strate INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
seandisanti Posted December 22, 2005 Share Posted December 22, 2005 #include <GUIConstants.au3> $Start_Bar = ControlGetPos('','Start',40965) $Main_App = GUICreate('Label Application',@DesktopWidth,@DesktopHeight - $Start_Bar[3]-25) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Exit Thanks you started me in the right direction. I'm not sure why but getting the size of the bar never crossed my mind. I've found that this works better for me. Another question, would it be possible to change the size of the gui after it is created; without recreating the whole thing? I know that I need to place it in the loop, something like guisetsize, lol. Last one, is it possible to maxmize a gui like you can other programs? Currently when I maximize, it covers the taskbar, which i do not want; ideas?for re-sizing the gui, that can be accomplished using WinMove(). For the other question about fullscreen - taskbar height, there is actually a recent thread (last 10 days) in this forum that has code to do exactly that. Link to comment Share on other sites More sharing options...
strate Posted December 22, 2005 Author Share Posted December 22, 2005 Would you be able to link me to it? I just looked at every topic back to thanksgiving, and found nothing. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Valuater Posted December 22, 2005 Share Posted December 22, 2005 (edited) its in the help file on your computeron your computer press the followingStart > All Programs > Autoit v3 > Autoit Help Filewhen that loads then press the "search" tabthen type in "?your search?" and press "List Topics"search for "WinMove".... should be first on the list*********************the link for the taskbar is herehttp://www.autoitscript.com/forum/index.ph...st=0&p=1327648) Edited December 22, 2005 by Valuater Link to comment Share on other sites More sharing options...
seandisanti Posted December 22, 2005 Share Posted December 22, 2005 Would you be able to link me to it? I just looked at every topic back to thanksgiving, and found nothing.lol, not laughing at you, but at myself. i had the forum up in 2 windows, and in one i saw this thread with no responses, and in the other i'd seen Bigdod's code to size the window. Link to comment Share on other sites More sharing options...
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