本文整理汇总了C++中OSD_SetTextFieldContent函数的典型用法代码示例。如果您正苦于以下问题:C++ OSD_SetTextFieldContent函数的具体用法?C++ OSD_SetTextFieldContent怎么用?C++ OSD_SetTextFieldContent使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OSD_SetTextFieldContent函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: win_time_set_Display_string
void win_time_set_Display_string(UINT8 input)
{
if(input==0)
OSD_SetTextFieldContent(&time_item_txtset6, STRING_ID,RS_COMMON_OFF);
else
OSD_SetTextFieldContent(&time_item_txtset6, STRING_ID,RS_COMMON_ON);
}
示例2: win_sto_set_sd_ide_set_string
void win_sto_set_sd_ide_set_string(UINT8 input, PTEXT_FIELD ptxt)
{
if(input==0)
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_STORAGE_HDD);
else
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_STORAGE_SD);
}
示例3: win_set_youtube_title
void win_set_youtube_title()
{
BITMAP *pBmp;
TEXT_FIELD *pTxt;
struct mp_title_tab_resource* titleitem;
pBmp = &usb_title_bmp2;
OSD_SetBitmapContent(pBmp, 0);
pTxt = &usb_title_txt2;
OSD_SetTextFieldContent(pTxt,STRING_ID,0);
pBmp = &usb_title_bmp3;
OSD_SetBitmapContent(pBmp, 0);
pTxt = &usb_title_txt3;
OSD_SetTextFieldContent(pTxt,STRING_ID,0);
pBmp = &usb_title_bmp4;
OSD_SetBitmapContent(pBmp, 0);
pTxt = &usb_title_txt4;
OSD_SetTextFieldContent(pTxt,STRING_ID,0);
titleitem = &youtube_title_tab[0];
pBmp = &usb_title_bmp1;
pBmp->head.frame.uLeft=TITLE_YT_ICON1_L;
OSD_SetBitmapContent(pBmp, titleitem->bmp_id);
pTxt = &usb_title_txt1;
pTxt->head.frame.uLeft=TITLE_YT_ICON1_L+pBmp->head.frame.uWidth;
pTxt->head.frame.uWidth=TITLE_YT_TXT_W;
OSD_SetTextFieldContent(pTxt,STRING_ID,titleitem->str_id);
}
示例4: setup_game_panel
/*******************************************************************************
* Game function
*******************************************************************************/
void setup_game_panel(UINT16 tit_id, UINT16 lev_id, UINT16 sco1_id, UINT16 sco2_id)
{
OSD_SetTextFieldContent(&txt_title, STRING_ID, tit_id);
OSD_SetTextFieldContent(&txt_level, STRING_ID, lev_id);
OSD_SetTextFieldContent(&txt_score1, STRING_ID, sco1_id);
OSD_SetTextFieldContent(&txt_score2, STRING_ID, sco2_id);
}
示例5: win_srch_draw_info_ex
static void win_srch_draw_info_ex(OSD_RECT* pRect, char* str, UINT16* unistr, UINT8 shidx)
{
PCONTAINER pObj;
TEXT_FIELD *pTxt,*pLine;
OSD_RECT rect_01,rect_02;
rect_01.uTop = pRect->uTop+TXT_T_OF;
rect_01.uLeft = pRect->uLeft+TXT_L_OF;
rect_01.uWidth = TXT_W;
rect_01.uHeight = TXT_H;
rect_02.uTop = pRect->uTop + LINE_T_OF;
rect_02.uLeft= pRect->uLeft+LINE_L_OF;
rect_02.uHeight = LINE_H;
rect_02.uWidth = TXT_W;
pObj = &srch_info_ex;//&srch_info;
pTxt = &srch_info_txt_ex;
pLine = &srch_info_line;
//OSD_SetRect2(&pObj->head.frame,pRect);
OSD_SetRect2(&pObj->head.frame,pRect);
OSD_SetRect2(&pTxt->head.frame,&rect_01);
OSD_SetRect2(&pLine->head.frame,&rect_02);
//OSD_SetTextFieldContent()
if(str != NULL)
OSD_SetTextFieldContent(pTxt, STRING_ANSI, (UINT32)str);
else if (unistr != NULL)
OSD_SetTextFieldContent(pTxt, STRING_UNICODE, (UINT32)unistr);
//OSD_SetColor(pTxt,shidx,shidx,shidx,shidx);
OSD_DrawObject( (POBJECT_HEAD)pObj, C_UPDATE_ALL);
}
示例6: win_LCN_set_string
void win_LCN_set_string(UINT8 input)
{
if(input==0)
OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_OFF);
else
OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_ON);
}
示例7: win_set_rec_type_string
void win_set_rec_type_string(UINT8 input, PTEXT_FIELD ptxt)
{
if(input==0)
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_RECORD_TYPE_TS);
else
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_RECORD_TYPE_PS);
}
示例8: win_satfav_set_display
void win_satfav_set_display(void)
{
UINT32 i;
UINT16 top,cnt,page,idx;
OBJLIST* ol = &satfav_item_list;
BITMAP* bmp;
TEXT_FIELD* txt;
CONTAINER* item;
UINT32 valid_idx;
UINT16 unistr[50];
UINT8 group_type,group_idx,av_flag;
av_flag = sys_data_get_cur_chan_mode();
cnt = OSD_GetObjListCount(ol);
page = OSD_GetObjListPage(ol);
top = OSD_GetObjListTop(ol);
for(i=0;i<page;i++)
{
item = (CONTAINER*)satfav_items[i];
idx = top + i;
group_idx = (UINT8)(idx);
if(sat_fav_list_flag == 1)
{
group_idx += sys_data_get_sate_group_num(av_flag);
group_idx ++;
}
if(idx< cnt)
valid_idx = 1;
else
valid_idx = 0;
if(valid_idx)
get_chan_group_name((UINT8*)unistr,group_idx,&group_type);
/*IDX */
txt = (TEXT_FIELD*)OSD_GetContainerNextObj(item);//bmp->head.pNext;
if(valid_idx)
OSD_SetTextFieldContent(txt,STRING_NUMBER, idx + 1);
else
OSD_SetTextFieldContent(txt,STRING_ANSI,(UINT32)"");
/*Name*/
txt = (TEXT_FIELD*)OSD_GetObjpNext(txt);//txt->head.pNext;
if(valid_idx)
{
OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)unistr);
}
else
OSD_SetTextFieldContent(txt,STRING_ANSI,(UINT32)"");
}
}
示例9: win_multifeed_set_display
void win_multifeed_set_display(void)
{
TEXT_FIELD *txt;
OBJLIST* ol;
UINT16 i,cnt,top_idx,cur_idx,dep;
P_NODE p_node;
UINT16 channel;
UINT8 name[32];
channel = sys_data_get_cur_group_cur_mode_channel();
get_prog_at(channel,&p_node);
ol = &multifeed_ol;
cnt = OSD_GetObjListCount(ol);
dep = OSD_GetObjListPage(ol);
top_idx = OSD_GetObjListTop(ol);
for(i=0;i<dep;i++)
{
cur_idx = top_idx + i;
txt = text_items[i];
if(cur_idx < cnt )
{
multifeed_get_feed_name(p_node.prog_id, cur_idx, name);
OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)name);
}
else
OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)"");
}
}
示例10: init_movefile_info
static void init_movefile_info()
{
char file_path[FULL_PATH_SIZE], str_buff[10];
UINT16 offset;
TEXT_FIELD *pTxt;
POBJLIST pOl;
get_file_list_info(win_move_dirlist, &movefile_dirnum, &movefile_filenum, file_path);
if(!STRCMP(file_path, FS_ROOT_DIR))
{
offset = 0;
}
else
{
offset = 1;
}
pOl = &ol_mpmove;
OSD_SetObjListCount(pOl,(movefile_dirnum + movefile_filenum + offset));
OSD_SetObjListNewPoint(pOl,0);
OSD_SetObjListCurPoint(pOl,0);
OSD_SetObjListTop(pOl,0);
pTxt = &mpmove_dir_txt;
win_get_display_dirname(str_buff, file_path);
OSD_SetTextFieldContent(pTxt,STRING_UTF8,(UINT32)str_buff);//show current dir name
pTxt = &mpmove_dev_name;
win_get_display_devicename(str_buff, movefile_cur_device);
sprintf(str_buff,"%s",str_buff);
OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);//show current device name
}
示例11: win_set_mpflielist_help2
static void win_set_mpflielist_help2(struct mp_help_item1_resource *helpinfo,UINT8 item_count)
{
UINT8 i = 0;
BITMAP *pBtn;
TEXT_FIELD *pTxt;
struct mp_help_item1_resource* helpitem;
for(i = 0; i < item_count;i++)
{
helpitem = &helpinfo[i];
pBtn = pHelp2Btn_icons[i];
OSD_SetBitmapContent(pBtn, helpitem->bmp_id);
pTxt = pHelp2Txt_ids[i];
OSD_SetTextFieldContent(pTxt,STRING_ID,helpitem->str_id);
}
if(item_count<HELPCNT)//some help item not show
{
for(i=item_count; i<HELPCNT; i++)
{
pBtn = pHelp2Btn_icons[i];
OSD_SetBitmapContent(pBtn , 0);
pTxt = pHelp2Txt_ids[i];
OSD_SetTextFieldContent(pTxt,STRING_ID,0);
}
}
}
示例12: win_finger_print_draw_info
static void win_finger_print_draw_info(char* str, UINT16* unistr, UINT16 xpos)
{
TEXT_FIELD* txt;
static UINT16 pre_xpos = 0;
txt = &txt_fingerprint;
if(xpos != pre_xpos)
{
OSD_ClearObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
pre_xpos = xpos;
}
txt->head.frame.uLeft = xpos;
if(str != NULL)
OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)str);
else if (unistr != NULL)
OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)unistr);
if((str != NULL)||(unistr != NULL))
{
OSD_DrawObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
}
else
{
OSD_ClearObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
}
}
示例13: win_par_set_channel_lock_string
void win_par_set_channel_lock_string(UINT8 input)
{
if(input==0)
OSD_SetTextFieldContent(&par_item_txtset2, STRING_ID,RS_COMMON_OFF);
else
OSD_SetTextFieldContent(&par_item_txtset2, STRING_ID,RS_COMMON_ON);
}
示例14: win_tms_set_string
void win_tms_set_string(UINT8 input, PTEXT_FIELD ptxt)
{
if(input==0)
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_COMMON_OFF);
else
OSD_SetTextFieldContent(ptxt, STRING_ID,RS_COMMON_ON);
}
示例15: win_setting_display
static void win_setting_display(BOOL bDraw)
{
UINT8 i,bID;
char str_buff[10];
TEXT_FIELD *pTxt;
CONTAINER *win;
if(0 == image_slide_temp.uTime_gap)
sprintf(str_buff, "Off");
else
sprintf(str_buff,"%d Sec",image_slide_temp.uTime_gap);
win = &g_win_slidesetup;
bID = OSD_GetContainerFocus(win);
for(i = 0; i < 2; i++)
{
pTxt = txt_settings[i];
if(i == 0)
OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);
else
OSD_SetTextFieldContent(pTxt,STRING_ID,slide_repeat_strids[image_slide_temp.bRepeat]);
if((bID == (i + 1)) && (bDraw))
{
OSD_TrackObject((POBJECT_HEAD)pTxt, C_UPDATE_ALL);
}
}
}