Subject Re: [IBO] Idea for new functionality in IBO.
Author Geoff Worboys
> 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?
<...>
> What do you think this ??

I like the idea in general - in fact I already have my own button
control that enables/disables itself according to the state of the
datasource. I setup mine so that I could select from a list of
defined actions to save having to write code to do what I want. In
retrospect I think it would have been better to simply use TIB_*
action definitions.

Note that your "listenstate" needs to be a set of dataset states. eg:
[dssEdit, dssInsert]

Such a control that was written more generically (mine is based on my
own button control so would not be good for general distribution)
would be a good neat to the TIB_* control suite.


Geoff Worboys
Telesis Computing