Window dock
#1
Posted 22 August 2007 - 02:27 PM
How can I dock the GUI to one side of screen (like TaskBar)??
Plz help
Thanks
#2
Posted 22 August 2007 - 03:03 PM
http://www.autoitscript.com/forum/index.ph...st&p=345063
http://www.autoitscript.com/forum/index.ph...st&p=160851
#3
Posted 22 August 2007 - 03:13 PM
#4
Posted 22 August 2007 - 03:31 PM
#5
Posted 22 August 2007 - 03:50 PM
#6
Posted 22 August 2007 - 04:05 PM
#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $ParentWinTitle="Dock to Screen edges" $ParentWin = GUICreate($ParentWinTitle, 160, @DesktopHeight, 0, 0) $Label1 = GUICtrlCreateLabel("Example GUI Docks to Screen", 4, 32, 149, 17, $SS_SUNKEN) WinSetOnTop($ParentWinTitle,'',1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch _KeepDocked() Sleep(10) WEnd Func _KeepDocked() WinMove($ParentWin,'',0,0) EndFunc
I'm actually surprised that there isn't a UDF for docking GUIs to the Screen. Maybe that's just surprising to me.
Edited by JohnBailey, 22 August 2007 - 04:06 PM.
#7
Posted 22 August 2007 - 04:09 PM
#8
Posted 22 August 2007 - 04:37 PM
#9
Posted 22 August 2007 - 04:44 PM
Did you read what I wrote about the steps you might want to take from where the script I started? Maybe I wasn't clear on those things. If you run the script as it is, there will be all sorts of undesirable things.
#10
Posted 22 August 2007 - 04:45 PM
#11
Posted 22 August 2007 - 04:46 PM
Yes I read what you did wrote
#12
Posted 22 August 2007 - 04:58 PM
If this is the case, I'd suggest using API of some kind. I looked on msdn a bit but couldn't find anything specific. I'm sorry I don't know how to do this. I'm surprised no one has come around and slapped me for my ineffective ideas.
I don't know how to get the knowledge-ones on here to look at this issue. It's a good idea. I think the answer lies in API of somekind that is in windows. Programs can do this (as you obviously know). I just don't know how to do it. Sorry, I just thought I'd through my half-baked ideas out here to see if it inspired you toward something truly insightful.
#13
Posted 22 August 2007 - 04:59 PM
#14
Posted 22 August 2007 - 05:12 PM
Yes, one way is to resize and move windows.. but what about icons(on desktop)?!
I was looking for a function in user32.dll wich can do that.. but no result..
#15
Posted 22 August 2007 - 06:59 PM
Thanks
Yes, one way is to resize and move windows.. but what about icons(on desktop)?!
I was looking for a function in user32.dll wich can do that.. but no result..
Actually if you can use whatever things like Folders in Windows Docked and GoogleDesktop, then you wouldn't have to move the windows or the icons because everything would automatically move for you. That's what I was attempting to explain with my giberish about APIs.
#16
Posted 23 August 2007 - 03:34 PM
Probably need a little guidance. I could ask one of my "mentors" (
Edited by JohnBailey, 23 August 2007 - 03:35 PM.
#17
Posted 23 August 2007 - 03:51 PM
Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
#18
Posted 23 August 2007 - 04:00 PM
Now time for some more "reverse engineering"
way exciting
:runs off excited like a mad scientist:
#19
Posted 23 August 2007 - 04:13 PM
#20
Posted 23 August 2007 - 06:25 PM
Something like: http://www.autoitscript.com/forum/index.php?showtopic=25790 ?
No, it isn“t that what I whant ... :-(
I whant to do this:
I whant to dock my GUI like google's
Edited by janci, 23 August 2007 - 06:38 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





