Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / QStringGrid  "AfterUpdate" event???

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. QStringGrid  "AfterUpdate" event???
#5769
Posted by: dbickin 2005-02-01 00:22:46
I have created a stringgrid, and am allowing theuser to edit the text in the grid. Now I need to capture the edited text after the user has FINISHED editing the cell. That is, they have hit enter or moved to ta different cell... or I guess, focus has moved to a different control. In Access I would be using the AfterUpdate event. What event would I capture in rapid-q?   I tried OnSetEditText, but that triggers on each keystroke the user makes. I need to make on write when the cell is no longer being edited. And I would prefer not to force the user to abandon the keyboard to click on a button.

Thanks,
David
Message2. Re: QStringGrid  "AfterUpdate" event???
#5772
Posted by: dbickin 2005-02-02 01:29:52
For what it is worth, I figure it out. You capture the OnSetEditText event, but then test to see if the editormode for the grid is 0. (If it is one, the cell is still being edited.)

sub grid_OnSetEditText(Col%, Row%, Value$, Grid as QStringGrid)

  if Grid.EditorMode=0 then
    ' edits are done, you can use the new value for the cell
  end if

end sub

David
Message3. Re: QStringGrid  "AfterUpdate" event???
#5775
Posted by: guidance 2005-02-02 11:53:37
Thanks for your contribution!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥900.00 ·
 
 
¥810.00 ·
 
 
¥317.00 ·
 
 
¥1,370.00 ·
 
 
¥660.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0