 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sun Aug 27, 2006 8:12 pm Post subject: |
|
|
Thanks a lot.
Your ingenious idea is used without any change. I just made a different GUI. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
MsgBox Guest
|
Posted: Sun Aug 27, 2006 11:58 pm Post subject: |
|
|
| MsgBox wrote: | Hello toralf
Wow.
This is great! Thank you for posting it.
I have been using Scriptlet Library2 but found it very hard to maintain and organise, but now things are going to be much easier.
Again I thank you.
I have two suggestions if you don't mind (both of which you are free to ignore!).
1:- Is it possable to limit the amount of stretching the listview does when resizing the window? When I name my snips I tend to use short descripive names for them, so not much space is needed. On resizing there is a lot of white space in the listview that I would prefer to be in the edit field. I tried, unsuccessfully in version 2 and ended up having to have a fixed width window.
2:- Do you think that it would be a good idea for people to post their snips ini here? (maybe starting with you? mine isn't very impressive ) I think that it would be very beneficial to the community as a whole, and users asking for code in the Help section to do this that and the other could be pointed in this direction. A master ini could be maintained, how useful would that be? Plus Scriptlit Library would get even more exposure.
Again, thanks Toralf. |
I forgot,
Thank you too Rajat. |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Tue Aug 29, 2006 12:27 am Post subject: |
|
|
you are most welcome! _________________
 |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Wed Aug 30, 2006 5:56 pm Post subject: |
|
|
Hello toralf
I have some requests
In no particular order:
1:- An option to choose the font and size.
2:- An option to turn off the roll up window feature.
3:- A button or menu entry to backup the ini.
4:- Deeper levels in the TreeView.
Thanks.
Also I have been playing with the layout as there was too much wasted space at the top of the window. I moved all of the controls to the top right above the treeview, they might look better below but I haven't tried.
Keep in mind that my treeview is fixed size when reviewing!!
Here for your thoughts. Feel free to modify/reject etc.:
| Code: | BuildGui:
Gui, 1:+Resize
Gui Margin, 3, 3
Gui, 1:Add, Button, w15 Section vBtnAddGroup gBtnAddGroup, +
Gui, 1:Add, Edit, x+3 ys+1 w190 vEdtGroupName gEdtGroupName Disabled,
Gui, 1:Add, Button, w15 x+3 ys vBtnRemoveGroup gBtnRemoveGroup Disabled, -
Gui, 1:Add, Button, w15 xs vBtnAddScriptlet gBtnAddScriptlet Disabled, +
Gui, 1:Add, Edit, x+3 yp+1 w190 vEdtScriptletName gEdtScriptletName Disabled,
Gui, 1:Add, Button, w15 x+3 yp-1 vBtnRemoveScriptlet gBtnRemoveScriptlet Disabled, -
Gui, 1:Add, DropDownList, xs w128 vDdbScriptletInGroup gDdbScriptletInGroup Sort Disabled,
Gui, 1:Add, Button, x+3 yp-1 vBtnCopyToClipboard gBtnCopyToClipboard Disabled, Copy to &Clipboard
Gui, 1:Add, TreeView, xs w226 h500 vTrvScriptlets gTrvScriptlets ;Section
GoSub, ReadDataFromIni
;select first scriptlet
TV_Modify(TV_GetChild(TV_GetNext()), "Select")
Gui, 1:Font, , ProggyCleanTT s11 ;Courier
Gui, 1:Add, Edit, ys w500 h577 Multi T8 vEdtScriptletData gEdtScriptletData,
Gui, 1:Show, %Gui1Pos%, %ScriptName%
Gui, 1: +LastFound
Gui1UniqueID := "ahk_id " . WinExist()
;restore old size
WinMove, %Gui1UniqueID%, , , , %Gui1W%, %Gui1H%
;roll window up and down with right mouse click or mouse move into title
GuiRolledUp := False
WM_RButtonDOWN = 0x204
OnMessage(WM_RBUTTONDOWN , "RollUpDownGui1")
WM_MButtonDOWN = 0x207
OnMessage(WM_MBUTTONDOWN , "ToggleOnTopGui1")
Return |
|
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Wed Aug 30, 2006 10:30 pm Post subject: |
|
|
Hi MsgBox,
all of the above (except one) will be available in next release.
Deeper levels will not be available. Since it would require a lot of recoding. And I do not see the benefit over the work required.
You could imitate it by specifying group names which are like "Upper Level - Lower Level".
And since you prefer to have only a little space for the tree view, how can you deal with the "free" space infront of the first level? Imagine there would be one level more! :) *jk* _________________ Ciao
toralf  |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Thu Aug 31, 2006 12:42 am Post subject: |
|
|
| Quote: | | all of the above (except one) will be available in next release. |
Thank you toralf.
Backing up the ini was the most important one for me, so I am happy.
| wrote: | | Deeper levels will not be available. Since it would require a lot of recoding. And I do not see the benefit over the work required. |
Ok, I understand.
| Quote: | | You could imitate it by specifying group names which are like "Upper Level - Lower Level". |
Yes thats a good idea, I'll probably just number them though to group them.
| Quote: | And since you prefer to have only a little space for the tree view, how can you deal with the "free" space infront of the first level? Imagine there would be one level more! *jk* |
I never thought of that.
I look forward to the next release then.  |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Sep 04, 2006 11:52 am Post subject: |
|
|
Update to version 4. First post is updated
| Quote: | changes since version 3:
- requires "../Anchor/Anchor_v3.3.ahk" => www.autohotkey.com/forum/topic4348.html
- on RollUp, gui minimized animated to a small bar. very nice :)
- menu option to choose between two gui styles (thanks MsgBox)
- menu options to turn on/off RollUpDown and AlwaysOnTop (thanks MsgBox)
- changed RollUpDown to work on gui not-active instead of OnMessage(RButton)
- changed AlwaysOnTop to work without OnMessage(MButton)
- menu option to choose the font and size (thanks MsgBox)
- menu option to backup the ini (thanks MsgBox)
- improved docking behavior
|
_________________ Ciao
toralf  |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Mon Sep 04, 2006 2:09 pm Post subject: |
|
|
Thank you!
These updates are excellent!
I wasn't expecting you to add my alternate Gui suggestion, so that was a nice surprise.
I found out (by chance ) about the right click menu. Thats very handy. I had got used to not using my right mouse button.
The triggering of the window roll is a big improvement. The reason I asked for an option to turn it off was that it was really annoying when I would right click to access the edit menu and the window kept disappearing!
I might leave the option on now though.
A couple of points:
When using the "copy to clipboard" button, the edit fields (on unrolling the window) become "sunken" and then flat again on mouseover. (I noticed this with Active GoTo too -- Ragat) It's probably not code related but I thought I would mention it.
The DropDownList position is a little high in the original gui layout, ys+1 corrects it.
Other than that... perfect!  |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Sep 04, 2006 2:59 pm Post subject: |
|
|
Hi,
Thanks for the info about the dropdownbox. I fixed it in my code. Will be in next release.
But I can't reproduce the "sunken" behavior. Can someone else? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
robiandi
Joined: 08 Aug 2006 Posts: 50
|
Posted: Mon Sep 04, 2006 4:25 pm Post subject: |
|
|
toralf wrote: | Quote: | | But I can't reproduce the "sunken" behavior. Can someone else? |
I can't reproduce the "sunken" behavior neither. |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Mon Sep 04, 2006 4:25 pm Post subject: |
|
|
| Quote: | | But I can't reproduce the "sunken" behavior. |
I have just noticed that the window is only animated when the copy to clipboard button is pressed. When the window loses focus it just disappears
to the titlebar! Is that intensional?
I've been meaning to update Ahk lately, (but haven't got round to it yet!). I have v1.0.44.04 and will install the latest version and see if it makes a difference. |
|
| Back to top |
|
 |
robiandi
Joined: 08 Aug 2006 Posts: 50
|
Posted: Mon Sep 04, 2006 6:17 pm Post subject: |
|
|
Msgbox wrote: | Quote: | | When the window loses focus it just disappears to the titlebar! Is that intensional? |
Yes, this is intentional and done by the function | Code: | | RollGuiUp(BarName, vertical = "") |
If you replace within this functionbyyou get a horizontal bar. ( i.e. hard-coded) |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Mon Sep 04, 2006 8:26 pm Post subject: |
|
|
Hello robiandi
| robiandi wrote: | Msgbox wrote:
| Quote: | | When the window loses focus it just disappears to the titlebar! Is that intensional? |
Yes, this is intentional and done by the function |
Yes I am aware that the "window rolls up/down", but as I said, it only animates when clicking the save button.
| robiandi wrote: | If you replace within this function
by
you get a horizontal bar. ( i.e. hard-coded) |
Thats nice!
You can position the window at the edge of the screen and when it's not active, you're just lift with a thin bar.
Isn't that what you asked Ragat to do with Active GoTo toralf?
Since my last post I have installed the latest update but the result is the same ie sunken edit fields.
Also I have found that when clicking on the taskbar and the desktop the window does animate, but if I click another apps window, the gui animates behind it. |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Mon Sep 04, 2006 8:35 pm Post subject: |
|
|
| MsgBox wrote: |
(I noticed this with Active GoTo too -- Ragat) |
| MsgBox wrote: |
Isn't that what you asked Ragat to do with Active GoTo toralf? |
Ouch!... that's twice!!
the name is Rajat!  _________________
 |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Mon Sep 04, 2006 9:08 pm Post subject: |
|
|
just checked... i really like the latest version toralf! _________________
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|