Rev 7782 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7782 | Rev 7806 | ||
---|---|---|---|
Line 206... | Line 206... | ||
206 | int DrawMenuButton(dword x,y,id,text) |
206 | int DrawMenuButton(dword x,y,id,text) |
207 | { |
207 | { |
208 | int textlen = strlen(text)*8; |
208 | int textlen = strlen(text)*8; |
209 | int padding = 12; |
209 | int padding = 12; |
210 | DefineHiddenButton(x, y, textlen+padding+padding, TOPPANELH-2, id); |
210 | DefineHiddenButton(x, y, textlen+padding+padding, TOPPANELH-2, id); |
211 | WriteText(x+padding,y+4, 0x90, MixColors(system.color.work, system.color.work_text, 70), text); |
211 | WriteText(x+padding,y+4, 0x90, MixColors(sc.work, sc.work_text, 70), text); |
212 | return textlen+padding+padding; |
212 | return textlen+padding+padding; |
213 | } |
213 | } |
Line 214... | Line 214... | ||
214 | 214 | ||
215 | void draw_window() |
215 | void draw_window() |
216 | { |
216 | { |
217 | system.color.get(); |
217 | sc.get(); |
218 | DefineAndDrawWindow(screen.width-WIN_W/2,screen.height-WIN_H/2,WIN_W,WIN_H,0x73,0xFFFFFF,#win_title,0); |
218 | DefineAndDrawWindow(screen.width-WIN_W/2,screen.height-WIN_H/2,WIN_W,WIN_H,0x73,0xFFFFFF,#win_title,0); |
219 | GetProcessInfo(#Form, SelfInfo); |
219 | GetProcessInfo(#Form, SelfInfo); |
220 | DrawBar(0, 0, Form.cwidth, TOPPANELH-1, system.color.work); |
220 | DrawBar(0, 0, Form.cwidth, TOPPANELH-1, sc.work); |
221 | DrawBar(0, TOPPANELH-1, Form.cwidth, 1, system.color.work_dark); |
221 | DrawBar(0, TOPPANELH-1, Form.cwidth, 1, sc.work_dark); |
Line 222... | Line 222... | ||
222 | DrawBar(0, Form.cheight-BOTPANELH, Form.cwidth, BOTPANELH, system.color.work); |
222 | DrawBar(0, Form.cheight-BOTPANELH, Form.cwidth, BOTPANELH, sc.work); |
223 | 223 | ||
224 | menu_encoding_x = menu_file_x + DrawMenuButton(menu_file_x, 0, MENU_ID_FILE, MENU1); |
224 | menu_encoding_x = menu_file_x + DrawMenuButton(menu_file_x, 0, MENU_ID_FILE, MENU1); |