Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxWindows documentation

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxWindows documentation
#2810
Posted by: dejudicibus 2003-10-30 18:24:41
Is there a COMPLETE wxWindows documentation somewhere? I downloaded docs from www.wxwindows.org, but I have the impression that in wxWindows thyere is more than stated. For example, I realized that there isa  class to read INI file by searching sucha  class by Google. I already have it and I did not know. At last, I realized the it was mentioned in the doc page of wxConfigBase. And there is not much about it. How to use, what's the supported syntax of INI file, and so forth.

What I need is simply

READ VALUE OF KEY "x" INSIDE GROUP "a"

An advanced function might be

READ ALL CONFIG AND DYNAMICALLY BUILD A STRUCTURE config CONTAINING A NESTED STRUCTURE FOR EACH GROUP AND wxString FOR EACH KEY IN GROUP

For example:

FROM

[today]
todo=Call Jane

[tomorrow]
todo=Call Jane again

I wish to obtain

struct config {
  struct today {
    wxArray todo = "Call Jane" ;
  }
  struct tomorrow {
    wxArray todo = "Call Jane again" ;
  }
}

Is that possible?
Message2. Re: wxWindows documentation
#2813
Posted by: upCASE 2003-10-31 01:54:55
Yes, it is possible.
It is possible to use the reg, INI, file or whatever method for storing such data.
Normally Unix uses wxFileConfig, Windows 9x/NT/XP uses wxRegConfig, Windows 3.1 uses wxIniConfig.
To make porting easier wxWindows uses a wxConfig class that will be one of the others depending on your system. Read the "config overview" and wxConfigBase in the docs...
So, if you include <wx/config.h> and use wxConfig, wxWindows will choose for you what method of storing it should use.
If you really want to use wxIniConfig and break the portability of your code, include <wx/configbase.h> and <wx/iniconf.h>, then use wxIniConfig. The method are the same as for wxConfigBase.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: wxWindows documentation
#2830
Posted by: 2003-11-02 05:00:13
OK, I did what you said, but in Windows it mean that registry is used. I do not like registry, since makes difficult to move the application to other directories. I prefrer good old INI files. I do not understand why INI file should break portability. They can be read in any system, can't they?

DdJ
Message4. Re: wxWindows documentation
#2831
Posted by: guidance 2003-11-02 08:31:23
Because wxWindows use native service as much as possible and Win32 supports registry much more than INI. Anyway, I tried wxFileConfig (wxmsw242), almost same functionality with registry, very good, it also defaults "ini" extension. The only problem is, I can't create that file in arbitrary directory. By default, it is in document and settings<user> directory. If you worked it out, just post here, thanks!
Message5. Re: wxWindows documentation
#2834
Posted by: 2003-11-02 18:57:21
OK. I'll do. By the way, which is the official mechanism to submit wishes to wxWindows dev team? www.wxwindows.org? It seems to me that wxWindows is a real "best of breed" in portable programming, and that there are a lot of applications developed by that environment. On the other hand, I do not see such a large community of developers sharing info and samples as I expected. This is one of the few forums about wxWindows. There is not a USENET one. I am puzzled. Library is very good. It can be improved, of course, there are bugs, of course, but still one of the best I ever seen. And free!

DdJ
Message6. Re: wxWindows documentation
#2837
Posted by: upCASE 2003-11-02 21:05:30
Hi!
Go to www.wxwindows.org and join one of the mailing lists, that's where the action is :)
I think you could add wishes there too.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message7. Re: wxWindows documentation
#2838
Posted by: 2003-11-02 23:10:41
Well, I added myself to a mailing list since I joined wxWindows community, but I have not received anything. It looks like there is no communiction.
DdJ

P.S. Maybe I did something wrong in subscribing...
Message8. Re: wxWindows documentation
#2839
Posted by: 2003-11-02 23:13:56
Well, I added myself to a mailing list since I joined wxWindows community, but I have not received anything. It looks like there is no communiction.
DdJ

P.S. Maybe I did something wrong in subscribing...

Message9. Re: wxWindows documentation
#2845
Posted by: upCASE 2003-11-03 04:54:13
Hi!
Well, I'm not on the lists anymore, but when I was (wx-users and wx-dev), there was allways a hell lot of stuff going on. I think I got about 30 - 70 mails per day...

Hmmm, since I got a better connection now, maybe I should consider adding myself again. The only negative thing is that I hate browsing through so many mails, deleting more than 80% and reading the rest.
Too bad that they don't have a forum. Not sure why they didn't form one...

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message10. Re: wxWindows documentation
#2846
Posted by: 2003-11-03 05:31:54
I was just told that there is a forum: comp.soft-sys.wxwindows

I haven't seen it yet, but I was told it gets all mailing list posts from user ML.

DdJ
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2024-10-6  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0