RagingGoblin Posted October 3, 2007 Report Share Posted October 3, 2007 Hai, When I place a listbox on a VI frontpanel it is possible to edit the itemnames (the cells) by dubbleclick and start typing. However, when I place a listbox on the facade of a xcontrol en put this xcontrol on a VI frontpanel it is not possible to edit the items in this fashion. I have tried to get this behaviour by editing the event edit cells, but this event never happens. The listbox on the facade is set to editable cells (right click Editable cells). Any suggestions to this? Thanks Quote Link to comment
LAVA 1.0 Content Posted October 3, 2007 Report Share Posted October 3, 2007 I just really quickly through together a VI and a XControl w/ only a listbox on the xcontrol and only the xcontrol on the vi. i'll try to attach later. But I have to disagree w/ your statement because I can do a text edit on the listbox in the xcontrol. Please post your example that you made so that we can see why it doesn't work. Quote Link to comment
RagingGoblin Posted October 3, 2007 Author Report Share Posted October 3, 2007 Yes you can edit the items on the listbox inside the xcontrol on the facade. But I want to edit the items on the listbox inside the vi. Try to edit items in Untitled 1.vi, see attachement. Thanks Quote Link to comment
LAVA 1.0 Content Posted October 3, 2007 Report Share Posted October 3, 2007 Actually what I was saying is the xcontrol is what exists as a control on the fp of the VI. and that is the one I can change, I'm checking out your code now. <edit> You don't have editable cells on the listbox on the facade. Download File:post-208-1191348844.avi Quote Link to comment
Michael Aivaliotis Posted October 3, 2007 Report Share Posted October 3, 2007 Ya, I tested it too. It works fine. The problem is that you didn't have any data in your cells AND you didn't have editing enabled. Quote Link to comment
RagingGoblin Posted October 3, 2007 Author Report Share Posted October 3, 2007 I am making a fool out of myself here, I know, but I just cannot get it done. In your movie it looks as if you are switching to run mode before editing a line, what are you doing exactly? Or has it something to do with me working on Linux? Quote Link to comment
Michael Aivaliotis Posted October 3, 2007 Report Share Posted October 3, 2007 To edit the contents you have to click on the cell and wait... for a few seconds... the field will change to edit mode. On the last example you attached, you didn't have any data in your cells AND you didn't have editing enabled. Quote Link to comment
LAVA 1.0 Content Posted October 3, 2007 Report Share Posted October 3, 2007 It sounds like you want to add entries and I don't think thats easily possible. But if you want to get fancy, add a right click context menu entry to add an item, pop-up a dialog and then programatically add the item, and then editing of the existing items happens as mike mentioned above Quote Link to comment
RagingGoblin Posted October 3, 2007 Author Report Share Posted October 3, 2007 Well, now I do feel stupid. Though I must say on this system (Linux running on VMware) the behaviour is really not what I would expect. Not dubble click, no click many times, but click... count to three ... click. Thanks for your help. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.