diff src/textfile_gui.cpp @ 19560:b64f37b0e118 draft

(svn r24467) -Codechange [FS#5236]: make textfile window class slightly more general (LordAro)
author yexo <yexo@openttd.org>
date Mon, 13 Aug 2012 18:52:47 +0000
parents c4cc3952965b
children 2a11204038e3
line wrap: on
line diff
--- a/src/textfile_gui.cpp
+++ b/src/textfile_gui.cpp
@@ -55,6 +55,7 @@
 	this->vscroll = this->GetScrollbar(WID_TF_VSCROLLBAR);
 	this->hscroll = this->GetScrollbar(WID_TF_HSCROLLBAR);
 	this->FinishInitNested(&_textfile_desc);
+	this->GetWidget<NWidgetCore>(WID_TF_CAPTION)->SetDataTip(STR_TEXTFILE_README_CAPTION + file_type, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS);
 }
 
 /* virtual */ TextfileWindow::~TextfileWindow()