23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.12.5 Adjusting the Touch Keypad<br />

<strong>Visual</strong> <strong>Components</strong> touch keypads have a very simple design and can be used directly in most applications. If<br />

desired, the keypad can be modified to suit the look and feel of the application.<br />

<strong>Visual</strong> <strong>Components</strong> keypads were designed as bitmaps and can be modified as needed. However, only the<br />

design of the keys can be modified, not the function or the layout.<br />

Any graphics program which supports the Windows Bitmap format (.BMP) can be used to edit the keypad<br />

bitmaps.<br />

<strong>Visual</strong> <strong>Components</strong> runtime handles and displays the touch keypads just like any other bitmap. 256 colors are<br />

available just like for all other bitmaps in the project (see also Color Table).<br />

Various keypad bitmaps are added to the project depending on whether a 1/4 VGA display or a VGA (or larger)<br />

display is used. If a 1/4 VGA display is used, a bitmap for the numeric keypad and three bitmaps for the<br />

alphanumeric keypads are integrated (each 'page' uses a separate bitmap). For VGA (and larger), two bitmaps<br />

are integrated: One for the numeric keypad and one for the alphanumeric keypad.<br />

4.12.6 Tips and Tricks<br />

4.12.6.1 Logging User Actions<br />

Logging user actions for security reasons is an important topic. <strong>Visual</strong> <strong>Components</strong> does not offer a complete<br />

solution here.<br />

By using a few existing components and some programming code, a relatively easy solution for this problem can<br />

be found.<br />

The following lines do not contain a complete example. Instead, they only show ideas and concepts which can<br />

be used to record when a user logs on and logs off. Of course, this approach can be expanded later to record<br />

picture changes or the altering of values in variables.<br />

The Alarm System from <strong>Visual</strong> <strong>Components</strong> is used for this plan.<br />

Times when a user logs on and logs off are recorded in a separate alarm groups.<br />

A string input field allows the entry of the user name. String fields also provide the possibility to hide input<br />

(Mode: Password) which is used for password input.<br />

The password and user name are checked in the application program. If input is valid, then the user login time is<br />

recorded by having the alarm system set the corresponding alarm bit.<br />

Texts for user login and logout data are defined in the alarm group.<br />

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

The alarm system logs this entry with the system time and permanently saves the entry in the alarm history.<br />

On the alarm page, the actions of a certain 'user' alarm group can be output using group and alarm filters. Only<br />

alarms from a certain alarm group can be shown if a group filter is used.<br />

Note:<br />

Changes in machine data can also be recorded using this method. Multilingual output of alarm texts is also<br />

possible.<br />

428 4.12.5 Adjusting the Touch Keypad

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

Saved successfully!

Ooh no, something went wrong!