Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Grom on March 25, 2007, 06:15:24 am

Title: components and ini files
Post by: Grom on March 25, 2007, 06:15:24 am
Do anybody know about a wx component that is able to save data fields from custom components to an ini file? Was something similar in Borland's IDE. That is very convenient tool. That is possible easily save the state of application. If it doesn't exist, somebody has to write it.
Title: Re: components and ini files
Post by: Game_Ender on March 25, 2007, 07:14:56 am
Do you mean automagically?  Or just a data persistence component?  For data persistence just use wxConfig.  Automagically means it somehow finds and restores these properties without your help.  This is really not that easy in a language without reflection like C++.
Title: Re: components and ini files
Post by: Grom on March 25, 2007, 07:22:13 am
I saw automatic one in Borland. Would be grate to find automatic for wxWidgets, even writer to XML script.