DimkaM

Окошко добавить иконку

May 8th, 2021 (edited)
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.16 KB | None | 0 0
  1. //Окно добавить иконку
  2. #define WIN_ADDICO_X 23
  3. #define WIN_ADDICO_Y 7
  4.  
  5. EVENT_PROC win_add_ico_cancel_event = {EVENT_TYPE_LBM_CLICK, NULL_PTR, win_add_ico_cancel_proc};
  6. EVENT_PROC win_add_ico_save_event = {EVENT_TYPE_LBM_CLICK, NULL_PTR, win_add_ico_save_proc};
  7. EVENT_PROC ico_inp_path_event = {EVENT_TYPE_LBM_CLICK, NULL_PTR, getns};
  8. EVENT_PROC ico_inp_ico_event = {EVENT_TYPE_LBM_CLICK, NULL_PTR, getns};
  9.  
  10. W_TEXT cnt_add_ico_ico = {NULL_PTR, PAPER_BLACK | INK_WHITE,
  11.     WIN_ADDICO_X + 5, WIN_ADDICO_Y + 3, 5, 3,
  12.     "     \n     \n     ", &ico_inp_ico_event};
  13. W_TEXT cnt_add_ico_path = {&cnt_add_ico_ico, PAPER_BLACK | INK_WHITE,
  14.     WIN_ADDICO_X, WIN_ADDICO_Y + 1, 32, 1,
  15.     inp_buf, &ico_inp_path_event};
  16. W_TEXT cnt_add_ico_cancel = {&cnt_add_ico_path, PAPER_GREEN | INK_BLACK,
  17.     WIN_ADDICO_X + 21, WIN_ADDICO_Y + 5, 6, 1,
  18.     "Cancel", &win_add_ico_cancel_event};
  19. W_TEXT cnt_add_ico_save = {&cnt_add_ico_cancel, PAPER_GREEN | INK_BLACK,
  20.     WIN_ADDICO_X + 21, WIN_ADDICO_Y + 3, 6, 1,
  21.     "< OK >", &win_add_ico_save_event};
  22. W_TEXT win_add_ico = {&cnt_add_ico_save, PAPER_RED | INK_BLACK, WIN_ADDICO_X, WIN_ADDICO_Y, 32, 7,
  23.     "path:\n\nIcon:", NULL_PTR};
  24.    
Add Comment
Please, Sign In to add comment