AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[function] DockA 1.0

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Oct 19, 2009 7:42 am    Post subject: [function] DockA 1.0 Reply with quote


_________________


Last edited by majkinetor on Mon Oct 19, 2009 8:46 am; edited 1 time in total
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Mon Oct 19, 2009 8:11 am    Post subject: Reply with quote

The download-Side doesnt work for me....
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Oct 19, 2009 8:47 am    Post subject: Reply with quote

fixed
_________________
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Mon Oct 19, 2009 8:48 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Oct 21, 2009 7:20 am    Post subject: Reply with quote

Function parameters were badly documented. Fixed.
_________________
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Tue Feb 23, 2010 7:18 pm    Post subject: Reply with quote

I see this not get so many comments so I add one:


WAY NICE!!!!



This is nicely coded function.



Edit: Couple of small possible bugs:

You are using STATIC variables to save global toggle states. This is not a good idea. You should use LOCAL variables instead.
_________________
Joyce Jamce
Back to top
View user's profile Send private message
guest3456
Guest





PostPosted: Wed Sep 01, 2010 8:12 am    Post subject: Reply with quote

DockA bug reported in Forms Framework thread here:
http://www.autohotkey.com/forum/post-380260.html#380260
Back to top
specter333



Joined: 15 Jan 2007
Posts: 527

PostPosted: Tue Dec 28, 2010 6:28 am    Post subject: Reply with quote

I love DockA. It's so easy to use and works great.

I found what I think may be a bug while trying to call DockA as a library. I'm new to scripting so it may not be a bug.

Line 89
Code:
ifEqual, %HHost%,,return

I changed to
Code:
ifEqual, HHost,,return


When trying to call as a library I got the "This dynamic variable is blank..." error message. Removing the "%" has it working so far for my script.

Thanks for a great app.
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Dec 28, 2010 1:58 pm    Post subject: Reply with quote

Yes, its a bug.
Thx.
_________________
Back to top
View user's profile Send private message
Chance



Joined: 30 Dec 2010
Posts: 15

PostPosted: Thu Dec 30, 2010 3:29 pm    Post subject: Reply with quote

Ok, so as the documentation of DockA.ahk said :
Quote:
Using dock module you can glue windows to an AHK window.


So Majikinetor, if I want to glue a AHK script to a third part windows (i.e. notepad window) i have to use your other dock script, Dock.ahk, right ?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Thu Dec 30, 2010 6:47 pm    Post subject: Reply with quote

Yes
_________________
Back to top
View user's profile Send private message
Lucid_Method



Joined: 19 Apr 2010
Posts: 145
Location: Mobile, AL

PostPosted: Wed Mar 09, 2011 7:45 pm    Post subject: Reply with quote

Very useful majkinetor, thanks Smile

I have a 2 part question as I might not be taking the best approach to begin with. I am working on a tool that needs to be able to build GUI's dynamically, meaning I'm reading an INI file that has the coordinates for a collection of buttons that I'm turning into a GUI. To do this I have my main window that loads, then I read the INI file and generate the 2nd GUI. I want the 2nd gui to look/act as if it was built into main window.

I'm not sure if this is the best approach but it seems to work - where i build my main gui and then I generate the 2nd gui, using DockA to attach 2nd to the first and using the +owner1 config to make the 2nd window act like its part of the first. Is there a better way to build and attach a 2nd gui to the first gui using built in AHK functionality? If not this way works fine.. but comes my 2nd question ---

I can build the 2nd gui and attach it where I want it just fine when the 1st gui starts in a specific location on screen. I have the 2nd gui building at coordinate starting at 0,0 on the screen, so if the main window is moved to another monitor when it builds the 2nd gui it draws on the first monitor initially. Moving the main window forces the 2nd gui to reposition exactly where I want it to be positioned. I recognize that I could determine the window position of the first window before drawing the 2nd gui and adjust for the positioning that way, but it seems like it would be easier if I knew how to force DockA to automatically act as if I had just moved the main window - forcing DockA to move the 2nd gui to where I want it in relation to the main window.

Hopefully that makes sense - thanks Smile

**Edit** It looks like I can just move the main window by 1x coordinate and back quickly and that forces the redraw which will work, but the question still stands as to if this is the best approach?? Thanks
_________________

Macro Everything
Lucid_Method Index
Back to top
View user's profile Send private message Visit poster's website
guest3456
Guest





PostPosted: Thu Mar 10, 2011 6:21 am    Post subject: Reply with quote

you can check the bug link i posted earlier in this thread, when you go to the link, also read the next few posts, i had a similar problem with the docked window not 'attaching' itself until i dragged it, and i posted a quick solution to send WM_MOVE if you dont want to move 1 pixel and back
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group