Edit boxes Interaction
-
I am working on MFC SDI Application. I hav attached two dialogs. Both hav one editbox control. In these text boxes, file names are to be displayed. They can be edited in them as well as browsed using the browse button on the same dialog. Browse button is working. I also want that, the second dialog, which has the editbox for destination file path , should show the path of the source file, after changing the file extension. how to do it??? Now, the problem is , it es showing "Enter Source File", even if, the source file is already entered. Thanx for ur valuable time.
-
I am working on MFC SDI Application. I hav attached two dialogs. Both hav one editbox control. In these text boxes, file names are to be displayed. They can be edited in them as well as browsed using the browse button on the same dialog. Browse button is working. I also want that, the second dialog, which has the editbox for destination file path , should show the path of the source file, after changing the file extension. how to do it??? Now, the problem is , it es showing "Enter Source File", even if, the source file is already entered. Thanx for ur valuable time.
swaapu wrote: I hav attached two dialogs. How are the dialog boxes displayed? Are they both modeless, or is one modal and the other modeless? swaapu wrote: I also want that, the second dialog, which has the editbox for destination file path , should show the path of the source file, after changing the file extension. how to do it??? This question leaves a lot to the imagination. What is the "source file" and "file extension" of which you refer? Explain a bit better as to how these two dialog boxes work in the overall scheme. Do they send information back and forth to each other? swaapu wrote: Now, the problem is , it es showing "Enter Source File", even if, the source file is already entered. What is "it?"
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
swaapu wrote: I hav attached two dialogs. How are the dialog boxes displayed? Are they both modeless, or is one modal and the other modeless? swaapu wrote: I also want that, the second dialog, which has the editbox for destination file path , should show the path of the source file, after changing the file extension. how to do it??? This question leaves a lot to the imagination. What is the "source file" and "file extension" of which you refer? Explain a bit better as to how these two dialog boxes work in the overall scheme. Do they send information back and forth to each other? swaapu wrote: Now, the problem is , it es showing "Enter Source File", even if, the source file is already entered. What is "it?"
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
hi! I read ur reply. following points will clear ur doubts about my application: Both the dialog boxes are modal. Then you asked me: What is the "source file" and "file extension" of which you refer? The extension of source file is .yak. It is an "ini file". Then the name which has to be displayed in the second edit box will be the same but the extension is changed to ".config". Then u said: "Explain a bit better as to how these two dialog boxes work in the overall scheme. Do they send information back and forth to each other?" These dialog boxes don`t send inforation back and forth to each other. But, on clicking OK button in the first dialog box, the second one gets opened, and by default shows the same file name(as was entered in the first one) in the edit box , with the extension changed. Thanx a lot