Search found 84 matches

by fliptoback
24 Nov 2020, 05:42
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

Thanks, @just me! The following worked as well with the A_GuiControl approach. #SingleInstance Force tab1 = Tab 1 tab2 = Tab 2 editWidth := 100 Gui, 2:New,, Change tabs Gui, 2:Font, s10 Gui, 2:Add, Text,, Tab 1: Gui, 2:Add, Edit, x+m w%editWidth% vtab1, %tab1% Gui, 2:Add, Text, xm y+m, Tab 2: Gui, ...
by fliptoback
24 Nov 2020, 05:41
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

If you want to monitor mouse events on your Gui window - especially clicks - OnMessage() will do a trumpish (outstanding) job. #NoEnv Gui, Add, Tab3, w400 h50 vTC gTClabel, 1|2|3| Gui, Tab Gui, Add, ListView, w400 r10 vLV gLabel AltSubmit, 1|2 Loop, 5 LV_Add("", "1" . A_Index, "2" . A_Index) Gui, A...
by fliptoback
23 Nov 2020, 10:06
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

GuiContextMenu: ControlGetPos,, headerY,,, SysHeader321, ahk_class AutoHotkeyGUI ahk_exe AutoHotkey.exe MouseGetPos,, ypos If (ypos < headerY) Gui, 2:Show, w200, Change tabs Return Thanks Mikey. I tried the code but it does not work with the right mouse click. I suspect it is the AHK_class that I a...
by fliptoback
23 Nov 2020, 09:06
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

The listview does not have tabs, but the GUI can have tabs. #SingleInstance Force tab1 = Tab 1 tab2 = Tab 2 editWidth := 100 Gui, 2:New,, Change tabs Gui, 2:Font, s10 Gui, 2:Add, Text,, Tab 1: Gui, 2:Add, Edit, x+m w%editWidth% vtab1, %tab1% Gui, 2:Add, Text, xm y+m, Tab 2: Gui, 2:Add, Edit, x+m w%...
by fliptoback
23 Nov 2020, 08:12
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

lmstearn wrote:
23 Nov 2020, 08:08
Ah, okay, then perhaps IfWinActive for the tab and GetKeyState for the mouse should be the way to get started with it. Will provide an example later if you like. :)
Thanks lmstearn. If you could please provide an example that will be great!
by fliptoback
23 Nov 2020, 07:55
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

lmstearn wrote:
23 Nov 2020, 07:26
Hi @fliptoback, do you mean the tabby looking things they call headers? ColCLick should do the job for you. :)
Thanks Imstearn. Not quite. In the example I posted above, I am not referring to the columns "column 1", "column 2"...I am referring to the "Tab 1", "Tab 2"...
by fliptoback
23 Nov 2020, 07:53
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Re: Is it possible to right click on the tabs of a listview? Topic is solved

A listview has no tabs. Gui, New,, Test Gui, Add, Listview, r10 w200, A|B|C LV_Add("", "1", "2", "3") Gui, Show Perhaps you can show an example of what you mean. Hi Mikey, here is an example of the "tab" I am referring to: #NoEnv #SingleInstance force Gui, Add, Tab2, vCurrentTab , Tab 1|Tab 2 Gui, ...
by fliptoback
23 Nov 2020, 06:56
Forum: Ask for Help (v1)
Topic: Is it possible to right click on the tabs of a listview? Topic is solved
Replies: 15
Views: 1126

Is it possible to right click on the tabs of a listview? Topic is solved

Hi guys, I would like to do a right click on the tabs of a listview so that i can fire up a context menu to select a dialog box with edit textbox to change the name of the tabs. However, it would seem that whilst it is possible to right click on the listview items, it is not possible to do the same ...
by fliptoback
23 Nov 2020, 05:38
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

JoeWinograd wrote:
22 Nov 2020, 10:58
Hi flip,
I see that just me has you squared away...great news! Regards, Joe
Hey Joe, yes the code is awesome. Works with my current code no issues. I am happy. :clap:
by fliptoback
22 Nov 2020, 05:08
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

#NoEnv #SingleInstance force Gui, Add, Tab2, vCurrentTab , Tab 1|Tab 2 Gui, Tab, 1 ; Gui, Listview, Listview1 ; <<< useless here Gui, Add, ListView, w400 r20 AltSubmit vListview1 hwndHLV gLabel, Column1|Column2 ; <<< changed Loop, 10 LV_Add("", "1" . A_Index, "2" . A_Index) LV_WantReturn(HLV) ; <<<...
by fliptoback
22 Nov 2020, 04:46
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Maybe this code will make it clearer for you (with all credit to just me): #NoEnv #SingleInstance force Gui, Add, ListView, w400 r20 AltSubmit vLV hwndHLV gLabel, Column1|Column2 Loop, 10 LV_Add("", "1" . A_Index, "2" . A_Index) Gui, Add, Edit, wp, Click here to test LV not having focus Gui, Show, ...
by fliptoback
22 Nov 2020, 04:17
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

It isn't stand-alone code. It is a replacement for the Label: path code in just me's post. Hmm...ok. This is what I have the following inside a g routine. ProjectListView: { If (A_GuiEvent == "K") && (A_EventInfo = 113) ; VK_F2 = 113 (0x71) { ;MsgBox, You pressed F2 while the ListView had the focus...
by fliptoback
22 Nov 2020, 04:11
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Any idea please? Label: If (A_GuiEvent == "K") && (A_EventInfo = 113) ; VK_F2 = 113 (0x71) { RowNum:=LV_GetNext() MsgBox, You pressed F2 while the ListView was on row %RowNum% } If (A_GuiEvent == "K") && (A_EventInfo = 13) ; VK_RETURN = 13 (0x0D) { RowNum:=LV_GetNext() MsgBox, You pressed Enter whi...
by fliptoback
22 Nov 2020, 02:14
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Just another 'special' ListView thingy Hi just me, Very nice! Seems to provide a great way to do something I've been wondering about...detecting a right-click on a ListView row. I added this code to your Label: path: If (A_GuiEvent == "RightClick") MsgBox, You did a Right-Click on ListView item# %A...
by fliptoback
21 Nov 2020, 23:44
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

Re: How to detect hotkeys and enter keys in a listview Topic is solved

@JoeWinograd: Just another 'special' ListView thingy: #NoEnv Gui, Add, ListView, w400 r20 AltSubmit vLV hwndHLV gLabel, 1|2 Loop, 10 LV_Add("", "1" . A_Index, "2" . A_Index) Gui, Add, Edit, wp, Focus! Gui, Show, , Test LV_WantReturn(HLV) Return ; ----------------------------------------------------...
by fliptoback
21 Nov 2020, 06:03
Forum: Ask for Help (v1)
Topic: Why child window GUI cannot return to parent window GUI? Topic is solved
Replies: 17
Views: 716

Re: Why child window GUI cannot return to parent window GUI? Topic is solved

#SingleInstance, force ; ----------------------------------------------------- ; Prepare GUI 4 Gui, 4: Add, Text, x10 y7, Project Number: Gui, 4: Font, cBlack S32 Impact bold Gui, 4: Add, Edit, number r1 x10 y30 w280 vQuickProjectNumber, Gui, 4: Font, Gui, 4: Add, Button, x90 y100 w50 h25 default g...
by fliptoback
21 Nov 2020, 05:30
Forum: Ask for Help (v1)
Topic: Why child window GUI cannot return to parent window GUI? Topic is solved
Replies: 17
Views: 716

Re: Why child window GUI cannot return to parent window GUI? Topic is solved

The code in the OP doesn't create child windows or owner/owned windows. There are just two AHK top-level Gui windows. If you disable one of the windows you also have to enable it before it's possible to interact with the window again. Using your sample code the program does not close if you press t...
by fliptoback
21 Nov 2020, 00:58
Forum: Ask for Help (v1)
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 2333

How to detect hotkeys and enter keys in a listview Topic is solved

Hi guys, I have a listview whereby the user can double click on an item. In addition to double clicking, I also would like to allow the user to simply press enter at that selected row. I also want to be able to press a function key F2 at a selected row to execute some code - some as editing the cell...
by fliptoback
20 Nov 2020, 23:47
Forum: Ask for Help (v1)
Topic: Why child window GUI cannot return to parent window GUI? Topic is solved
Replies: 17
Views: 716

Re: Why child window GUI cannot return to parent window GUI? Topic is solved

This was a tough one because I think that AHK's behavior was a bit surprising, at least to me. The key line was the -Disabled . It's not entirely clear to me why that is the case, but it appears that if the parent window is disabled when the child window is destroyed, then the parent window is also...
by fliptoback
20 Nov 2020, 22:03
Forum: Ask for Help (v1)
Topic: Why child window GUI cannot return to parent window GUI? Topic is solved
Replies: 17
Views: 716

Re: Why child window GUI cannot return to parent window GUI? Topic is solved

This seems to work. Line added before Gui, Submit: Gui, 1:-Disabled . #SingleInstance Force Gui, 4: new, , Quick Jump Gui, 4: Add, Text, x10 y7, Project Number: Gui, 4: Font, cBlack S32 Impact bold Gui, 4: Add, Edit, number r1 x10 y30 w280 vQuickProjectNumber Gui, 4: Add, Button, x90 y100 w50 h25 D...

Go to advanced search