Rev 7506 | Rev 7551 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7506 | Rev 7533 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //11.03.12 - start! |
1 | //11.03.12 - start! |
2 | //ver 2.1 |
2 | //ver 2.2 |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #ifndef AUTOBUILD |
4 | #ifndef AUTOBUILD |
5 | ?include "lang.h--" |
5 | ?include "lang.h--" |
Line 16... | Line 16... | ||
16 | #include "..\lib\obj\proc_lib.h" |
16 | #include "..\lib\obj\proc_lib.h" |
Line 17... | Line 17... | ||
17 | 17 | ||
18 | #include "..\lib\patterns\select_list.h" |
18 | #include "..\lib\patterns\select_list.h" |
Line -... | Line 19... | ||
- | 19 | #include "..\lib\patterns\simple_open_dialog.h" |
|
- | 20 | ||
19 | #include "..\lib\patterns\simple_open_dialog.h" |
21 | #include "ini.h" |
20 | 22 | ||
21 | //===================================================// |
23 | //===================================================// |
22 | // // |
24 | // // |
23 | // DATA // |
25 | // DATA // |
Line 82... | Line 84... | ||
82 | void main() |
84 | void main() |
83 | { |
85 | { |
84 | int id, mouse_clicked; |
86 | int id, mouse_clicked; |
Line 85... | Line 87... | ||
85 | 87 | ||
- | 88 | load_dll(boxlib, #box_lib_init,0); |
|
86 | load_dll(boxlib, #box_lib_init,0); |
89 | load_dll(libini, #lib_init,1); |
87 | load_dll(Proc_lib, #OpenDialog_init,0); |
90 | load_dll(Proc_lib, #OpenDialog_init,0); |
88 | o_dialog.type = 2; //select folder |
91 | o_dialog.type = 2; //select folder |
Line 89... | Line 92... | ||
89 | OpenDialog_init stdcall (#o_dialog); |
92 | OpenDialog_init stdcall (#o_dialog); |
Line 221... | Line 224... | ||
221 | DrawStandartCaptButton(skp.x+20, skp.y+skp.h-40, GetFreeButtonId(), "Button1"); |
224 | DrawStandartCaptButton(skp.x+20, skp.y+skp.h-40, GetFreeButtonId(), "Button1"); |
222 | DrawStandartCaptButton(skp.x+120, skp.y+skp.h-40, GetFreeButtonId(), "Button2"); |
225 | DrawStandartCaptButton(skp.x+120, skp.y+skp.h-40, GetFreeButtonId(), "Button2"); |
223 | } |
226 | } |
224 | if (tabs.active_tab == WALLPAPERS) |
227 | if (tabs.active_tab == WALLPAPERS) |
225 | { |
228 | { |
- | 229 | DrawStandartCaptButton(select_list.x + select_list.w + scroll1.size_x + 17, |
|
226 | DrawStandartCaptButton(skp.x, select_list.y, BTN_SELECT_WALLP_FOLDER, T_SELECT_FOLDER); |
230 | select_list.y, BTN_SELECT_WALLP_FOLDER, T_SELECT_FOLDER); |
227 | } |
231 | } |
228 | } |
232 | } |
Line 229... | Line 233... | ||
229 | 233 | ||
230 | :void DrawStEditBoxPos(dword x,y, edit_box_pointer) |
234 | :void DrawStEditBoxPos(dword x,y, edit_box_pointer) |
Line 352... | Line 356... | ||
352 | EventSetNewCurrent(); |
356 | EventSetNewCurrent(); |
353 | if (tabs.active_tab==SKINS) |
357 | if (tabs.active_tab==SKINS) |
354 | { |
358 | { |
355 | cur = select_list.cur_y; |
359 | cur = select_list.cur_y; |
356 | SetSystemSkin(#cur_file_path); |
360 | SetSystemSkin(#cur_file_path); |
- | 361 | SaveSkinSettings(#cur_file_path); |
|
357 | } |
362 | } |
358 | if (tabs.active_tab==WALLPAPERS) |
363 | if (tabs.active_tab==WALLPAPERS) |
359 | { |
364 | { |
360 | strcpy(#kivpath, "\\S__"); |
365 | strcpy(#kivpath, "\\S__"); |
361 | strcat(#kivpath, #cur_file_path); |
366 | strcat(#kivpath, #cur_file_path); |