Wxwidgets is an open source Cross-platform C + + Architecture Library

Source: Internet
Author: User
Keywords nbsp cross-platform open source others writing
Tags aliyun cross cross-platform development framework graphical user interface gui html

Wxwidgets is an open source Cross-platform c++++ Architecture Library (framework) that can provide GUI (http://www.aliyun.com/zixun/aggregation/18378.html "> Graphical user interface) and other tools. The current 2.x version supports all versions of Windows, UNIX and OS with gtk++ or motif. A support powering version is under development.

Wxwidgets was first developed by the Institute of Artificial Intelligence applied at the University of Edinburgh (Edinburgh), mainly for internal use, and was unveiled for the time being in 1992. The 2.x version has been greatly improved and written and maintained by Julian Smart, Robert Roebling, Vadim Zeitlin, Vaclav Slavik, and more.

The subject of wxwidgets is built by C + +, but you do not have to use C + + to have wxwidgets.wxwidgets with many other languages (binding) so that you can use wxwidgets when writing programs in other languages.

Installation

This example applies to Ubuntu 9.10

C + + Basic development environment: sudo apt install build-essential
wxgtk2.8 Development kits: sudo apt install Libwxgtk2.8-dev
List of all packages required:

g++
Libstdc++-dev
Wx2.8-headers
libwxgtk2.8
Libwxgtk2.8-dev

A simple example

#include <wx/wx.h>

Class Simple:public Wxframe
{
Public:
Simple (const wxstring& title);
};

Class Myapp:public Wxapp
{
Public:
virtual bool OnInit ();
};

Simple::simple (const wxstring& title)
: Wxframe (NULL, Wxid_any, title, Wxdefaultposition, Wxsize (250, 150))
{
Pew ();
}

Implement_app (MYAPP)

BOOL Myapp::oninit ()
{
Simple *simple = new Simple (WXT ("simple"));
Simple->show (TRUE);
return true;
}

Compile command:

g++-o simple simple.cpp \
' Wx-config--cxxflags--libs '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.