Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

hot key kombinacija slova u VB

[es] :: Visual Basic 6 :: hot key kombinacija slova u VB

[ Pregleda: 3529 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

kopca

Član broj: 14307
Poruke: 118
*.163.EUnet.yu



Profil

icon hot key kombinacija slova u VB02.09.2004. u 09:59 - pre 239 meseci
Kako da na nivou forme (keyPrevivew = true) uhvatim KOMBINACIJU nekih karaktera? NPR. "YTU" je stisnuto u isto vreme, ili ctrl - shift - r ili tako nesto...
kopca
 
Odgovor na temu

mladenovicz
Zeljko Mladenovic
Xoran Technologies, Inc., Ann Arbor, MI,
USA / Software Engineer
Ann Arbor, MI, USA

Član broj: 6598
Poruke: 2065
*.bg.wifi.vline.verat.net

Jabber: mladenovicz@elitesecurity.org
ICQ: 95144142
Sajt: yubc.net/~mz


Profil

icon Re: hot key kombinacija slova u VB02.09.2004. u 10:17 - pre 239 meseci
Code:

Private Sub Form_KeyDown(keycode As Integer, shift As Integer)
Private Sub Form_KeyUp(keycode As Integer, shift As Integer)


Shift parametar je ono sto te zanima:
Citat:
MSDN:
An integer that corresponds to the state of the SHIFT, CTRL, and ALT keys at the time of the event. The shift argument is a bit field with the least-significant bits corresponding to the SHIFT key (bit 0), the CTRL key (bit 1), and the ALT key (bit 2 ). These bits correspond to the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed. For example, if both CTRL and ALT are pressed, the value of shift is 6.


Vb ima konstante za ove tastere

Code:

vbCtrlMask
vbAltMask
vbShiftMask

 
Odgovor na temu

[es] :: Visual Basic 6 :: hot key kombinacija slova u VB

[ Pregleda: 3529 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.