| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Mon Oct 19, 2009 7:42 am Post subject: [function] DockA 1.0 |
|
|
_________________

Last edited by majkinetor on Mon Oct 19, 2009 8:46 am; edited 1 time in total |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Mon Oct 19, 2009 8:11 am Post subject: |
|
|
| The download-Side doesnt work for me.... |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Mon Oct 19, 2009 8:47 am Post subject: |
|
|
fixed _________________
 |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Mon Oct 19, 2009 8:48 am Post subject: |
|
|
| Thanks! |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Wed Oct 21, 2009 7:20 am Post subject: |
|
|
Function parameters were badly documented. Fixed. _________________
 |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 561 Location: Galil, Israel
|
Posted: Tue Feb 23, 2010 7:18 pm Post subject: |
|
|
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 |
|
 |
guest3456 Guest
|
|
| Back to top |
|
 |
specter333
Joined: 15 Jan 2007 Posts: 527
|
Posted: Tue Dec 28, 2010 6:28 am Post subject: |
|
|
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Tue Dec 28, 2010 1:58 pm Post subject: |
|
|
Yes, its a bug.
Thx. _________________
 |
|
| Back to top |
|
 |
Chance
Joined: 30 Dec 2010 Posts: 15
|
Posted: Thu Dec 30, 2010 3:29 pm Post subject: |
|
|
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Thu Dec 30, 2010 6:47 pm Post subject: |
|
|
Yes _________________
 |
|
| Back to top |
|
 |
Lucid_Method
Joined: 19 Apr 2010 Posts: 145 Location: Mobile, AL
|
Posted: Wed Mar 09, 2011 7:45 pm Post subject: |
|
|
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 _________________
Macro Everything
Lucid_Method Index |
|
| Back to top |
|
 |
guest3456 Guest
|
Posted: Thu Mar 10, 2011 6:21 am Post subject: |
|
|
| 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 |
|
 |
|