示例#1
0
CUIEditBoxEx::CUIEditBoxEx()
{
	m_pFrameWindow = new CUIFrameWindow();
	AttachChild(m_pFrameWindow);

	SetTextComplexMode( true );
}
示例#2
0
CUICustomEdit::CUICustomEdit()
{
	m_editor_control = new text_editor::line_edit_control( (u32)EDIT_BUF_SIZE );
	Init( (u32)EDIT_BUF_SIZE );

	SetVTextAlignment( valCenter );
	SetTextComplexMode( false );
	m_pLines->SetColoringMode( false );
	m_pLines->SetCutWordsMode( true );
	m_pLines->SetUseNewLineMode( false );
	
	m_out_str[0]   = NULL;
	m_dx_cur       = 0.0f;
	m_read_mode    = false;
	m_force_update = true;
	m_last_key_state_time = 0;
}	
示例#3
0
CUIButton:: CUIButton()
{
	m_eButtonState				= BUTTON_NORMAL;
	m_ePressMode				= NORMAL_PRESS;
	m_bButtonClicked			= false;
	m_bAvailableTexture			= false;
	m_bIsSwitch					= false;

	m_PushOffset.set			(PUSH_OFFSET_RIGHT, PUSH_OFFSET_DOWN);

	m_HighlightColor			= 0xFFFFFFFF;
	m_uAccelerator[0]				= 0;
	m_uAccelerator[1]				= 0;

	m_bEnableTextHighlighting	= true;

	m_ShadowOffset.set			(0.0f,0.0f);

	SetTextComplexMode			(false);
	SetTextAlignment			(CGameFont::alCenter); // this will create class instance for m_pLines
	SetVTextAlignment			(valCenter);
	m_bClickable				= true;
}