Jump to content


Photo
- - - - -

pull-down menue in listbox


  • Please log in to reply
6 replies to this topic

#1 feuerwehringenieur

feuerwehringenieur

    One hit wonder!

  • Members
  • 1 posts

Posted 03 February 2006 - 07:26 AM

Hello,

is it possble to insert a pull-down-menue in the fields of a listbox? That means, that the user has the possibility to click in the field and then gets an pull-down-menu?

Thanks

Christian

#2 i2dx

i2dx

    The 500 club

  • Members
  • PipPipPipPipPip
  • 678 posts
  • Location:Duesseldorf/Germany
  • Version:LabVIEW 8.6
  • Since:2001

Posted 03 February 2006 - 07:39 AM

Hello,

is it possble to insert a pull-down-menue in the fields of a listbox? That means, that the user has the possibility to click in the field and then gets an pull-down-menu?

Thanks

Christian


a warm wellcome to the lava board :)

not with labview! the defined datatype for the listbox items is string. you can not insert anything else. maybe you want to use an array of menu rings? but you will get trouble when managing the references, because you have to handle them all dynamically or use a fixed width array ...

(du willst doch schon wieder murks machen! und - ich hab dich schon am nic erkannt! ;) )
Grüße
CB

#3 PJM_labview

PJM_labview

    The 500 club

  • JKI
  • 758 posts
  • Version:LabVIEW 2009
  • Since:1998

Posted 03 February 2006 - 07:47 AM

Hello,

is it possble to insert a pull-down-menue in the fields of a listbox? That means, that the user has the possibility to click in the field and then gets an pull-down-menu?

Thanks

Christian


In LV 8.0 you can create (and control programatically) a right click menu on every control. I am not sure that this is what you are trying to do though.

PJM

#4 LAVA 1.0 Content

LAVA 1.0 Content

    <customize this text>

  • Members
  • PipPipPipPipPipPip
  • 2,827 posts
  • Version:LabVIEW 8.6
  • Since:2009

Posted 03 February 2006 - 01:12 PM

Hello,

is it possble to insert a pull-down-menue in the fields of a listbox? That means, that the user has the possibility to click in the field and then gets an pull-down-menu?

Thanks

Christian



Often when I am using a multi column listbox I put a row of pull down menus across the bottom of the listbox, sized to the same width of the columns. Usually I dynamically stuff these pulldowns from a database or something, the user selects the row of intrest in the listbox, makes whatever selections he wants in the pulldowns, and the hits the update button, which then stuffs the pulldown values into the row of the listbox that is selected, each pulldown value into the column it is beneath. Sounds a little confusing, if your intrested I can send you an example.

#5 cwl

cwl

    Enough LAVA to be dangerous

  • Members
  • 4 posts

Posted 18 March 2006 - 05:18 PM

In LV 8.0 you can create (and control programatically) a right click menu on every control. I am not sure that this is what you are trying to do though.

PJM

please paste your example, I also want to learn it ! thanks a lot

#6 Mike Ashe

Mike Ashe

    The 500 club

  • Premium Member
  • 814 posts

Posted 19 March 2006 - 04:35 AM

No, you cannot do this directly, for real, but you can simulate it well enough that no one will know the difference, or care if they do.

Use the event structure to get the item/row you click, then take an invisible menu, programmatically position it to the line, make it visible and give it the mouse focus. After the user makes their selection, reverse the steps above and insert the selected value into that row/cell of the listbox.

You will also have to monitor for clicks outside the menu/listbox, etc.

#7 schinni

schinni

    Active

  • Members
  • Pip
  • 13 posts

Posted 29 March 2006 - 03:29 AM

Thanks Michael. Thats a nice creative idea that can be applied in so many other situations :thumbup: