ListBox is readonly
Mohammad Samani
Window TestWindow()
make /t/o somewave={{"Some data"},{"in the wave"}}
String panelName = "TestPanel"
killwindow /Z panelName
NewPanel/N=$panelName/W=(200,200,500,500)
ListBox ExampleWaveSelectorList,pos={10,10},size={280,280},listWave=root:somewave,frame=2,mode=2,fsize=14
endmacro
make /t/o somewave={{"Some data"},{"in the wave"}}
String panelName = "TestPanel"
killwindow /Z panelName
NewPanel/N=$panelName/W=(200,200,500,500)
ListBox ExampleWaveSelectorList,pos={10,10},size={280,280},listWave=root:somewave,frame=2,mode=2,fsize=14
endmacro
Above code is the minimum that reproduces my problem. I want to be able to edit the content of the wave somewave in the TestPanel window. This might have something to do with the upgrade to IgorPro 8. The same code used to work on earlier versions.
IGORVERS:8.03
BUILD:33570
IGORKIND:pro64
OS:Windows 10 Enterprise
OSVERSION:6.3.17134
LOCALE:US
IGORFILEVERSION:8.0.3.3
This was some probably relevant information about my system.
Any help is appreciated.
Your code doesn't produce an editable list box in Igor 6.37, 7, or 8. This is because you need to use a selWave in order to specify that a cell is editable.
Here's how you make it editable:
make /t/o somewave={{"Some data"},{"in the wave"}}
Make/O selWave={{2}, {2}}
String panelName = "TestPanel"
killwindow /Z $panelName
NewPanel/N=$panelName/W=(200,200,500,500)
ListBox ExampleWaveSelectorList,pos={10,10},size={280,280},listWave=root:somewave,selWave=root:selWave,frame=2,mode=2,fsize=14
endmacro
Note that I also fixed a bug in your code. You need a $ before panelName in the KillWindow command.
April 24, 2019 at 08:37 am - Permalink
Thank you for pointing that out. In my complete code, I was setting the selWave, but paying attention to that solved the problem.
April 24, 2019 at 10:09 am - Permalink