Hello,
I said it, because IMHO click in headers columns should be reserved to define the order of the columns. Imagine an unreal scenario:
- Some day... Click in header is set to change attributes or unsorted method.
- Time later: the feature sort by attributes is added.
- How should be implemented?
Predefined actions in TC are very difficult to change. For example:
The refresh action (F2) is implemented many time ago and there are many discussions in forum about a change for assign F2 to rename.
OR... I read time ago about the shorcut for MRT which was changed to the current CTRL+M
Of course, the solution given by
Clo in his last post, would satisfy to the most of users.
You can try the next dirty ahk script for view how this feature could be.
Code: Select all
; Double click in header columns open the change attributes window
; Detect double click code: http://www.autohotkey.com/forum/viewtopic.php?p=62779#62779
#IfWinActive ahk_class TTOTAL_CMD
~LButton::
Loop {
LButtonDown := GetKeyState("LButton","P")
If (!LButtonDown)
Break
}
WaitTime:=DllCall( "GetDoubleClickTime" )/1000
KeyWait, LButton, D T%WaitTime%
MouseGetPos, , , , sControl
If (errorlevel = 0) AND (sControl = "THeaderClick2" OR sControl = "THeaderClick1")
GoSub, OnDoubleClick
Return
OnDoubleClick:
PostMessage 1075, 502,,, ahk_class TTOTAL_CMD
Return
Sorry to the ahk gurus in the forum. I know that it could be done better.