Results 1 to 7 of 7
Hybrid View
-
19th September 2016 09:46 #1
, VC++ 2008. , , ? PgUp, PgDn, Home End , - .
:
:
...
this->KeyDown += (gcnew System::Windows::Forms::KeyEventHandler( this, &MoveForm::Move_KeyPress));
...
...
...
private: System::Void Move_KeyPress(Object^ sender, System::Windows::Forms::KeyEventArgs^ e)
{
switch (e->KeyCode)
{
case Keys::d1 :{break;};
case Keys::d2 :{break;};
case Keys::d3 :{break;};
case Keys::d4 :{break;};
case Keys::d5 :{break;};
case Keys::Escape:{Form::Close();};
case Keys::Up:{break;};
}
e->Handled = true;
}
- , ., - , - .
-
19th September 2016 09:54 #2
-
19th September 2016 10:01 #3
, , .
:
, :
this->KeyPreview = true;
this->KeyDown += (gcnew System::Windows::Forms::KeyEventHandler( this, &MoveForm::Move_KeyPress));Last edited by IgIv; 19th September 2016 at 10:19. Reason:
, - , - .
-
19th September 2016 11:55 #4
, ( ). handle- , , Return . , .
( ) IsInputKey , true ( btw
). , .
PreviewKeyDown event-a ( - e->isInputKey = true; , ), event-a , .
Handler-a , / PreviewKeyDown.Last edited by tedych; 19th September 2016 at 12:09.
-
19th September 2016 12:59 #5
-
19th September 2016 23:08 #6ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in