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 

v1.0.44 released: New GUI controls: TreeView and Status Bar
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sun May 14, 2006 9:15 pm    Post subject: v1.0.44 released: New GUI controls: TreeView and Status Bar Reply with quote

Here are the changes for v1.0.44:

Fixed OnClipboardChange to work even when the script is displaying a MsgBox or other dialog.

Fixed FileCreateDir not to report ErrorLevel 1 when the specified directory ends in "\". [thanks Wesley]

Fixed hotkeys Control::, Shift::, and Alt:: to fire on release of the key rather than press-down (broken by v1.0.41).

Fixed loading of icon #1 from nonstandard file types such as .bin.

Fixed ListView creation to obey the text color set by "Gui Font".

Changed and fixed the hotkey tilde prefix (~) so that hotkeys like ~Esc and Esc are considered duplicates; that is, a script cannot define both ~Esc and Esc unless they are under different #IfWin criteria (in which case ~Esc and Esc have been fixed to work properly). [thanks jballi]

Changed and improved ListViews: 1) a new option WantF2 is in effect by default, which causes an F2 keystroke to edit the current row (when not ReadOnly); 2) added LV_Modify(Row, "Vis") to scroll an item into view; 3) drag notifications occur even without AltSubmit; 4) item-change notifications have A_EventInfo set to the row number; 5) ErrorLevel no longer mirrors A_EventInfo in cases where it was never documented to do so (same for GuiContextMenu).

Improved Edit controls to select all text in response to Control-A. This can be disabled via -WantCtrlA.

Added new GUI control types TreeView and StatusBar.
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5007
Location: imaginationland

PostPosted: Sun May 14, 2006 9:58 pm    Post subject: Reply with quote

Ah finally, the long awaited StatusBar and TreeView controls Smile
The select all hotkey in Edit controls are fantastic, they make a lot of things so much easier.

Thanks Chris, great job.
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5007
Location: imaginationland

PostPosted: Sun May 14, 2006 10:05 pm    Post subject: Reply with quote

This may be a bug:
Quote:
Buttons: Specify -Buttons (minus Buttons) to avoid displaying a plus or minus button to the left of each item that has children.
Lines: Specify -Lines (minus Lines) to avoid displaying a network of lines connecting parent items to their children.

Using "Gui, Add, TreeView, -Lines +Buttons" I don't see the buttons?
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Sun May 14, 2006 10:27 pm    Post subject: Reply with quote

Wow! Thanks, Chris, for this nice update. The new features make many of my scripts simpler and nicer.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon May 15, 2006 12:04 am    Post subject: Reply with quote

Titan wrote:
"Gui, Add, TreeView, -Lines +Buttons" I don't see the buttons?
Ah, that's a limitation of the control that should have been documented. I've added the following: "However, specifying -Lines also prevents the plus/minus buttons from being shown for top-level items."

Thanks.
Back to top
View user's profile Send private message Send e-mail
Rabiator



Joined: 17 Apr 2005
Posts: 260
Location: Sauerland

PostPosted: Mon May 15, 2006 9:29 am    Post subject: Reply with quote

Great! Thanks for these useful features, especially TreeView!
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Mon May 15, 2006 9:43 am    Post subject: Reply with quote

Excellent, an important release!
I updated my ahk.properties file in AutoHotkey.net (for the newest lexer, I no longer maintain the old, asm-based one).
I will explore the new GUI capabilities.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 808
Location: Germany

PostPosted: Mon May 15, 2006 10:02 am    Post subject: Reply with quote

Hi Chris,

there's a bug with the statusbar and updown-controls:

Code:

#persistent
Gui, 1:Default
Gui,Show,h400 w400   
Gui, Add, StatusBar
SB_SetParts(120)
SB_SetText( " Test1", 1)
SB_SetText( " Test2", 2)
Gui, Add, Edit, x+5 yp-4 w40 vas_MonthlyDay_tmp gTest,
Gui, Add, UpDown, Range-3-28, 234

Return

GuiClose:
GuiEscape:
   ExitApp
Return

Test:
Return

_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
evl



Joined: 24 Aug 2005
Posts: 1237

PostPosted: Mon May 15, 2006 11:33 am    Post subject: Reply with quote

Cool! A statusbar with an updown control Laughing . Actually it could be useful if it could be added correctly - e.g. cycling through different things/histories in the statusbar.
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 429
Location: Germany

PostPosted: Mon May 15, 2006 11:35 am    Post subject: Reply with quote

Hi Chris,
superb! great job.
I'm sure that everybody who uses my Treeview-dll are glad, that they can get rid of of the dll with all its dependencies and problems.

Perhaps a stupid question: Is it planed to support Treeviews in other applications (remotely controlling them) or is it already possible?

Ciao
Micha
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Mon May 15, 2006 12:07 pm    Post subject: Reply with quote

Tekl didn't care to explain what the bug is...
evl provided a hint: the Up-Down control is associated to the status bar instead of the edit control.
The workaround is obvious: put the status bar definition at the end of the GUI declarations.

@evl: why not. In SciTE, I implemented the single click in the status bar to make it cycling its infos: simple, easy and effective.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon May 15, 2006 1:41 pm    Post subject: Reply with quote

Thanks for the bug report. It should be fixed in the next update. As PhiLho said, the workaround is to add the status bar last (or at least after all your up-down controls).
Details: This is caused by status bars needing to be kept at the bottom of the Z-order to alleviate other controls getting drawn on top of them. But doing this causes an UpDown to auto-buddy with the bar rather than the most recently added control.

Micha wrote:
Is it planed to support Treeviews in other applications (remotely controlling them) or is it already possible?
There is a plan to add data-extraction feature for TreeView similar to the one that already exists for ListView (ControlGet List).

Thanks.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon May 15, 2006 5:02 pm    Post subject: Reply with quote

Here are the changes for v1.0.44.01:

Fixed StatusBar's grabbing of UpDowns that are added after it. [thanks Tekl]

Changed Round() to display exactly N decimal places rather than obeying SetFormat.
Back to top
View user's profile Send private message Send e-mail
Tekl



Joined: 24 Sep 2004
Posts: 808
Location: Germany

PostPosted: Tue May 16, 2006 7:36 am    Post subject: Reply with quote

Hi,

thanks for the fast bugfix. Btw. is there a way to differ the parts which has been clicked? I want different actions an different parts of the status-bar (double-click).
_________________
Tekl
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Tue May 16, 2006 8:58 am    Post subject: Reply with quote

This is becoming off topic, questions about the new controls should be moved elsewhere.
AHK's Manual wrote:
The variable A_EventInfo contains the part number.

_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

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


Powered by phpBB © 2001, 2005 phpBB Group