📄 dict_help.c
字号:
dict_all_rsk_down();
// Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_right_down.gif",172, 216,0);
}
extern void dict_setting_lsk_down_fun(void)
{
dict_all_lsk_down();
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_mid_down.gif",55, 131,0);
}
void dict_setting_keyright_down_fun(void)
{
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_right_down.gif",121, 144,0);
}
void dict_setting_keyleft_down_fun(void)
{
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_left_down.gif",1, 144,0);
}
void dict_setting_keyleft_up_fun(void)
{
dict_help_win_fun();
}
void dict_setting_keyright_up_fun(void)
{
dict_help_charge_win_fun();
}
void dict_setting_keyup_up_fun(void)
{
}
void dict_setting_keydown_up_fun(void)
{
}
void dict_setting_pendown_fun(mmi_pen_point_struct pos)
{
char str_exit[] = "退出";
char str_ok[] = "确定";
char un_buff [10];
if(pos.x>142&&pos.x<176&&pos.y>200&&pos.y<220)
{
dict_setting_rsk_down_fun();
return ;
}
if(pos.x>4&&pos.x<44&&pos.y>200&&pos.y<220)
{
dict_setting_lsk_down_fun();
return;
}
if(pos.x>55&&pos.x<121&&pos.y>131&&pos.y<198)
{
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_mid_down.gif",55, 131,0);
return;
}
if(pos.x>1&&pos.x<55&&pos.y>144&&pos.y<198)
{
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_left_down.gif",1, 144,0);
return;
}
if(pos.x>121&&pos.x<175&&pos.y>144&&pos.y<198)
{
Draw_Picture_by_name(DISK_TYPE,(char *)"dict\\dict_start_menu_right_down.gif",122, 144,0);
return;
}
}
void dict_setting_penup_fun(mmi_pen_point_struct pos)
{
if(pos.x>142&&pos.x<176&&pos.y>200&&pos.y<220)
{
dict_setting_rsk_fun();
return ;
}
if(pos.x>4&&pos.x<44&&pos.y>200&&pos.y<220)
{
dict_setting_lsk_fun();
return;
}
if(pos.x>55&&pos.x<121&&pos.y>131&&pos.y<198)
{
LM_dictions_mod();
return;
}
if(pos.x>1&&pos.x<55&&pos.y>144&&pos.y<198)
{
dict_help_win_fun();
return;
}
if(pos.x>121&&pos.x<175&&pos.y>144&&pos.y<198)
{
dict_help_charge_win_fun();
return;
}
}
void dict_help_charge_win_fun(void )
{
U8 *guiBuffer;
EntryNewScreen(SCR_ID_DICT_HELP_CHARGE_WIN, dict_help_charge_exit_fun, dict_help_win_fun, NULL);
guiBuffer = GetCurrGuiBuffer(SCR_LEARN_MACHINE_DICT_MENU);
if(help_content_temp == NULL)
help_content_temp = (unsigned char *)med_alloc_ext_mem(2500);
memset(help_content_temp,0,2500);
memset(help_content_temp,0,2500);
MY_GB_TO_UNICODE( (unsigned char *) help_content_temp, (unsigned char *) help_content_charge, 2500);
ShowCategory74Screen(
STR_PALM_ENTRY_CHARGE,0,0,0,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
(U8*)help_content_temp,
mmi_ucs2strlen((const S8*)help_content_temp),
guiBuffer
);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
void dict_help_charge_exit_fun(void)
{
kal_prompt_trace(MOD_WAP,"@@@@@@ dict_help_exit_fun ");
if(help_content_temp != NULL)
{
med_free_ext_mem((void **)&help_content_temp);
help_content_temp = NULL;
}
MY_exitcatfun();
}
void dict_all_lsk_down(void)
{
char str_exit[] = "退出";
char str_ok[] = "确定";
char un_buff [10];
memset(un_buff,0,10);
Text_Clip_Begin();
MY_GB_TO_UNICODE((unsigned char *)un_buff,(unsigned char *)"确定", 10);
Show_Text_Best(4,200,200,24,(unsigned char *)un_buff,255,255,255);
Text_Clip_End();
}
void dict_all_rsk_down(void)
{
char str_exit[] = "退出";
char str_ok[] = "确定";
char un_buff [10];
Text_Clip_Begin();
MY_GB_TO_UNICODE((unsigned char * )un_buff, (unsigned char *) str_exit, 10);
Show_Text_Best(142, 200, 50, 25, (unsigned char * )un_buff, 255, 255, 255);
Text_Clip_End();
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -