| version 1.6, 2005/12/08 21:13:04 |
version 1.7, 2005/12/10 21:24:54 |
| Line 23 bool _cc_findmenukey(Cc_Win *win,unsigne |
|
| Line 23 bool _cc_findmenukey(Cc_Win *win,unsigne |
|
| { |
{ |
| menu->select(win,((Cc_Menu_I*)lines->data)->id); |
menu->select(win,((Cc_Menu_I*)lines->data)->id); |
| gets=true; |
gets=true; |
| |
return gets; |
| } |
} |
| Cc_Win *submenu=((Cc_Menu_I*)lines->data)->submenu; |
Cc_Win *submenu=((Cc_Menu_I*)lines->data)->submenu; |
| if(submenu!=NULL)if(_cc_findmenukey(submenu,key))gets=true; |
if(submenu!=NULL)if(_cc_findmenukey(submenu,key))gets=true; |
| Line 157 bool _cc_dosendkeymessage(Cc_Win *spcfoc |
|
| Line 158 bool _cc_dosendkeymessage(Cc_Win *spcfoc |
|
| { |
{ |
| _cc_dosendsyskeymessage(p,CC_KEY_ENTER); |
_cc_dosendsyskeymessage(p,CC_KEY_ENTER); |
| gets=true; |
gets=true; |
| |
return gets; |
| } |
} |
| i++; |
i++; |
| } |
} |
| Line 806 bool _cc_dosendsyskeymessage(Cc_Win *spc |
|
| Line 808 bool _cc_dosendsyskeymessage(Cc_Win *spc |
|
| { |
{ |
| if(key==CC_KEY_TAB) |
if(key==CC_KEY_TAB) |
| { |
{ |
| |
spcfocus->stat=0; |
| cc_set_focus(_cc_findnextwin(spcfocus)); |
cc_set_focus(_cc_findnextwin(spcfocus)); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| else if(key==(CC_KEY_TAB|CC_MOD_CTRL)) |
else if(key==(CC_KEY_TAB|CC_MOD_CTRL)) |
| { |
{ |
| |
spcfocus->stat=0; |
| cc_set_focus(_cc_findprevwin(spcfocus)); |
cc_set_focus(_cc_findprevwin(spcfocus)); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| else if(key==(CC_KEY_TAB|CC_MOD_SHIFT)) |
else if(key==(CC_KEY_TAB|CC_MOD_SHIFT)) |
| { |
{ |
| |
spcfocus->stat=0; |
| if(spcfocus->parent!=NULL)cc_set_focus(spcfocus->parent); |
if(spcfocus->parent!=NULL)cc_set_focus(spcfocus->parent); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| else if(key==(CC_KEY_TAB|CC_MOD_SHIFT|CC_MOD_CTRL)) |
else if(key==(CC_KEY_TAB|CC_MOD_SHIFT|CC_MOD_CTRL)) |
| { |
{ |
| |
spcfocus->stat=0; |
| Cc_Win *child=_cc_findchild(spcfocus); |
Cc_Win *child=_cc_findchild(spcfocus); |
| if(child!=NULL)cc_set_focus(child); |
if(child!=NULL)cc_set_focus(child); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| } |
} |
| if(key==CC_KEY_F5) |
if(key==CC_KEY_F5) |
| { |
{ |
| |
spcfocus->stat=0; |
| cc_set_focus(_cc_findchildnom(_cc_findprevdialog(spcfocus))); |
cc_set_focus(_cc_findchildnom(_cc_findprevdialog(spcfocus))); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| else if(key==CC_KEY_F6) |
else if(key==CC_KEY_F6) |
| { |
{ |
| |
spcfocus->stat=0; |
| cc_set_focus(_cc_findchildnom(_cc_findnextdialog(spcfocus))); |
cc_set_focus(_cc_findchildnom(_cc_findnextdialog(spcfocus))); |
| gets=true; |
gets=true; |
| spcfocus->stat=0; |
|
| } |
} |
| } |
} |
| if(chang)_cc_redrawclientwin(spcfocus); |
if(chang)_cc_redrawclientwin(spcfocus); |