|
@@ -242,26 +242,26 @@ struct OskWindow : public Window {
|
|
|
|
|
|
void InvalidateParent()
|
|
|
{
|
|
|
QueryStringBaseWindow *w = dynamic_cast<QueryStringBaseWindow*>(this->parent);
|
|
|
if (w != NULL) w->OnOSKInput(this->text_btn);
|
|
|
|
|
|
this->InvalidateWidget(OSK_WIDGET_TEXT);
|
|
|
if (this->parent != NULL) this->parent->InvalidateWidget(this->text_btn);
|
|
|
this->SetWidgetDirty(OSK_WIDGET_TEXT);
|
|
|
if (this->parent != NULL) this->parent->SetWidgetDirty(this->text_btn);
|
|
|
}
|
|
|
|
|
|
virtual void OnMouseLoop()
|
|
|
{
|
|
|
this->qs->HandleEditBox(this, OSK_WIDGET_TEXT);
|
|
|
/* make the caret of the parent window also blink */
|
|
|
this->parent->InvalidateWidget(this->text_btn);
|
|
|
this->parent->SetWidgetDirty(this->text_btn);
|
|
|
}
|
|
|
|
|
|
virtual void OnInvalidateData(int)
|
|
|
{
|
|
|
this->InvalidateWidget(OSK_WIDGET_TEXT);
|
|
|
this->SetWidgetDirty(OSK_WIDGET_TEXT);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
static const Widget _osk_widgets[] = {
|
|
|
{ WWT_CAPTION, RESIZE_NONE, COLOUR_GREY, 0, 255, 0, 13, STR_WHITE_STRING, STR_NULL}, // OSK_WIDGET_CAPTION
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_GREY, 0, 255, 14, 29, 0x0, STR_NULL}, // OSK_WIDGET_TEXT_BACKGROUND
|