Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for tucniak/cuchar/test/main.c between version 1.1 and 1.2

version 1.1, 2005/11/30 18:30:16 version 1.2, 2005/12/09 12:38:43
Line 7 
Line 7 
   
 GList *lines;  GList *lines;
   
 WIN *textwin,*win,*editbox;  //WIN *textwin,/*win,*/*editbox;
 WIN *popupmenu;  WIN *popupmenu;
 char s[256];  char s[256];
 /* {{{ */  /* {{{
 void checkproc(WIN *sender) {  void checkproc(WIN *sender) {
   set_checked(sender,0,!get_checked(sender,0));    set_checked(sender,0,!get_checked(sender,0));
 }  }
Line 23  void changemenuproc(WIN *sender) {
Line 23  void changemenuproc(WIN *sender) {
   sprintf(s,"%ld\0",get_pos(sender));    sprintf(s,"%ld\0",get_pos(sender));
   set_text(textwin,s);    set_text(textwin,s);
 }  }
 void closeproc(WIN *sender) {  /*void closeproc(WIN *sender) {
   if(sender==win)  {    if(sender==win)  {
     if(message_box(sender,"Close","Chcete ulozit zmenene informacie?",      if(message_box(sender,"Close","Chcete ulozit zmenene informacie?",
        MB_YES|MB_NO|MB_CANCEL)!=MB_CANCEL)                          MB_YES|MB_NO|MB_CANCEL)!=MB_CANCEL)
     {      {
       delete_win(sender);        delete_win(sender);
       set_api_run(false);        set_api_run(false);
Line 73  void menuproc(WIN *win,long id)
Line 73  void menuproc(WIN *win,long id)
 /* }}} */  /* }}} */
 int main_api(int argc,char *argv[])  int main_api(int argc,char *argv[])
 {  {
   
   
   return 0;    return 0;
 }  }
   
 void init_api()  void init_api()
 {  {
   set_text(NULL,"Tucniak");    //set_text(NULL,"Tucniak");   //sak to nic neurobi ???
   set_acel(NULL,mainacel);    //set_acel(NULL,mainacel);
 /* {{{ PPAINT paint;  /* {{{ PPAINT paint;
   paint.type=TP_PAINT;    paint.type=TP_PAINT;
   paint.cback=C_DEFAULT;    paint.cback=C_DEFAULT;
Line 262  void init_api()
Line 260  void init_api()
   list.scrcback=C_DEFAULT;    list.scrcback=C_DEFAULT;
   WIN *listbox=create_win(win,2,7,12,20,(PUNION*)&list,ST_VISIBLE|ST_AUTOXSIZE,NULL);    WIN *listbox=create_win(win,2,7,12,20,(PUNION*)&list,ST_VISIBLE|ST_AUTOXSIZE,NULL);
 /* }}} */  /* }}} */
         PCOMBO combo;   /* {{{ */  /* {{{ PCOMBO combo;
   combo.type=TP_COMBO;    combo.type=TP_COMBO;
   combo.activeline=0;    combo.activeline=0;
   combo.cback=C_DEFAULT;    combo.cback=C_DEFAULT;
Line 297  void init_api()
Line 295  void init_api()
   menu.cactive=C_DEFAULT;    menu.cactive=C_DEFAULT;
   menu.cactivetext=C_DEFAULT;    menu.cactivetext=C_DEFAULT;
   menu.cactiveutext=C_DEFAULT;    menu.cactiveutext=C_DEFAULT;
   menu.change=changemenuproc;  //  menu.change=changemenuproc;
   menu.select=menuproc;  //  menu.select=menuproc;
   menu.vert=false;    menu.vert=false;
   WIN *menubox=create_menu(NULL,&menu,NULL);    WIN *menubox=create_menu(NULL,&menu,NULL);
   WIN *filemenu=create_submenu(menubox);    WIN *filemenu=create_submenu(menubox);
Line 338  void init_api()
Line 336  void init_api()
   del_menu_item(filemenu,6);    del_menu_item(filemenu,6);
   
   menu.vert=true;    menu.vert=true;
   popupmenu=create_menu(win,&menu,NULL);   // popupmenu=create_menu(win,&menu,NULL);
   add_menu_item(popupmenu,&(CMENU){101,false,"Cu&t",MD_CTRL|'X',NULL});    add_menu_item(popupmenu,&(CMENU){101,false,"Cu&t",MD_CTRL|'X',NULL});
   add_menu_item(popupmenu,&(CMENU){102,false,"&Copy",MD_CTRL|'C',NULL});    add_menu_item(popupmenu,&(CMENU){102,false,"&Copy",MD_CTRL|'C',NULL});
   add_menu_item(popupmenu,&(CMENU){103,false,"&Paste",MD_CTRL|'V',NULL});    add_menu_item(popupmenu,&(CMENU){103,false,"&Paste",MD_CTRL|'V',NULL});
Line 346  void init_api()
Line 344  void init_api()
   
   
   
   set_menu(win,menubox);   // set_menu(win,menubox);
   set_menu(NULL,menubox);    set_menu(NULL,menubox);
   
 //  set_hl_downtext(downtext);  //  set_hl_downtext(downtext);
Line 355  void init_api()
Line 353  void init_api()
   
 //  show_win(win,true);  //  show_win(win,true);
   
 //  show_win(NULL,true);  //  show_win(menubox,true);
   show_win(NULL,true);
   
 //  set_focus(editbox);  //  set_focus(editbox);
   
Line 379  void init_api()
Line 378  void init_api()
   
   //show_win(mod,true);    //show_win(mod,true);
   
   show_win(win,false);    //show_win(win,false);
   
 }  }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top