Subject Idea for new functionality in IBO.
Author Martijn Hoedeman
Hi all,

I was just thinking, wouldn't it be very handy to have a IB_button-object(TbitBtn or so) that you can link to a datasource and use the state of that datasource to activate/visualise the button?

Your could then add two more properties describing what action to take on what state.

MyNewButton.DataSource = Anysource
MyNewButton.ListenState = dssBrowse
MyNewButton.StateAction = [visible, enabled]

or maybe an OnStateChange event directly on the button....?

This would be so easy because it'll keep you from programming this all in the StateChange and related events (And this information is more button related then it is dataset IMHO)

What do you think this ??

Martijn Hoedeman