Ok, it's time for a new update!
I've completed the DropDown gadget and the ListView, below some specifications:
DropDown
- The DropDown menĂ¹ automatically generate a scroller if needed
ListView- Scroller automatically added if needed (only vertical atm)
- Clicking on the header columns will sort the listview contents, ascending the first click, descending the second click)
- User can select only one row or multiple rows depending on the listview type
- Column size defined passing % of the ListView width
Here are a simple copy & paste of the code needed to generate a ListView so you can have an idea of how it can be simple to make gadgets with scui:
Code:
x = scui.NewObject( #IFOCLASS_LISTVIEW,
{ x = 10, y = 404 },
{ x = 460, y = 100 },
nil,
{ FieldNames = { "Name", "Surname", "Age" },
Sizes = { 40, 40, 20 },
Entries = { { "Fabio", "Falcucci", "37" },
{ "Johnny", "Mnemonic", "36" },
{ "Clark", "Kent", "38" },
{ "Peter", "Pan", "14" },
{ "Takaya", "Todoroky", "23" },
{ "Aran", "Benjo", "24" },
{ "Mickey", "Mouse", "??" }
}
},
nil )
Finally... the Screenshot!
You can see the new ListView and the DropDown gadget ready to interact with the user!
Stay tuned!
