Get ID of selected listitem? (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi.

    I want to get the selected item of a listcontrol/filmstrip.

    With

    Code:
    GUIListItem _mylistitem = GetSelectedListItem(GUIWindowManager.ActiveWindow, 50);

    i can get the selected item in a listcontrol. This way, I can now read labels, thumbnails etc. from the selected item.

    But, how can I get the ID of the selected item?

    When I try by using

    Code:
    int myint = _mylistitem.ItemId

    I get the value of "0". The items in the list MUST have an ID, because I can select them with

    Code:
    GUIListItem _myselectitem = GetListItem(GUIWindowManager.ActiveWindow, 50, 10);

    What am I missing?

    :D
     

    Users who are viewing this thread

    Top Bottom