Hard time

Posted:
Apr 26, 2003 @ 3:49pm
by Eberhardt_DK
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
Anyone have a suggestion on how to learn programming with GApiDraw together with Embedded C++ 3.0
Thanx
Eber
Open Source Project for learning

Posted:
Apr 26, 2003 @ 4:05pm
by Eberhardt_DK
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

Posted:
Apr 26, 2003 @ 4:08pm
by ppcStudios
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
Source Code

Posted:
Apr 26, 2003 @ 6:02pm
by warmi
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: