wxWindows for Cross-Platform Coding

The well-tested wxWindows is the toolkit behind the upcoming Chandler groupware.
A Sample or Two

Creating a simple application class is easy. Listing 1 provides a basic sample of creating a wxApp class.

As you can see, creating a main wxWindows application is rather easy, and those of you familiar with MFC may be rubbing your chin thoughtfully. You'll be glad to know there is no MFC in it, nor will there ever be MFC in it, but the classes are a simple transition from MFC. It has few things MFC doesn't, and it does not support OLE.

Listing 1. Creating a wxApp Class

An empty Event table is present in Listing 1, which allows you to handle events, such as a mouse click or a key pressed or your own custom events. Of course, this code shows a rather boring main application that sits there and stares at you without even blinking.

Working examples abound with the library; every single class appears to have an example demonstrating its usage. One example is the event-handling sample, by Vadim Zeitlin. This example is used because many developers beginning to use the wxWindows library seem to have some problems with events; you'll now be ahead of the game. You need the wxWindows library to try this, and if you do, you get the full source code for it under the Samples directory.

There's even a Wiki linked to from the site, so you can access the latest documentation quickly and even correct it if you find something to add.

Give the Developers Their Due

Aside from the cast of thousands, a core development team should receive special mention and thanks:

These developers frequently are seen helping users of the wxWindows library on a daily, if not hourly, basis on the wx-user mailing list.

wxWindows: the Future

The release of version 2.4.0 of the wxWindows library was followed by requests from the development team for what they would like to see in version 3.0. New ports are always in the works, and the next release should be no different. One of the ports expected is the Windows CE port from Marco Cavallini and Robert Roebling.

Winelib support also is on the way, courtesy of the Winelib team, and proprietary tools for porting from MFC to wxWindows are being worked on by Julian Smart and Stefan Csomor.

With more and more companies wanting to use Linux, they will be looking for ways to port their MFC code to Linux, and one of the simplest is with the wxWindows library. The cost alone makes it worthwhile. Development issues for porting from the MFC are minimalized due to the simplicity of the library itself. Thus, if a company is looking to change from a Windows-based system to a Linux-based system, they can expect an easy porting of any code that they have. A wxNet port is even in progress.

Perhaps you have something to add to the many applications done with wxWindows. An up-to-date list of wxWindows applications is available at wxWindows.org.

email: cnd@knowprose.com

Taran Rampersad is a software developer with 14 years of experience, presently doing consultation, development and writing from Trinidad and Tobago. He's actively involved with local computer societies, process management and assisting in organizing the Caribbean FLOS Conference (floscaribbean.org). His personal web site is KnowProSE.com.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: wxWindows for Cross-Platform Coding

xxhimanshu's picture

Hello Sir,

I am newbie to cross platform applcaition development and I want to develop an applciation for Linux as well as windows. Please guide me through.

Looking through wxWindows and I have installed the necessary libs and softwares including devc++ and wxWindows and am able to compile and create some simple forms using it.

I need just a refernece or guide so as what shud be the considerations and necessities while developing a cross platform application. How to proceed with it and how to compile it as well as can we do it the way we want it to??

I need to create a sample applciation and the steps as how to create an applciation platform independent. As per the documentation provided by you. I am sure that you cud guide me towards the goal.

Any help or pointers are thoroughly appreciated. Or maybe some documentation as how to proceed with the same.

Looking forward to a soomer response.

Thanks a lot in advance.

Regards,
Himanshu

Re: wxWindows for Cross-Platform Coding

Anonymous's picture

Hello Sir,

I am newbie to cross platform applcaition development and I want to develop an applciation for Linux as well as windows. Please guide me through. I saw your article at sourceforge about linuxjournal.

http://www.linuxjournal.com/comments.php

Looking through wxWindows and I have installed the necessary libs and softwares including devc++ and wxWindows and am able to compile and create some simple forms using it.

I need just a refernece or guide so as what shud be the considerations and necessities while developing a cross platform application. How to proceed with it and how to compile it as well as can we do it the way we want it to??

I need to create a sample applciation and the steps as how to create an applciation platform independent. As per the documentation provided by you. I am sure that you cud guide me towards the goal.

Any help or pointers are thoroughly appreciated. Or maybe some documentation as how to proceed with the same.

Looking forward to a soomer response.

Thanks a lot in advance.

Regards,
Himanshu
xxhimanshu@yahoo.com

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState