Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[AHK_L] Multiple GUI and Listview



  • Please log in to reply
4 replies to this topic
lsh
  • Members
  • 16 posts
  • Last active: Oct 25 2017 02:39 AM
  • Joined: 31 May 2012

2009803464_2F8LptWi_ECA09CEBAAA9_EC9786E
 

There are several GUI working within a single WIN(GUI), and there are scripts in the GUI including several LISTVIEWs that use texts of various colors.

However, if you open 2 or 3 guy windows in the parent GUI window with the <Ctrl+2> key, then the scripts stop working.

I have been trying to solve this problem for two weeks, but it is out of my reach.

Please help me.

Why has this problem occurred and how can I solve it?

 
 
2009803464_SbNQeqij_2009803464_mdKT3LrU_

#NoEnv
#SingleInstance Force
#Persistent
#Include LVA.ahk ;http://www.autohotke...tview-and-more/

guiz=10
Gui, +Resize +lastfound
Gui, Show, x0 y0 h730 w1265, TEST LV & EXIT KEY : <Ctrl+3> !
Gui_1_ID := WinExist()
return

GuiClose:
gui, destroy
ExitApp

DDT:
guiz++
cx:=100,cy:=100,cw:=600,ch:=500,
Gui, _%guiz%: Font, s8, malgun gothic
Gui, _%guiz%: Add, Listview, x0 y20 w580 h455 vHLV +HDR AltSubmit +LV0x2, A|B|C|D|E|F|G|H
Gui, _%guiz%: default
LV_ModifyCol(1, 80)
LV_ModifyCol(2, 80)
LV_ModifyCol(3, 80)
LV_ModifyCol(4, 80)
LV_ModifyCol(5, 80)
Gui, _%guiz%: Show, x%cx% y%cy% h%ch% w%cw%, try!
Gui, _%guiz%: +Resize +LastFound
ID:=WinExist()
DllCall("SetParent", "uint", ID, "uint", Gui_1_ID)
LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4")
LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4")
LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4")
LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4")
LV_Add("","THIS","ListView1","ListView2","ListView3","ListView4")
LV_Add("","THIS","Test","Test","Test","Test")
LVA_ListViewAdd("HLV", "AR ac cbsilver")
LVA_SetCell("HLV", 2, 1, "red")
LVA_SetCell("HLV", 4, 1, "", "0x00F00A")
LVA_SetCell("HLV", 5, 1, "", "0x0000FF")
LVA_SetCell("HLV", 6, 0, "0xFFFFFF")
OnMessage("0x4E", "LVA_OnNotify")
return

^2::
gosub,DDT
return

^3::
ExitApp
return








lsh
  • Members
  • 16 posts
  • Last active: Oct 25 2017 02:39 AM
  • Joined: 31 May 2012
LVA.ahk  DOWNLOAD URL = http://v1.autohotkey...no=2', 'LVA.ahk


just me
  • Members
  • 1496 posts
  • Last active: Nov 03 2015 04:32 PM
  • Joined: 28 May 2011
✓  Best Answer

Just downloaded LVA from here and have no problems showing 10 child windows using your sample script (AHK 1.1.09.02 (U32) / Win Vista 32).


Prefer ahkscript.org for the time being.


lsh
  • Members
  • 16 posts
  • Last active: Oct 25 2017 02:39 AM
  • Joined: 31 May 2012

Thank so much, it works without any problem.

What is the difference between the LVA script above and the the LVA script you have linked? What does the difference do in making it work ?



just me
  • Members
  • 1496 posts
  • Last active: Nov 03 2015 04:32 PM
  • Joined: 28 May 2011

I don't know because I can't get your version from the link you've posted. icon_wink.gif


Prefer ahkscript.org for the time being.