Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button btn[7];
- char sz1[123];
- void INIT()
- {
- btn[1].Create("Button" , 100, 57, 80, 25);
- btn[2].Create("EnaDis" , 240, 57, 80, 25);
- btn[3].Create("Disable", 240, 97, 80, 25);
- btn[4].Create("Enable" , 240,137, 80, 25);
- }
- void START()
- {
- if(btn[1].Press())
- {
- wsprintf(sz1, "Timer_CLK = %d", Timer_CLK);
- Print_1(100, 100, sz1);
- }
- if(btn[2].Press())
- {
- btn[1].EnaDis();
- }
- if(btn[3].Press())
- {
- btn[1].Disable();
- }
- if(btn[4].Press())
- {
- btn[1].Enable();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement