View Single Post
Old June 9th, 2009   #8 (permalink)
cottonvibes
You're already dead...
 
cottonvibes's Avatar
 
Join Date: Sep 2007
Location: Post-Apocalyptic Earth
Posts: 3,908
Quote:
Originally Posted by S.T.A.R.S. View Post
I am using the simple rich text box to save the changes for ANY control I want.
i'm not sure i understand what you're doing.

do you mean write the settings to a hidden rich text box, and then save/load it to some file using a function?


oh wait....
are you even talking about saving/loading settings between application startup?
or are you just talking about saving settings while running the application?

in either case, a rich-text-box control seems like overkill.
at the very-least, you can use a String instead.
but one of the nicest ways (and the common way to do it) is to have a struct with the different application setting's data.

something like:

Code:
struct appData {
    bool option1;
    bool option2;
    int  option3;
}

appData mySettings; // Global Struct with the App's Settings
__________________

Quote:
Eccentricity is often associated with genius, giftedness, or creativity. The individual's eccentric behavior is perceived to be the outward expression of his or her unique intelligence or creative impulse. In this vein, the eccentric's habits are incomprehensible not because they are illogical or the result of madness, but because they stem from a mind so original that it cannot be conformed to societal norms.
check out my blog
cottonvibes is offline   Reply With Quote