179 |
//If LogWindow is not initialized and it is possible, do it ... |
//If LogWindow is not initialized and it is possible, do it ... |
180 |
if (PG_LogWindow == NULL) { |
if (PG_LogWindow == NULL) { |
181 |
PG_Rect r(25,100,PG_Application::GetScreenWidth()-50,300); |
PG_Rect r(25,100,PG_Application::GetScreenWidth()-50,300); |
182 |
PG_LogWindow = new PG_Window(NULL, r, my_title.c_str(), WF_SHOW_CLOSE, "Window", 25); |
PG_LogWindow = new PG_Window(NULL, r, my_title.c_str(), PG_Window::SHOW_CLOSE, "Window", 25); |
183 |
PG_LogWindowData = new PG_RichEdit(PG_LogWindow, PG_Rect(1,26,r.w-2,r.h-27)); |
PG_LogWindowData = new PG_RichEdit(PG_LogWindow, PG_Rect(1,26,r.w-2,r.h-27)); |
184 |
} |
} |
185 |
|
|
218 |
PG_LogWindowData->SetText(buffer); |
PG_LogWindowData->SetText(buffer); |
219 |
} |
} |
220 |
|
|
221 |
void PG_LogConsole::SetTitle(const char* title, int alignment) { |
/*void PG_LogConsole::SetTitle(const char* title, PG_Label::TextAlign alignment) { |
222 |
my_title = title; |
my_title = title; |
223 |
|
|
224 |
if (PG_LogWindow) { |
if (PG_LogWindow) { |
225 |
PG_LogWindow->SetTitle(title, alignment); |
PG_LogWindow->SetTitle(title, alignment); |
226 |
} |
} |
227 |
} |
}*/ |
228 |
|
|
229 |
void PG_LogConsole::Show() { |
void PG_LogConsole::Show() { |
230 |
if(PG_LogWindow) { |
if(PG_LogWindow) { |