Home > database >  How to make the DW in DDDW column according to the up and down arrow line escapement
How to make the DW in DDDW column according to the up and down arrow line escapement

Time:10-12

As title, trouble ah, always deal with
Can you have the DDDW columns is up and down arrow line escapement and not change the value of the inside

CodePudding user response:

This is the effect of datawindow data window itself, if removed, estimates that can't use up and down keys to choose the project, you customize a key event in the data window, the event id for pbm_dwnkey, and then judge if it is press the up and down key in it, is a row scrolltorow

CodePudding user response:

reference 1st floor lzp_lrp response:
this is the effect of datawindow data window itself, if removed, estimates that can't use up and down keys to choose the project, you customize a key event in the data window, the event id for pbm_dwnkey, and then judge if it is in it for press up and down, just scrolltorow line

No, dwnKey intercept arrow event, blocked by DDDW off, the Command and Other events also not line, I don't know whether here or in the original sybasebbs see anyone solved inside, with another event, but I don't have to turn over a week to find the article
I don't know what method

CodePudding user response:

Data window ue_key event, the event id for pbm_dwnkey
Add the following code:

If KeyDown (KeyDownArrow! And enclosing GetRow () & lt;> Enclosing the RowCount () Then//the next row
Enclosing SelectRow (0, False)
Enclosing SetRow (GetRow ())
Enclosing SelectRow (GetRow () + 1, True)
End the If

If KeyDown (KeyUpArrow! And GetRow () & lt;> 1 Then//on line
Enclosing SelectRow (0, False)
Enclosing SetRow (GetRow ())
Enclosing SelectRow (GetRow () - 1, True)
End the If

If KeyDown (KeyHome! And the RowCount () & gt; 0 Then//first line
Enclosing SelectRow (0, False)
Enclosing SetRow (1)
Enclosing SelectRow (1, True)
End the If

If KeyDown (KeyEnd! And the RowCount () & gt; Last line 0 Then//
Enclosing SelectRow (0, False)
Enclosing SetRow (RowCount ())
Enclosing SelectRow (RowCount (), True)
End the If

CodePudding user response:

reference yx812 reply: 3/f
data window ue_key event, the event id for pbm_dwnkey
Add the following code:

If KeyDown (KeyDownArrow! And enclosing GetRow () & lt;> Enclosing the RowCount () Then//the next row
Enclosing SelectRow (0, False)
Enclosing SetRow (GetRow ())
Enclosing SelectRow (GetRow () + 1, True)
End the If

If KeyDown (KeyUpArrow! And GetRow () & lt;> 1 Then//on line
Enclosing SelectRow (0, False)
Enclosing SetRow (GetRow ())
Enclosing SelectRow (GetRow () - 1, True)
End the If

If KeyDown (KeyHome! And the RowCount () & gt; 0 Then//first line
Enclosing SelectRow (0, False)
Enclosing SetRow (1)
Enclosing SelectRow (1, True)
End the If

If KeyDown (KeyEnd! And the RowCount () & gt; Last line 0 Then//
Enclosing SelectRow (0, False)
Enclosing SetRow (RowCount ())
Enclosing SelectRow (RowCount (), True)
End the If

No, dwnKey intercept arrow event, blocked by DDDW off, the Command and Other events also not line, I don't know whether here or in the original sybasebbs see anyone solved inside, with another event, but I don't have to turn over a week to find the article
I don't know what method
  • Related