|
From: Ramana K. <ra...@my...> - 2001-01-05 23:45:08
|
Jose, I realised that I could use the & to "accelerate" a key (I use this with my menu items, &Open, for example). >That depends on the key... Do you know the way I can make my "&Cancel" button respond to the "Esc" key? Are there special ways for each key (like DEFPUSHBUTTON, for "Enter")? I also noticed that you and a few other win32 programmers have been talking about MSDN. I have got a version of the SDK help (win32.hlp) but this is very old (based on the content) - it doesn't cover HTML help, only Win Help and a few other things are old too. I'll have a look at the MSDN site, but could you tell me the URL to download the SDK help or, the hyperlinks to take. Also, do you know whether I am using MFC or pure API? I don't use functions like OnInitDlg(), for dialogs I use a BOOL CALLBACK function. Oh, and what does SDK stand for, because although this came from Microsoft, it seems to cover some of the things I use (which I thought was pure API). I could be using both. Thank you so much, Ramana Kumar ICQ# 93667117 Get paid to surf the web! Go to: https://www.alladvantage.com/joinsecure.asp?refid=jpn471&cntry=1 -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Jose Manuel Padron Carrillo Sent: Saturday, January 06, 2001 12:49 AM To: dev...@li... Subject: Re: [Dev-C++] buttons --- Ramana Kumar <ra...@my...> escribió: > How do I make a PUSHBUTTON respond to a key? > For example, when you click File->Open in Dev-C++ you have a window > to open > the file. If you press escape, the "Cancel" button is pressed and if > you > press enter, the "Open" button is pressed. > > How can I make a button I create respond to a key like this? > I make the button in the resources file in a dialog box: > > ... > PUSHBUTTON "Cancel",-1,0,0,100,15 > ... > > When I make an item on a menu respond to a key, it is like this: > > Myaccel ACCELERATORS > { > <key>,<ID>,VIRTKEY > } > > Is there a similar thing for buttons? > > Please note from my source code that I am using the Win32 API, but, > if you > know of a way I can solve the problem that is different from this > (and, of > course, works in Dev-C++) I would be happy to hear about it. > > Thank you, > Xerchzkopfinc. Ramana Kumar (Ra...@my...) > ICQ# 93667117 > To get paid for surfing the 'net please visit > https://www.alladvantage.com/joinsecure.asp?refid=jpn471&cntry=1 > That deppends on the key, but to make it simple use this PUSHBUTTON "C&ancel",-1,0,0,100,15 and when you press the key a the button will be pushed. Cheers, Chemanuel __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |