IMPORTANT NOTICE:
Be sure to copy the sub-directory, DemoAllWidgets, in this directory to the following path:
C:\ICPDAS\HMIWorks_Standard\bin\Lib
(where "C:\ICPDAS\HMIWorks_Standard\" is the installation path.)
Otherwise some graphics may not display successfully and result in compile errors.

Goal:
Demonstrate how to use C language to use tools (widgets and system components) in HMIWorks.
This example demonstrates, TextPushButton, Slider, BitButton, HotSpot, CheckBox, Timer, PaintBox, ObjectList.
In the BitButton page of the project, we demostrate how to read/write the flash as parameters.
Users can find out params.h in C:\ICPDAS\HMIWorks_Standard\include.
Be sure to re-define the struct in params.h as the followings if necessary.

...
typedef struct 
{
  unsigned long MagicID;
  long Params[7];
} tTouchParams;

#define USER_PARAMS_DATA_SIZE (124+256)

typedef struct
{
    unsigned char ucSequenceNum;
    unsigned char ucCRC;
    unsigned char ucVersion;
	tTouchParams Portrait;
	tTouchParams Landscape;
	tTouchParams PortraitFlip;
	tTouchParams LandscapeFlip;
	
    unsigned char UserParamsData[USER_PARAMS_DATA_SIZE];
}
tParameters;
...
Except UserParamsData, the member of the struct tParameters must not be modified or the system may be severely damaged.
Although the members should not be changed, users can add new members into the struct tParameters.
Note that the total size of the newly-added members and the UserParamsData must be a constant value (124+256).
Users should reset the value of USER_PARAMS_DATA_SIZE to make the struct tParameters has a constant size.
If the struct tParameters does not have a constant size, it may result in access failures and damage the system.

Requirements:
TPD-283	x 1

For details:
http://www.icpdas.com.tw/product/solutions/hmi_touch_monitor/touchpad/touchpad_selection.html

===============================================================
n`NG
бNM׸Ƨ DemoAllWidgets lƧAƻsUC|G
C:\ICPDAS\HMIWorks_Standard\bin\Lib
(䤤 C:\ICPDAS\HMIWorks_Standard\ Ow˸|C)
_hMפǹϥܷ|LkܡAóysĶ~C

تG
ܽdp C yӨϥ HMIWorks u(MtΤ)C
dҥܽdFGru^sBƱB줸sBĲosءB֨BpɾBøϮءBMC
䤤b줸s (BitButton) @Aܽdp C yӦsxsbְ{O (Flash) ѼơC
iHb C:\ICPDAS\HMIWorks_Standard\include  params.h.
pGnܡAb params.h AwqnѼƪ tParameters c (struct) ApUҥܡC

...
typedef struct 
{
  unsigned long MagicID;
  long Params[7];
} tTouchParams;

#define USER_PARAMS_DATA_SIZE (124+256)

typedef struct
{
    unsigned char ucSequenceNum;
    unsigned char ucCRC;
    unsigned char ucVersion;
	tTouchParams Portrait;
	tTouchParams Landscape;
	tTouchParams PortraitFlip;
	tTouchParams LandscapeFlip;
	
    unsigned char UserParamsData[USER_PARAMS_DATA_SIZE];
}
tParameters;
...
F UserParamsData ~AtParameters c (struct) ҦiA_h|yY~C
Miﵲc{AOiHsWAsWM UserParamsData [_өҥeŶA
O (124+256)CϥΪ̥] USER_PARAMS_DATA_SIZE ȡAHϵcjpTwC
ӵcjpTwA_h|ys~AYܷ|ytηlC

ݨDG
TPD-283	x 1

ԲӸƽаѾ\UC}G
http://www.icpdas.com.tw/product/solutions/hmi_touch_monitor/touchpad/touchpad_selection.html


