AutoHotkey Community

It is currently May 27th, 2012, 9:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: August 27th, 2006, 8:12 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Thanks a lot.
Your ingenious idea is used without any change. I just made a different GUI.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2006, 11:58 pm 
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, Image

Thank you too Rajat.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2006, 12:27 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
you are most welcome!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2006, 5:56 pm 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2006, 10:30 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2006, 12:42 am 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
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.

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

:lol: I never thought of that.

I look forward to the next release then. 8)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 11:52 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 2:09 pm 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
Thank you! 8)

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! :evil:
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! 8)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 2:59 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 4:25 pm 
Offline

Joined: August 8th, 2006, 3:55 pm
Posts: 49
toralf wrote:
Quote:
But I can't reproduce the "sunken" behavior. Can someone else?

I can't reproduce the "sunken" behavior neither.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 4:25 pm 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 6:17 pm 
Offline

Joined: August 8th, 2006, 3:55 pm
Posts: 49
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 function
Code:
If vertical
by
Code:
If !vertical
you get a horizontal bar. ( i.e. hard-coded)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 8:26 pm 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
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

Code:
If vertical

by

Code:
If !vertical

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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 8:35 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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!! :evil:

the name is Rajat! :wink:

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 9:08 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
just checked... i really like the latest version toralf!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, nomissenrojb, SKAN, Stigg, Yahoo [Bot] and 18 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