Subject IB_Grid, embedded buttons in custom columns.
Author Adrian Wreyford
Dear List



I have to upgrade a tsDBGrid in an old app of mine, to a IB_Grid.



I store diary entries in a Diary table.

I display three columns from the Query:

Time, Details, Name.



Then I need three dummy columns, that must appear on the right of the grid,
that contain buttons in them.



Clicking on the first column's button, will select routine 1, for current
row.

Clicking on the next column's button, will select routine 2 for current row
.. and so for the third column.



Editlinks, will display a button for a column, BUT ONLY WHEN IT GETS FOCUS.

I need somehow to add these dummy columns to my Query, so that they can
display in the IB_Grid.

Ie B1, B2, B3, but no fields actually exist for these columns in the Table.



If I can get dummy columns to display, then if I could fool the grid to
think they are BLOB fields, then setting EditLinksAuto should display
buttons, but once again only when highlighted, and I need these buttons to
be there all the time, for each row in the grid.



Well I hope I've been clear and you all understand what I'm trying to do
here.



Thanks



Adrian Wreyford





[Non-text portions of this message have been removed]