We now have two alternatives for attaching this popup to the DropDownButton or SplitButton: Toolstrip SplitButton with dynamic popup and static sub-menu Sub_item2.ItemPushedFcn = % createPopup() Sub_item2 = ListItem('This is sub item 2', Icon.SIMULINK_16) Sub_item1.ItemPushedFcn = sub list item #2 Sub_item1 = ListItem('This is sub item 1', Icon.MATLAB_16) Item = ListItemWithPopup('This is item 4',Icon.ADD_16) Item.ValueChangedFcn = list item with popup Item = ListItemWithCheckBox('This is item 3', true) ![]() Header = PopupListHeader('List Item with Checkboxes') Item.Description = 'this is the description for item #2' Īddlistener(item, 'ItemPushed', list header #2 Item = ListItem('This is item 2', Icon.SIMULINK_16) Item.Description = 'this is the description for item #1' Item = ListItem('This is item 1', Icon.MATLAB_16) Sub_item2 = ListItem ( 'This is sub item 2', Icon. Sub_item1 = ListItem ( 'This is sub item 1', Icon. Item = ListItemWithPopup ( 'This is item 4',Icon. Item = ListItemWithCheckBox ( 'This is item 3', true ) Header = PopupListHeader ( 'List Item with Checkboxes' ) Description = 'this is the description for item #2' Item = ListItem ( 'This is item 2', Icon. Description = 'this is the description for item #1' Item = ListItem ( 'This is item 1', Icon. Header = PopupListHeader ( 'List Items' ) ListItemWithPopup – a non-selectable list item, that displays a sub-menu (another PopupList that should be set to the parent list-item’s Popup property).Ī simple usage example (adapted from the showcaseToolGroup demo):.The checkmark icon is not customizable (alas). ListItemWithCheckBox – a selectable list item that toggles a checkmark icon based on the list item’s selection Value (on/off).However, it is displayed as a label beneath the list-item’s main label, unless we set ShowDescription to false. For some reason (perhaps a bug), the Description is not shown in a tooltip (no tooltip is displayed). ListItem – a selectable list item, with optional Icon, Text, and Description (tooltip string, which for some reason is not actually shown). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |