PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Hard time

Eberhardt_DK · 26 Apr 2003, 14:49 UTC
Hi

Anigma works fine on the Qtek (called O2 in UK I guess).

I've been digging down into the source code. Looks very complicated :roll:

Anyone have a suggestion on how to learn programming with GApiDraw together with Embedded C++ 3.0 :?:

Thanx
Eber
Eberhardt_DK · 26 Apr 2003, 15:05 UTC — Open Source Project for learning
Hi

Why not start an Open Source Project where everybody interested can learn to program using GApiDraw in combination with Embedded C++ 3.0:?:

/Eber
If you already know C++, then there's not alot to learn to understand eVcc. If you don't know C++, get a good C++ book or study the many online C++ tutorials available. As far as learning GapiDraw, the included sample programs are invaluable learning tools. There are also several complete programs available for reference (Anigma, PocketKobo) as well as a number of tutorials done by developers. You can find some tips on my website as well at www.ppcstudios.com
warmi · 26 Apr 2003, 17:02 UTC — Source Code
Uh .. Anigma is not exactly the best example if you want to learn basic GapiDraw usage.
It is rather complicated in the sense that the game is not really using GapiDraw directly but rather small GUI framework built on top of GapiDraw.

The framework consists of entire set of widgets,dialogs, messaging system (slots and signals ), timer and file access classes etc ..

If you are interested in CGapiDraw usage then check WR_Application ( which is main application class derived from CGapiApplication) and WR_Painter ( which is sort of like Java Graphics class or even CPaintDC - it encapsulates all graphic calls.)

Basically the entire framwork is based upon concept of a window which has bunch of virtual methods like :
paintEvent(WR_Painter *p);
stylusPressEvent ( WR_StylusEvent * );
resizeEvent();
moveEvent();
etc..
The idea is that you never directly use CGapiDraw but rather write MFC/JAva/Qt like code creating windows, responding to paint messages etc ...

Here is an ugly screenshot (using default GapiDraw system font) of a window with a listbox and button and two transparent dialogs ( one with a listbox) floating above that window:
http://www.warmi.net/tmp/framework.png