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. Design and Architecture
  4. [ Solved ] Autosave [modified]

[ Solved ] Autosave [modified]

Scheduled Pinned Locked Moved Design and Architecture
c++cssquestion
5 Posts 3 Posters 4 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.
  • H Offline
    H Offline
    Hamed Musavi
    wrote on last edited by
    #1

    How you seen MAC OS forms and dialogs? Most of them don't have any save button. I was wondering when exactly (and in response to which event) they store data to hard drive. I wanted to implement a simmilar functionality in MFC Dialogs, I have a grid, clicking on each row of the grid, loads respective data to the controls below the grid. After user changes data in the controls(textboxes, combo, etc) data should be saved automatically. Which messages would you process to archive this goal? (I thought of KillFocus but there are some issues ) -- modified at 12:07 Friday 21st September, 2007

    // "Life is very short and is very fragile also." Yanni
    while (I'm_alive)
    {
    cout<<"I love programming.";
    }

    L M 2 Replies Last reply
    0
    • H Hamed Musavi

      How you seen MAC OS forms and dialogs? Most of them don't have any save button. I was wondering when exactly (and in response to which event) they store data to hard drive. I wanted to implement a simmilar functionality in MFC Dialogs, I have a grid, clicking on each row of the grid, loads respective data to the controls below the grid. After user changes data in the controls(textboxes, combo, etc) data should be saved automatically. Which messages would you process to archive this goal? (I thought of KillFocus but there are some issues ) -- modified at 12:07 Friday 21st September, 2007

      // "Life is very short and is very fragile also." Yanni
      while (I'm_alive)
      {
      cout<<"I love programming.";
      }

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Hamed Mosavi wrote:

      but there are some issues

      Like what?

      H 1 Reply Last reply
      0
      • H Hamed Musavi

        How you seen MAC OS forms and dialogs? Most of them don't have any save button. I was wondering when exactly (and in response to which event) they store data to hard drive. I wanted to implement a simmilar functionality in MFC Dialogs, I have a grid, clicking on each row of the grid, loads respective data to the controls below the grid. After user changes data in the controls(textboxes, combo, etc) data should be saved automatically. Which messages would you process to archive this goal? (I thought of KillFocus but there are some issues ) -- modified at 12:07 Friday 21st September, 2007

        // "Life is very short and is very fragile also." Yanni
        while (I'm_alive)
        {
        cout<<"I love programming.";
        }

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        Hamed Mosavi wrote:

        How you seen MAC OS forms and dialogs? Most of them don't have any save button.

        They do. It's in the menu bar. Applications on MacOS X usually do not have toolbars like they do on Windows. When people want to save, they press the "Apple Key"-S or go to the menu and select the Save item. Also, to be noted, all applications on Mac OSX (There are some exceptions) have a menu; and it's good practice to have the basic items available ( File, Edit, ...) Now, on Windows, if you have a Dialog based application, you will need to have a UI mechanism to let the user save the data. Either put a button "save", a menubar or a toolbar. IMO, it's not a good idea to have an Autosave that replace a save (and "save as") command.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        H 1 Reply Last reply
        0
        • L led mike

          Hamed Mosavi wrote:

          but there are some issues

          Like what?

          H Offline
          H Offline
          Hamed Musavi
          wrote on last edited by
          #4

          Saving data on each killfocus causes a lot of hard disk engagement. Putting save on killfocus of last control is not practical because later UI might change, or it might be optional, and user might never set focus into it, so there won't be any killfocus. Anyway, I decided to put that save button, after thinking a little bit more today. As another post suggested here, it's not such a nice idea to put such a feature. Thanks.

          // "Life is very short and is very fragile also." Yanni
          while (I'm_alive)
          {
          cout<<"I love programming.";
          }

          1 Reply Last reply
          0
          • M Maximilien

            Hamed Mosavi wrote:

            How you seen MAC OS forms and dialogs? Most of them don't have any save button.

            They do. It's in the menu bar. Applications on MacOS X usually do not have toolbars like they do on Windows. When people want to save, they press the "Apple Key"-S or go to the menu and select the Save item. Also, to be noted, all applications on Mac OSX (There are some exceptions) have a menu; and it's good practice to have the basic items available ( File, Edit, ...) Now, on Windows, if you have a Dialog based application, you will need to have a UI mechanism to let the user save the data. Either put a button "save", a menubar or a toolbar. IMO, it's not a good idea to have an Autosave that replace a save (and "save as") command.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            H Offline
            H Offline
            Hamed Musavi
            wrote on last edited by
            #5

            Maximilien wrote:

            They do. It's in the menu bar.

            Sorry, I once, out of curiosity, downloaded the tiger version of MAC on a Vmware Hdd. I think it was illegal, so I deleted that. I had not enough time to investigate all parts of the OS. I couldn't see that button, and I don't remember where it was exactly. But you seems to have a good experience with that, so you're right probably. I'm sorry because of such a stupid mistake.

            Maximilien wrote:

            IMO, it's not a good idea to have an Autosave that replace a save (and "save as") command.

            You're right and I added that already today. It's almost a long time since I posted the comment today. Anyway, thank you so much for your help.:)

            // "Life is very short and is very fragile also." Yanni
            while (I'm_alive)
            {
            cout<<"I love programming.";
            }

            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