Changeset 2103 for trunk/lomefc2/me_utilities.lua
- Timestamp:
- 07/03/10 22:24:43 (23 months ago)
- File:
-
- 1 edited
-
trunk/lomefc2/me_utilities.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lomefc2/me_utilities.lua
r2065 r2103 576 576 -- itemId will be assign to itemId field of item widget 577 577 -- returns created item. 578 function addBoxItem(box, item, theme, itemId )578 function addBoxItem(box, item, theme, itemId, idx) 579 579 if itemId then 580 580 item.itemId = itemId … … 583 583 item:setTheme(theme) 584 584 end 585 586 box:insertWidget(item) 585 if idx then 586 box:insertWidget(item, idx) 587 else 588 box:insertWidget(item) 589 end 587 590 end 588 591 … … 591 594 -- itemId will be assign to itemId field of item widget 592 595 -- returns created item. 593 function addListBoxItem(listBox, caption, theme, itemId )596 function addListBoxItem(listBox, caption, theme, itemId, idx) 594 597 local item = ListBox.newItem(caption) 595 addBoxItem(listBox, item, theme, itemId )598 addBoxItem(listBox, item, theme, itemId, idx) 596 599 return item 597 600 end
Note: See TracChangeset
for help on using the changeset viewer.
