Click here to Skip to main content
15,887,350 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to create and add ".rc" file in your project? Pin
Nelek5-Oct-07 2:37
protectorNelek5-Oct-07 2:37 
Questioni/o stream problem Pin
david bagaturia5-Oct-07 0:56
david bagaturia5-Oct-07 0:56 
QuestionRe: i/o stream problem Pin
David Crow5-Oct-07 3:36
David Crow5-Oct-07 3:36 
QuestionPressing several buttons at once Pin
vSteve5-Oct-07 0:04
vSteve5-Oct-07 0:04 
AnswerRe: Pressing several buttons at once Pin
Nishad S5-Oct-07 1:02
Nishad S5-Oct-07 1:02 
GeneralRe: Pressing several buttons at once Pin
vSteve5-Oct-07 1:12
vSteve5-Oct-07 1:12 
GeneralRe: Pressing several buttons at once Pin
Nishad S5-Oct-07 1:32
Nishad S5-Oct-07 1:32 
GeneralRe: Pressing several buttons at once Pin
Nathan Holt at EMOM5-Oct-07 5:58
Nathan Holt at EMOM5-Oct-07 5:58 
KalvinComer wrote:
I have a dialoge that has two buttons (BT1, BT2).

I would like it to be the case that I can:

press 1 on the keybord and BT1 depresses (and calls and associated button1 clicked method). Releasing 1 un depresses BT1.

press 2 on the keybord and BT2 depresses (and calls and associated button2 clicked method). Releasing 2 un depresses BT2.

Press and hold 1 and 2 on the keyboard, and both BT1 and BT2 depress. Releasing 1 and 2 un-dpresses BT1 and BT2.


I would use "pushbutton like" checkboxes instead of normal buttons, because you can make them look depressed just by set their state to checked, and release them by seting their state to unchecked. This would also make the dialog useable for someone who doesn't want to use the keyboard. Your idea of handling two keys pressed at once would work, but I think it would be easier to just assign '1' and '2' as shortcut keys to the respective buttons. That way, a user could press, but not hold '1' to either press or release button 1, and similarly for button 2.

Nathan
GeneralRe: Pressing several buttons at once Pin
vSteve6-Oct-07 22:23
vSteve6-Oct-07 22:23 
GeneralRe: Pressing several buttons at once Pin
Nathan Holt at EMOM8-Oct-07 10:30
Nathan Holt at EMOM8-Oct-07 10:30 
GeneralRe: Pressing several buttons at once Pin
vSteve8-Oct-07 23:34
vSteve8-Oct-07 23:34 
QuestionHow to avoid 3rd party frame's vestiges on my app [modified] Pin
Nelek5-Oct-07 0:01
protectorNelek5-Oct-07 0:01 
QuestionClass Variable Initialization Pin
nitin34-Oct-07 23:32
nitin34-Oct-07 23:32 
AnswerRe: Class Variable Initialization Pin
Nelek4-Oct-07 23:43
protectorNelek4-Oct-07 23:43 
GeneralRe: Class Variable Initialization Pin
nitin34-Oct-07 23:58
nitin34-Oct-07 23:58 
GeneralRe: Class Variable Initialization Pin
ThatsAlok5-Oct-07 0:46
ThatsAlok5-Oct-07 0:46 
GeneralRe: Class Variable Initialization Pin
jhwurmbach5-Oct-07 0:53
jhwurmbach5-Oct-07 0:53 
GeneralRe: Class Variable Initialization Pin
Mark Salsbery5-Oct-07 6:03
Mark Salsbery5-Oct-07 6:03 
QuestionRe: Class Variable Initialization Pin
David Crow5-Oct-07 3:39
David Crow5-Oct-07 3:39 
QuestionHow to Create Process in new Desktop Pin
GauranG Shah4-Oct-07 23:17
GauranG Shah4-Oct-07 23:17 
AnswerRe: How to Create Process in new Desktop Pin
nitin34-Oct-07 23:35
nitin34-Oct-07 23:35 
GeneralRe: How to Create Process in new Desktop Pin
GauranG Shah5-Oct-07 0:03
GauranG Shah5-Oct-07 0:03 
QuestionRe: How to Create Process in new Desktop Pin
GauranG Shah5-Oct-07 0:35
GauranG Shah5-Oct-07 0:35 
QuestionLinking Errors Pin
kiranin4-Oct-07 22:49
kiranin4-Oct-07 22:49 
AnswerRe: Linking Errors Pin
Hamid_RT4-Oct-07 23:12
Hamid_RT4-Oct-07 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.