AutoHotkey Community

It is currently May 27th, 2012, 4:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: [function] DockA 1.0
PostPosted: October 19th, 2009, 8:42 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade

_________________
Image


Last edited by majkinetor on October 19th, 2009, 9:46 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 9:11 am 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
The download-Side doesnt work for me....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 9:47 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
fixed

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 9:48 am 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 8:20 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Function parameters were badly documented. Fixed.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2010, 8:18 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 1st, 2010, 9:12 am 
DockA bug reported in Forms Framework thread here:
http://www.autohotkey.com/forum/post-380260.html#380260


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2010, 7:28 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2010, 2:58 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Yes, its a bug.
Thx.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2010, 4:29 pm 
Offline

Joined: December 30th, 2010, 9:50 am
Posts: 15
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 ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2010, 7:47 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Yes

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2011, 8:45 pm 
Offline

Joined: April 19th, 2010, 10:22 pm
Posts: 145
Location: Mobile, AL
Very useful majkinetor, thanks :-)

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 :-)

**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

_________________
Image
Macro Everything
Lucid_Method Index


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2011, 7:21 am 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group