Wx::ConfigBase
From WxPerl wiki
The only methods to note are
Wx::ConfigBase::Get()
By default returns the current config object, creating it if it doesn't exist. If you pass 0, the object isn't created, if you pass 1, it's the default behaviour.
Alternatively, you can use
Wx::ConfigBase::Create(),
to create an object explicitly, which is what I believe
Wx::ConfigBase::Get does.
After you have an a config object, you normally use one of the following:
Write(key, value) Writes a string WriteInt(key, value) Writes an integer WriteFloat(key, value) Writes a floating point number WriteBool(key, value) Writes a boolean Read(key, default="") Returns a string ReadInt(key, default=0) Returns an integer ReadFloat(key, default=0.0) Returns a floating point number ReadBool(key, default=0) Returns a boolean
- WARNING**
- WARNING**
be sure to do a $yourApp->SetAppName
before you create a config object, it's how one app's config object is differentiated from another (doing a $youApp->SetVendorName wouldn't hurt either)
