|
From: michel.weinachter <mic...@fr...> - 2003-04-26 19:54:05
|
(bonjour,)
hello,
You could find in your dev-c++ directory a new folder docs with various
files. The most important is wx.chm file.
Zero : read "topics overview"->
*Notes on using the reference* <wx450.htm#referencenotes>
*Writing a wxWindows application: a rough guide* <wx451.htm#roughguide>
*wxWindows Hello World sample* <wx452.htm#helloworld>
*wxWindows samples* <wx453.htm#samples>
*wxApp overview* <wx454.htm#wxappoverview>
First create a new wxwindows project and read the comments.
Second compile it click on the classes tab : you now have the list off
all the classes of the project .
You could also add in the editor properties->completion the file
include\wx\wx.h (very useful).
you can create a button add
wxButton *toto= new wxButton(frame, 2, "this is a test");
toto->SetBackgroundColour(wxColour(120,0,0));
just after :
---------
bool MyApp::OnInit()
{
// create the main application window
MyFrame *frame = new MyFrame(_T("Minimal wxWindows App"),
wxPoint(50, 50), wxSize(450, 340));
-------------
this way is not the best, but it's very simple.
You could download wxwindows for windows at :
http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.0-setup.zip
In the samples directory you will find a lot of examples
and
http://prdownloads.sourceforge.net/wxwindows/wxWindows-2.4.0-WinHelp.
for the winhelp file that you can add to the dev-cpp help menu.
finaly, if you want build complex apps use the xrc contrib (that should
be in the main library soon). To edit xrc files I am using xrced
provided with wxPython.
bye
|