I think there is a bug in FXComboTableItem when using it with FXTable. I
was getting a Seg Fault before making the following change:
class FXComboTableItem < FXTableItem
# Create input control for editing this item
def getControlFor(table)
combo = FXComboBox.new(table, 1, nil, 0, COMBOBOX_STATIC, 0, 0, 0,
0,
table.marginLeft, table.marginRight,
table.marginTop, table.marginBottom)
combo.create
combo.justify = justify
combo.font = table.font
combo.backColor = table.backColor
combo.textColor = table.textColor
combo.selBackColor = table.selBackColor
combo.selTextColor = table.selTextColor
selections.each do |selection|
combo.appendItem(selection)
end
combo.numVisible = [20, combo.numItems].min
combo
end
End
The original code used combo.fillItems(selections) instead of
combo.appendItem so I think that''s where the problem is.
Jason
This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.