Rev 3866 | Rev 3907 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3866 | Rev 3869 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | #define TOPPANELH 50 |
50 | #define TOPPANELH 50 |
51 | #define BOTPANELH 20 |
51 | #define BOTPANELH 20 |
Line 52... | Line 52... | ||
52 | 52 | ||
53 | int mouse_dd; |
53 | int mouse_dd; |
- | 54 | char disk_size[30]="\0"; |
|
- | 55 | #ifdef LANG_RUS |
|
- | 56 | edit_box edit_disk_size= {60,50,5,0xffffff,0x94AECE,0x000000,0xffffff,0,sizeof(disk_size)+2,#disk_size,#mouse_dd, 0b100000000000000}; |
|
54 | char disk_size[30]="\0"; |
57 | #else |
- | 58 | edit_box edit_disk_size= {60,40,5,0xffffff,0x94AECE,0x000000,0xffffff,0,sizeof(disk_size)+2,#disk_size,#mouse_dd, 0b100000000000000}; |
|
Line 55... | Line 59... | ||
55 | edit_box edit_disk_size= {60,48,5,0xffffff,0x94AECE,0x000000,0xffffff,0,sizeof(disk_size)+2,#disk_size,#mouse_dd, 1000000000000000b}; |
59 | #endif |
56 | 60 | ||
57 | void Main_Window() |
61 | void Main_Window() |
58 | { |
62 | { |
Line 102... | Line 106... | ||
102 | DrawTmpDisks(); |
106 | DrawTmpDisks(); |
103 | } |
107 | } |
104 | break; |
108 | break; |
105 | case evKey: |
109 | case evKey: |
106 | key = GetKey(); |
110 | key = GetKey(); |
- | 111 | if (key==9) |
|
- | 112 | { |
|
- | 113 | if ( !asm test edit_disk_size.flags, 2) edit_disk_size.flags=1000000000000010b; |
|
- | 114 | else edit_disk_size.flags=1000000000000000b; |
|
- | 115 | edit_box_draw stdcall (#edit_disk_size); |
|
- | 116 | } |
|
- | 117 | if ( asm test edit_disk_size.flags, 2) |
|
- | 118 | { |
|
- | 119 | if (key==13) |
|
- | 120 | { |
|
- | 121 | edit_disk_size.flags=1000000000000000b; |
|
- | 122 | edit_box_draw stdcall (#edit_disk_size); |
|
- | 123 | } |
|
- | 124 | EAX=key<<8; |
|
- | 125 | edit_box_key stdcall(#edit_disk_size); |
|
- | 126 | break; |
|
- | 127 | } |
|
107 | if (key==182) if (disk_num<>0) goto _DEL_DISK; |
128 | if (key==182) if (disk_num<>0) goto _DEL_DISK; |
108 | if (key==51) AddDisk(); |
129 | if (key==51) AddDisk(); |
109 | if (key==13) OpenTmpDisk(); |
130 | if (key==13) OpenTmpDisk(); |
110 | if (key==178) |
131 | if (key==178) |
111 | { |
132 | { |
Line 129... | Line 150... | ||
129 | { |
150 | { |
130 | if (selected+4>disk_num) break; |
151 | if (selected+4>disk_num) break; |
131 | selected+=3; |
152 | selected+=3; |
132 | DrawTmpDisks(); |
153 | DrawTmpDisks(); |
133 | } |
154 | } |
134 | EAX=key<<8; |
155 | //EAX=key<<8; |
135 | edit_box_key stdcall(#edit_disk_size); |
156 | //edit_box_key stdcall(#edit_disk_size); |
136 | break; |
157 | break; |
137 | case evReDraw: |
158 | case evReDraw: |
138 | sc.get(); |
159 | sc.get(); |
139 | DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.46",0); |
160 | DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.47",0); |
140 | GetProcessInfo(#Form, SelfInfo); |
161 | GetProcessInfo(#Form, SelfInfo); |
141 | if (Form.status_window>2) return; |
162 | if (Form.status_window>2) return; |
Line 142... | Line 163... | ||
142 | 163 | ||
143 | DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); |
164 | DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); |
- | 165 | DrawBar(0,TOPPANELH, Form.cwidth,1, sc.work_graph); |
|
144 | DrawBar(0,TOPPANELH, Form.cwidth,1, sc.work_graph); |
166 | #ifdef LANG_RUS |
- | 167 | WriteText(6, 9, 0x80, sc.work_text, INTRO_TEXT_4); |
|
- | 168 | WriteText(117, 9, 0x80, sc.work_text, "MB."); |
|
- | 169 | #else |
|
- | 170 | WriteText(6, 9, 0x80, sc.work_text, INTRO_TEXT_4); |
|
- | 171 | WriteText(107, 9, 0x80, sc.work_text, "MB."); |
|
145 | WriteText(5, 9, 0x80, sc.work_text, INTRO_TEXT_4); |
172 | #endif |
146 | edit_box_draw stdcall (#edit_disk_size); |
- | |
147 | WriteText(115, 9, 0x80, sc.work_text, "MB."); |
173 | edit_box_draw stdcall (#edit_disk_size); |
148 | x=6; |
174 | x=6; |
149 | for (i=0; i<2; i++) |
175 | for (i=0; i<2; i++) |
150 | { |
176 | { |
151 | DefineButton(x,25, strlen(but_text[i])*6+28,19, 10+i, sc.work_button); |
177 | DefineButton(x,25, strlen(but_text[i])*6+28,19, 10+i, sc.work_button); |