| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun May 14, 2006 9:15 pm Post subject: v1.0.44 released: New GUI controls: TreeView and Status Bar |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sun May 14, 2006 9:58 pm Post subject: |
|
|
Ah finally, the long awaited StatusBar and TreeView controls
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/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sun May 14, 2006 10:05 pm Post subject: |
|
|
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/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Sun May 14, 2006 10:27 pm Post subject: |
|
|
| Wow! Thanks, Chris, for this nice update. The new features make many of my scripts simpler and nicer. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon May 15, 2006 12:04 am Post subject: |
|
|
| 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 |
|
 |
Rabiator
Joined: 17 Apr 2005 Posts: 265 Location: Sauerland
|
Posted: Mon May 15, 2006 9:29 am Post subject: |
|
|
| Great! Thanks for these useful features, especially TreeView! |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon May 15, 2006 9:43 am Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Mon May 15, 2006 10:02 am Post subject: |
|
|
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 |
|
 |
evl
Joined: 24 Aug 2005 Posts: 1238
|
Posted: Mon May 15, 2006 11:33 am Post subject: |
|
|
Cool! A statusbar with an updown control . Actually it could be useful if it could be added correctly - e.g. cycling through different things/histories in the statusbar. |
|
| Back to top |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 437 Location: Germany
|
Posted: Mon May 15, 2006 11:35 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon May 15, 2006 12:07 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon May 15, 2006 1:41 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon May 15, 2006 5:02 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Tue May 16, 2006 7:36 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue May 16, 2006 8:58 am Post subject: |
|
|
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 |
|
 |
|