Hello,
I'm looking for ideas for making a TSringGrid behave exactly the way i like .
One of the columns ('Category') has a short like of pre-defined values , so
i've set the buttonStyle of that column to cbsPickList and , defined a
select editor event handler:
procedure TTrackTimeMainForm1.StringGrid1SelectEditor(Sender: TObject; aCol,
aRow: Integer; var Editor: TWinControl);
begin
case aCol of
0: {category}
begin
Editor:=PickListCategories;
end;
1,2,3:
Editor:=StringGrid1.EditorByStyle(cbsAuto);
end; {case}
end;
My problem with this approaches is that i need three clicks:
- one for selecting the cell
- one for getting into the editing mode
- one for clicking the small button that opens the pickList
How could I display the list of possible values with just one click ?
I realize that it must be possible to use the grid's OnClick , but maybe
there is some better/simpler solution that I'm not aware of .
PS: i'm on Linux using the fpc 2.0.4 , latest svn Lazarus and the gtk
interface.
Cheers,
Adrian Maier
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives