Rev 5625 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5625 | Rev 5674 | ||
---|---|---|---|
Line 176... | Line 176... | ||
176 | void DrawLoginScreen() |
176 | void DrawLoginScreen() |
177 | { |
177 | { |
178 | panel_x = Form.cwidth - PANEL_W /2; |
178 | panel_x = Form.cwidth - PANEL_W /2; |
179 | panel_y = Form.cheight - PANEL_H /2 - 5; |
179 | panel_y = Form.cheight - PANEL_H /2 - 5; |
Line 180... | Line 180... | ||
180 | 180 | ||
Line 181... | Line 181... | ||
181 | DrawBar(0,0, Form.cwidth, Form.cheight, sc.work); |
181 | DrawBar(0,0, Form.cwidth, Form.cheight, system.color.work); |
182 | 182 | ||
183 | WriteText(panel_x,panel_y,0x80,sc.work_text,"Your Email:"); |
183 | WriteText(panel_x,panel_y,0x80,system.color.work_text,"Your Email:"); |
184 | DrawRectangle(panel_x, panel_y+12, PANEL_W,20, sc.work_graph); //border |
184 | DrawRectangle(panel_x, panel_y+12, PANEL_W,20, system.color.work_graph); //border |
185 | DrawRectangle3D(panel_x+1, panel_y+13, PANEL_W-2,18, 0xDDDddd, 0xFFFfff); //shadow |
185 | DrawRectangle3D(panel_x+1, panel_y+13, PANEL_W-2,18, 0xDDDddd, 0xFFFfff); //shadow |
186 | DrawRectangle(panel_x+2, panel_y+14, PANEL_W-4,16, 0xFFFfff); |
186 | DrawRectangle(panel_x+2, panel_y+14, PANEL_W-4,16, 0xFFFfff); |
187 | login_box.left = panel_x+3; |
187 | login_box.left = panel_x+3; |
Line 188... | Line 188... | ||
188 | login_box.top = panel_y+15; |
188 | login_box.top = panel_y+15; |
189 | edit_box_draw stdcall(#login_box); |
189 | edit_box_draw stdcall(#login_box); |
190 | 190 | ||
191 | WriteText(panel_x,panel_y+40,0x80,sc.work_text,"Password:"); |
191 | WriteText(panel_x,panel_y+40,0x80,system.color.work_text,"Password:"); |
192 | DrawRectangle(panel_x, panel_y+52, PANEL_W,20, sc.work_graph); //border |
192 | DrawRectangle(panel_x, panel_y+52, PANEL_W,20, system.color.work_graph); //border |
193 | DrawRectangle3D(panel_x+1, panel_y+53, PANEL_W-2,18, 0xDDDddd, 0xFFFfff); //shadow |
193 | DrawRectangle3D(panel_x+1, panel_y+53, PANEL_W-2,18, 0xDDDddd, 0xFFFfff); //shadow |
194 | DrawRectangle(panel_x+2, panel_y+54, PANEL_W-4,16, 0xFFFfff); |
194 | DrawRectangle(panel_x+2, panel_y+54, PANEL_W-4,16, 0xFFFfff); |
Line 195... | Line 195... | ||
195 | pass_box.left = panel_x+3; |
195 | pass_box.left = panel_x+3; |
196 | pass_box.top = panel_y+55; |
196 | pass_box.top = panel_y+55; |
197 | edit_box_draw stdcall(#pass_box); |
197 | edit_box_draw stdcall(#pass_box); |
198 | 198 | ||
199 | if (!aim) |
199 | if (!aim) |
200 | { |
200 | { |
Line 201... | Line 201... | ||
201 | DrawCaptButton(panel_x,panel_y+90,100,20,11,sc.work_button, sc.work_button_text,"Settings"); |
201 | DrawCaptButton(panel_x,panel_y+90,100,20,11,system.color.work_button, system.color.work_button_text,"Settings"); |
202 | DrawCaptButton(panel_x+120,panel_y+90,100,20,12,sc.work_button, sc.work_button_text,"Enter >"); |
202 | DrawCaptButton(panel_x+120,panel_y+90,100,20,12,system.color.work_button, system.color.work_button_text,"Enter >"); |
Line 226... | Line 226... | ||
226 | if (!strcmp(#POP_server_path, "pop.gmail.com")) StopConnect("Can't connect GMAIL servers. Not support SSL/TLS encryption"); |
226 | if (!strcmp(#POP_server_path, "pop.gmail.com")) StopConnect("Can't connect GMAIL servers. Not support SSL/TLS encryption"); |
227 | } |
227 | } |
Line 228... | Line 228... | ||
228 | 228 | ||
229 | void SetLoginStatus(dword text1) |
229 | void SetLoginStatus(dword text1) |
230 | { |
230 | { |
231 | if (text1) WriteText(10, Form.cheight-22, 0x80, sc.work_text, text1); |
231 | if (text1) WriteText(10, Form.cheight-22, 0x80, system.color.work_text, text1); |
232 | cur_st_text = text1; |
232 | cur_st_text = text1; |
233 | }8; |
233 | }8; |