[ Solved ] Autosave [modified]
-
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.";
} -
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.";
} -
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.";
}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
-
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.";
} -
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
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.";
}