|
Here is another example.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi
Who can write a program like :
http://timecapsule.yahoo.com/capsule.php
Or any idea?
|
|
|
|
|
What, you want this control in C++ ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Who can write a program like
Are you expecting someone to write it for you ?
If you need a C++ version of this control, then have a go at designing and writing one.
Have you tried ?
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
May be I try it in my first free time, if so I'll send it to CodeProject!
But first I want to know is there anybody who has written something like that (in VC++)?
|
|
|
|
|
Why bother? it's a great idea for a website and rewriting the whole thing(including the graphics) as an ActiveX control would be epic!
ambitious though
Tom
|
|
|
|
|
hi,
i use a editbox control in my dialog.
after entering the value in to the editbox and pressing the enter key i need a message box to be displayed.
can ne body help,
thanks in advance,
suresh.u
|
|
|
|
|
Hello
Suresh , I hope minutes before WhiteSky already told you the way to add an event handler to the menu item and how to display a message box. If you spend few minutes with the class wizard yoi should be able to spot the event handler for the button in the class where it is part of .
Anyway ,
In the edit box property change the type from Control to value and choose a CString variable as the holder of values.
Now in nButton1() , use the CString variable to pass to AfxMessageBox(str)
redindian
|
|
|
|
|
Hello
In the edit box properties , change the type from Control to Value . And set a CString as the holder.
In ClassWizard , add a event handler to the buitton the same way you did to menu item as described by WhiteSky
In the OnButtonX() , pass the CString variable as parameter to AfxMessageBox()
redindian
|
|
|
|
|
drag and drop a edit box - IDC_EDIT1
drag and drop a button - IDC_BUTTON1
Now Right click -> Class Wizard ->Choose "member variable" tab ->Select IDC_EDIT1->Click "Add variable" Now give a string m_String.
Now go to Message map tab->Choose IDC_BUTTON1->select BN_CLICKED -> Click "Add Function" . Give ok to OnButton1().
Now go to the proper .cpp file which ends eith *dlg.cpp . Change the function OnButton1() definetion as below
void CProjDlg::OnButton1()
{
// TODO: Add your control notification handler code here
AfxMessageBox(m_String);
}
redindian
|
|
|
|
|
Go to Workspace window->Click on Resource view -> Choose the project's main dialog . Go to menu "Layout" -> Click on Tab order -> Choose your button as 1 and Ok and Cancel buttons as 2 and 3 . Now Enter will work as L buton click
redindian
|
|
|
|
|
sureshu wrote: i hav done wat u hav asked to do so but as soon as i enter the value in to the textbox and press enter my application closes
See the FAQ[^]
|
|
|
|
|
hello
see my last reply
redindian
|
|
|
|
|
hav done wat u hav asked to do so but as soon as i enter the value in to the textbox and press enter my application closes.
what to do to display the value ntered in the enter key.
suresh.u
|
|
|
|
|
Choose 1 as tab order of edit box
2 as tab order of button
3 and 4 for Ok and cancel
redindian
|
|
|
|
|
no its not working!!!!!!!!!!!!!!
suresh.u
|
|
|
|
|
Did you read the link I posted ?
|
|
|
|
|
s nw the dialog doesnt close as per dharani replies i made the use of her code.
suresh.u
|
|
|
|
|
Hi suresh
I am a "he"
redindian
|
|
|
|
|
now presssing the enter key i get a mss box but the value entered in the edit box is not displayed in the message box only empty message box appears. thats 2 the concept given by u works only with the presence of default OK and CaANCEL button. And its not working for the button I dragged from the tool box.
suresh.u
|
|
|
|
|
Please show the code snippet that responds to the (clicking of the) OK button.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Add UpdateData(TRUE); just before the messagebox
redindian
|
|
|
|
|
Dear all
I write a dll in visual C++.
There exist one exception in it that make program unstable.
I want to find the place of exception.
I can use Dr watson or windbg or any other debugger tool but not Visual C++.
May you please help me.
Regards
Mahdi
|
|
|
|
|