예제 #1
0
 Listbox::Listbox(ListboxModel* model)
     : model_(model),
     listener_(NULL),
     native_wrapper_(NULL)
 {
     set_focusable(true);
 }
예제 #2
0
Button::Button(
    Rect parent_rect,
    std::string text
) : Widget { parent_rect },
    text_ { text }
{
    set_focusable(true);
}
예제 #3
0
	PuttyView::PuttyView()
	{
		extern Config cfg;
		puttyController_ = new NativePuttyController(&cfg, this);
		//SetVisible(false);
		set_focusable(true);
		//set_background(Background::CreateStandardPanelBackground());
	}
예제 #4
0
ImageButton::ImageButton(
    const Rect parent_rect,
    const Bitmap* bitmap,
    const Color foreground,
    const Color background
) : Image { parent_rect, bitmap, foreground, background }
{
    set_focusable(true);
}
예제 #5
0
OptionsField::OptionsField(
    Point parent_pos,
    int length,
    options_t options
) : Widget { { parent_pos, { 8 * length, 16 } } },
length_ { length },
        options { options }
{
    set_focusable(true);
}
예제 #6
0
NumberField::NumberField(
    Point parent_pos,
    int length,
    range_t range,
    int32_t step,
    char fill_char
) : Widget { { parent_pos, { 8 * length, 16 } } },
range { range },
step { step },
length_ { length },
fill_char { fill_char }
{
    set_focusable(true);
}
예제 #7
0
	MenuView() {
		set_focusable(true);
	}
예제 #8
0
 SilverlightView::SilverlightView() : ax_host_(new AxHost(this)),
     initialized_(false)
 {
     set_focusable(true);
 }
예제 #9
0
void CL_Label::init(const std::string &text)
{
	impl = new CL_Label_Generic(this, text);
	get_style_manager()->connect_styles("label", this);
	set_focusable(false);
}