Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Edit boxes Interaction

Edit boxes Interaction

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swaapu
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • S swaapu

      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.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • D David Crow

        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

        S Offline
        S Offline
        swaapu
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups