Rev 5674 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5674 | Rev 5709 | ||
---|---|---|---|
Line 164... | Line 164... | ||
164 | if (!mouse.lkm) panels_drag=0; |
164 | if (!mouse.lkm) panels_drag=0; |
165 | if (mouse.lkm) && (mouse.y>mail_list.y+mail_list.h-1) && (mouse.y |
165 | if (mouse.lkm) && (mouse.y>mail_list.y+mail_list.h-1) && (mouse.y |
166 | && (!scroll1.delta2) && (!scroll_wv.delta2) panels_drag = 1; |
166 | && (!scroll1.delta2) && (!scroll_wv.delta2) panels_drag = 1; |
167 | if (panels_drag) |
167 | if (panels_drag) |
168 | { |
168 | { |
169 | if (mouse.y |
169 | if (mouse.y |
170 | mail_list.h = mouse.y - mail_list.y-2; |
170 | mail_list.h = mouse.y - mail_list.y-2; |
171 | DrawMailBox(); |
171 | DrawMailBox(); |
172 | break; |
172 | break; |
173 | } |
173 | } |
Line 287... | Line 287... | ||
287 | void DrawToolbar() { |
287 | void DrawToolbar() { |
288 | #define BUT_Y 7 |
288 | #define BUT_Y 7 |
289 | #define BUT_H 22 |
289 | #define BUT_H 22 |
290 | #define BUT_W 74 |
290 | #define BUT_W 74 |
291 | int toolbar_w = BUT_Y + BUT_H + BUT_Y + 3; |
291 | int toolbar_w = BUT_Y + BUT_H + BUT_Y + 3; |
292 | mail_list.SetSizes(0, toolbar_w, Form.cwidth - scroll1.size_x - 1, mail_list.h, 60,18); |
292 | mail_list.SetSizes(0, toolbar_w, Form.cwidth - scroll1.size_x - 1, mail_list.h, 18); |
Line 293... | Line 293... | ||
293 | 293 | ||
294 | DrawBar(0,0, Form.cwidth,toolbar_w-3, system.color.work); |
294 | DrawBar(0,0, Form.cwidth,toolbar_w-3, system.color.work); |
295 | DrawCaptButton(10 , BUT_Y, BUT_W, BUT_H, GET_MAIL, system.color.work_button, system.color.work_button_text,"Get mail"); |
295 | DrawCaptButton(10 , BUT_Y, BUT_W, BUT_H, GET_MAIL, system.color.work_button, system.color.work_button_text,"Get mail"); |
296 | DrawCaptButton(BUT_W+ 20, BUT_Y, BUT_W+10, BUT_H, SAVE_LETTER, system.color.work_button, system.color.work_button_text,"Save letter"); |
296 | DrawCaptButton(BUT_W+ 20, BUT_Y, BUT_W+10, BUT_H, SAVE_LETTER, system.color.work_button, system.color.work_button_text,"Save letter"); |
Line 347... | Line 347... | ||
347 | } |
347 | } |
Line 348... | Line 348... | ||
348 | 348 | ||
349 | 349 | ||
350 | void InitTWB() { |
350 | void InitTWB() { |
351 | WB1.list.SetSizes(0, mail_list.y+mail_list.h+LIST_INFO_H+1, Form.cwidth - scroll_wv.size_x - 1, |
351 | WB1.list.SetSizes(0, mail_list.y+mail_list.h+LIST_INFO_H+1, Form.cwidth - scroll_wv.size_x - 1, |
352 | Form.cheight - mail_list.y - mail_list.h - LIST_INFO_H - 1 - status_bar_h, 60, 12); |
352 | Form.cheight - mail_list.y - mail_list.h - LIST_INFO_H - 1 - status_bar_h, 12); |
353 | WB1.list.column_max = WB1.list.w - 30 / 6; |
353 | WB1.list.column_max = WB1.list.w - 30 / 6; |
Line 354... | Line 354... | ||
354 | WB1.list.visible = WB1.list.h / WB1.list.line_h; |
354 | WB1.list.visible = WB1.list.h / WB1.list.line_h; |