PDA

View Full Version : Combobox in grid


Hans
12-10-2003, 06:25 AM
Is there a way to put a combobox in a grid like the property-screen in Acubench ?

Regards

bms
12-11-2003, 05:38 AM
I place a combo box on the grid to do this. I compute the exact row that it will be appear using the CURSOR-Y and VSCROLL-POS. It's a little tricky, so if you interesting for, i could send you a sample code.

JoeD
12-11-2003, 01:11 PM
We did the same thing, but it did not always act properly depending on how the mouse/keyboard was used.

We are currently using the FlexGrid from Component One, which has the ability to have a combo box in a cell, among other things.

bms
12-17-2003, 01:48 AM
Hans, I sent you the sample program in your email.

Adam.

Hans
01-14-2006, 10:32 AM
BMS,


I don't have your source anymore but I managed to place a button in one of the cells.

Wen I click the button, the grid generates a msg-evt-goto-cell instead of the button-on-click event.

The button is not in a separate cell. It's in a cell with no data, but the cell-color is used to set a color as one can see in the atachment.

I managed to produce the button-on-click code, but not with the button-on-click event so I wonder if this normal behavior.