13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18<br />

14.4 Multitask system: multiple tasks calling <strong>emWin</strong> ..........................................316<br />

14.4.1 Description............................................................................................316<br />

14.4.2 Advantages ...........................................................................................316<br />

14.4.3 Disadvantages .......................................................................................316<br />

14.4.4 Using <strong>emWin</strong> .........................................................................................316<br />

14.4.5 Recommendations..................................................................................316<br />

14.4.6 Example ...............................................................................................316<br />

14.5 Configuration functions for multitasking support .........................................317<br />

14.6 Configuration macros for multitasking support ...........................................319<br />

14.7 Kernel interface API................................................................................320<br />

14.7.1 Examples ..............................................................................................323<br />

15 The Window Manager (WM) ......................................................................................325<br />

15.1 Description of terms ...............................................................................326<br />

15.2 Callback mechanism, invalidation and rendering .........................................327<br />

15.2.1 Rendering without callbacks.....................................................................327<br />

15.2.2 Rendering using callbacks .......................................................................328<br />

15.2.3 Overwriting callback functions..................................................................328<br />

15.2.4 Background window redrawing and callback...............................................329<br />

15.2.5 Invalidation ...........................................................................................330<br />

15.2.6 Rendering of transparent windows............................................................330<br />

15.2.7 Automatic use of memory devices ............................................................330<br />

15.2.8 Automatic use of multiple frame buffers ....................................................330<br />

15.2.9 Automatic use of display driver cache .......................................................331<br />

15.3 Motion support.......................................................................................331<br />

15.3.1 Enabling motion support of the WM ..........................................................331<br />

15.3.2 Basic motion support for a window ...........................................................331<br />

15.3.2.1 Using creation flags ................................................................................331<br />

15.3.2.2 Using API function..................................................................................331<br />

15.3.3 Advanced motion support........................................................................331<br />

15.3.3.1 WM_MOTION message and WM_MOTION_INFO..........................................332<br />

15.4 ToolTips ................................................................................................332<br />

15.4.1 How they work.......................................................................................333<br />

15.4.2 Creating ToolTips ...................................................................................333<br />

15.4.2.1 Creating ToolTips for dialog items.............................................................333<br />

15.4.2.2 Creating ToolTips for simple windows........................................................333<br />

15.5 Messages ..............................................................................................334<br />

15.5.1 Message structure ..................................................................................334<br />

15.5.2 List of messages ....................................................................................335<br />

15.5.3 System-defined messages .......................................................................336<br />

15.5.4 Pointer input device (PID) messages.........................................................340<br />

15.5.5 System-defined notification codes ............................................................343<br />

15.5.6 Application-defined messages ..................................................................343<br />

15.6 Configuration options..............................................................................344<br />

15.7 WM API.................................................................................................345<br />

15.7.1 Using the WM API functions .....................................................................347<br />

15.8 WM API: Basic functions..........................................................................348<br />

15.9 WM API: Motion support..........................................................................378<br />

15.10 WM API: ToolTip related functions ............................................................382<br />

15.11 WM API: Memory device support (optional) ...............................................385<br />

15.12 WM API: Timer related functions ..............................................................386<br />

15.13 WM API: Widget related functions.............................................................388<br />

15.14 Example ...............................................................................................392<br />

16 Window Objects (Widgets).........................................................................................395<br />

16.1 Some basics ..........................................................................................396<br />

16.1.1 Available widgets ...................................................................................396<br />

16.1.2 Understanding the redrawing mechanism ..................................................397<br />

16.1.3 How to use widgets ................................................................................397<br />

16.2 Configuration options..............................................................................399<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!