Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / QStringGrid : Numeric fields only

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. QStringGrid : Numeric fields only
#1086
Posted by: 2003-08-26 23:51:56
'lo,

I want to trap all the key except numerics and point keys in a Column of a QStringGrid, but events OnKey* not allow to do that or i don't know how.

Have you a idea for me ?

Thanks

Second Question : there is no usenet news about rapid-q ?
Message2. Re: QStringGrid : Numeric fields only
#1087
Posted by: 2003-08-29 05:14:19
For the first question :

Sub ListeSalarie_OnKeyDown(Key as Word, Shift as Integer, Sender as QStringGrid)
    If (Key > 95 And Key < 106) Or (Key > 47 And Key < 58) Or Key = 110 Or Key = 188 Or Key = 190 Or Key = 46 Or Key = 8 Or Key = 13 Then Exit Sub
    KILLMESSAGE Sender.Handle, WM_CHAR
End Sub
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0