Rev 7235 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7235 | Rev 7243 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | /* === DATA === */ |
24 | /* === DATA === */ |
Line 25... | Line 25... | ||
25 | 25 | ||
Line 26... | Line 26... | ||
26 | proc_info Form; |
26 | proc_info Form; |
27 | - | ||
28 | dword screenshot; |
27 | |
Line 29... | Line 28... | ||
29 | 28 | dword screenshot; |
|
30 | int screenshot_length; |
29 | int screenshot_length; |
31 | 30 | ||
Line 116... | Line 115... | ||
116 | 115 | ||
117 | char path_tmp[4096]; |
116 | char path_tmp[4096]; |
118 | dword mouse_dd1; |
117 | dword mouse_dd1; |
Line -... | Line 118... | ||
- | 118 | edit_box edit_box_path = {270,10,70,0xffffff,0x94AECE,0xFFFfff,0xffffff,0x10000000,sizeof(path_tmp),#path_tmp,#mouse_dd1, 0b}; |
|
- | 119 | ||
119 | edit_box edit_box_path = {270,10,70,0xffffff,0x94AECE,0xFFFfff,0xffffff,0x10000000,sizeof(path_tmp),#path_tmp,#mouse_dd1, 0b}; |
120 | more_less_box delay = { 1, 0, 64, "Delay in seconds" }; |
120 | 121 | ||
121 | void SettingsWindow() |
- | |
122 | { |
122 | void SettingsWindow() |
123 | #define x 15 |
123 | { |
124 | int id; |
124 | int id; |
125 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
125 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
126 | loop() switch(WaitEvent()) |
126 | loop() switch(WaitEvent()) |
Line 134... | Line 134... | ||
134 | if (SCAN_CODE_ESC == key_scancode) ExitProcess(); |
134 | if (SCAN_CODE_ESC == key_scancode) ExitProcess(); |
135 | break; |
135 | break; |
Line 136... | Line 136... | ||
136 | 136 | ||
137 | case evButton: |
137 | case evButton: |
- | 138 | id = GetButtonID(); |
|
138 | id = GetButtonID(); |
139 | delay.click(id); |
139 | if (CLOSE_BTN == id) ExitProcess(); |
- | |
140 | if (10 == id) settings.delay++; |
- | |
141 | if (11 == id) && (settings.delay>0) settings.delay--; |
140 | if (CLOSE_BTN == id) ExitProcess(); |
142 | if (12 == id) settings.minimise ^= 1; |
- | |
143 | goto _DRAW_CONTENT; |
141 | if (12 == id) { settings.minimise ^= 1; goto _DRAW_CONTENT; } |
Line 144... | Line 142... | ||
144 | break; |
142 | break; |
145 | 143 | ||
146 | case evReDraw: |
144 | case evReDraw: |
147 | DefineAndDrawWindow(Form.left+100, Form.top-40, 330, 170, 0x34, system.color.work, "Settings",0); |
145 | DefineAndDrawWindow(Form.left+100, Form.top-40, 330, 170, 0x34, system.color.work, "Settings",0); |
148 | _DRAW_CONTENT: |
146 | _DRAW_CONTENT: |
149 | CheckBox(x, 10, 12, "Minimize window", settings.minimise); |
147 | CheckBox(15, 10, 12, "Minimize window", settings.minimise); |
150 | MoreLessBox(x, 40, 10, 11, settings.delay, "Delay in seconds"); |
148 | delay.draw(15, 40); |
151 | //DrawEditBox(#edit_box_path); |
149 | //DrawEditBox(#edit_box_path); |
Line 152... | Line 150... | ||
152 | } |
150 | } |