by edge » Aug 30, 2007 @ 11:56am
Hi Meiline,
Please note that you need to implement the GUI event system yourself.
Here may be some tips to implement a GUI system:
- Create a standard control class which may be overridden (use virtual methods)
- The standard control class may contain a text, image, location and size property
- Forward OnButtonDown/Up and OnStylusDown/Up events to the controls and keep input states
- Implement a messaging system to make your application react on GUI events
The above can be compared to how Windows (mobile or desktop) handles it. In Windows every control is a window and can have certain styles (a single border, a 3d border like a button, no border for text-only controls, etc.).