Hi Antonio, I was trying to use the flat list. If I have a flat list with multiple="YES" then if I click the last item in the list by holding Control key the item text of the previous item changes as well. As an example see the follow example file I modified:
In the second list in the dialog click the last item by holding control key. You cn do it while holding the shift key as well. Also it need not be the very last item in the list, just the last item in the visible section of the list. -- IupList Example in IupLua -- Creates a dialog with three frames, each one containing a list. The first is a simple list, the second one is a multiple list and the last one is a drop-down list. The second list has a callback associated. require( "iuplua" ) -- Creates a list and sets items, initial item and size list = iup.flatlist {"Gold", "Silver", "Bronze", "None" ; value = 4, size = "EIGHTHxEIGHTH"} list[5] = "test" -- Creates frame with simple list and sets its title frm_medal = iup.frame {list ; title = "Best medal"} -- Creates a list and sets its items, multiple selection, initial items and size list_multiple = iup.flatlist {"100m dash", "Long jump", "Javelin throw", "110m hurdlers", "Hammer throw", "High jump" ; multiple="YES", value="+--+--", size="EIGHTHxEIGHTH"} -- Creates frame with multiple list and sets its title frm_sport = iup.frame {list_multiple ; title = "Competed in"} -- Creates a dialog with the the frames with three lists and sets its title dlg = iup.dialog {iup.hbox {frm_medal, frm_sport} ; title = "IupFlatList Example"} -- Shows dialog in the center of the screen dlg:showxy(iup.CENTER, iup.CENTER) if (iup.MainLoopLevel()==0) then iup.MainLoop() end
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users