Rev 6805 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6805 | Rev 6806 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | 70 | ||
71 | void main() |
71 | void main() |
72 | { |
72 | { |
73 | InitDlls(); |
73 | InitDlls(); |
74 | OpenDialog_init stdcall (#o_dialog); |
74 | OpenDialog_init stdcall (#o_dialog); |
75 | label.init(DEFAULT_FONT); |
75 | kfont.init(DEFAULT_FONT); |
76 | Libimg_LoadImage(#skin, abspath("toolbar.png")); |
76 | Libimg_LoadImage(#skin, abspath("toolbar.png")); |
77 | LoadIniSettings(); |
77 | LoadIniSettings(); |
78 | OpenFile(#param); |
78 | OpenFile(#param); |
79 | list.no_selection = true; |
79 | list.no_selection = true; |
Line 200... | Line 200... | ||
200 | PreparePage(); |
200 | PreparePage(); |
201 | } |
201 | } |
Line 202... | Line 202... | ||
202 | 202 | ||
203 | void EventMagnifyPlus() |
203 | void EventMagnifyPlus() |
204 | { |
204 | { |
205 | label.size.pt++; |
205 | kfont.size.pt++; |
206 | if(!label.changeSIZE()) |
206 | if(!kfont.changeSIZE()) |
207 | label.size.pt--; |
207 | kfont.size.pt--; |
208 | else |
208 | else |
209 | PreparePage(); |
209 | PreparePage(); |
Line 210... | Line 210... | ||
210 | } |
210 | } |
211 | 211 | ||
212 | void EventMagnifyMinus() |
212 | void EventMagnifyMinus() |
213 | { |
213 | { |
214 | label.size.pt--; |
214 | kfont.size.pt--; |
215 | if(!label.changeSIZE()) |
215 | if(!kfont.changeSIZE()) |
216 | label.size.pt++; |
216 | kfont.size.pt++; |
217 | else |
217 | else |
Line 218... | Line 218... | ||
218 | PreparePage(); |
218 | PreparePage(); |
Line 289... | Line 289... | ||
289 | DrawRectangle(scroll.start_x, scroll.start_y, scroll.size_x, scroll.size_y-1, scroll.bckg_col); |
289 | DrawRectangle(scroll.start_x, scroll.start_y, scroll.size_x, scroll.size_y-1, scroll.bckg_col); |
290 | } |
290 | } |
Line 291... | Line 291... | ||
291 | 291 | ||
292 | void DrawPage() |
292 | void DrawPage() |
293 | { |
293 | { |
294 | _PutImage(list.x,list.y,list.w,list.h,list.first*list.item_h*list.w*3 + label.raw); |
294 | _PutImage(list.x,list.y,list.w,list.h,list.first*list.item_h*list.w*3 + kfont.raw); |
295 | DrawScroller(); |
295 | DrawScroller(); |
296 | }>> |
296 | }>> |