May 17, 2004 #1 Nordlund Programmer Jul 17, 2001 458 SE Hi there. Has anyone written code to check out when a StringGrid go into/out to/from Edit mode... //Nordlund
Hi there. Has anyone written code to check out when a StringGrid go into/out to/from Edit mode... //Nordlund
May 18, 2004 #2 fruNNik Programmer Oct 28, 2003 30 NL Maybe by using the OnGetEditText and SetEditText events of the Grid, you can get what you want ? SetEditText is called everytime the contents of the cell changes, and when you leave the edited cell, so you'd have to fiddle something there ... hth - fruNNik Upvote 0 Downvote
Maybe by using the OnGetEditText and SetEditText events of the Grid, you can get what you want ? SetEditText is called everytime the contents of the cell changes, and when you leave the edited cell, so you'd have to fiddle something there ... hth - fruNNik
May 18, 2004 Thread starter #3 Nordlund Programmer Jul 17, 2001 458 SE Yeps.. That was one om my solution, but the trick is to know when SetEditText should fire OnEndEdit. (A little bit tricky there, if even possible). Another apporach is to make a TInplaceEdit, and fire events from this object. I tried to override a visible change event, but then, my Grid threw an exception "like hell". (I tried to use CMShowingChanged, but with no luck)... //Nordlund Upvote 0 Downvote
Yeps.. That was one om my solution, but the trick is to know when SetEditText should fire OnEndEdit. (A little bit tricky there, if even possible). Another apporach is to make a TInplaceEdit, and fire events from this object. I tried to override a visible change event, but then, my Grid threw an exception "like hell". (I tried to use CMShowingChanged, but with no luck)... //Nordlund