Sha256: e5790ad1eed565a4c2543c06ed7a76e1bee2a633361c4c37d201c3ab1f4d9450
Contents?: true
Size: 784 Bytes
Versions: 5
Compression:
Stored size: 784 Bytes
Contents
# Display a listbox with a checkbox for each item class Wx::CheckListBox < Wx::ListBox # According to the wxWidgets documentation: "wxCheckListBox uses # client data in its implementation, and therefore this is not # available to the application." # # So, rather than crashing, raise an Exception if this is attempted def append(*args) if args.length == 2 Kernel.raise "Cannot use item data with Wx::CheckListBox" else super end end # As above def insert(*args) if args.length == 3 Kernel.raise "Cannot use item data with Wx::CheckListBox" else super end end # As above def set_item_data(index, data) Kernel.raise "Cannot use item data with Wx::CheckListBox" end end
Version data entries
5 entries across 5 versions & 1 rubygems