diff --git a/uppdev/RichEditTest/main.cpp b/uppdev/RichEditTest/main.cpp index 8b5b9a6c7..3e35ae810 100644 --- a/uppdev/RichEditTest/main.cpp +++ b/uppdev/RichEditTest/main.cpp @@ -1,59 +1,59 @@ -#include - -using namespace Upp; - -String FileName() -{ -// return "d:/test.qtf"; - return GetExeDirFile("test.qtf"); -} - - -GUI_APP_MAIN -{ -// ChClassicSkin(); -// ChStdSkin(); -// SetLanguage(LNG_('P','L','P','L')); - -// InstallCrashDump(); - DDUMP(GetStdFontCy()); - DUMP(GUI_PopUpEffect()); - -// PromptOK("[H20L1 &&&"); - - RichEditWithToolBar e; - e.SetPage(Size(6074, 3968)); - Vector h; - for(int i = 1; i < Font::GetFaceCount(); i++) - if((Font::GetFaceInfo(i) & Font::SCALEABLE) && !(Font::GetFaceInfo(i) & Font::SPECIAL)) - h.Add(i); - e.FontFaces(h); - -// GUI_PopUpEffect_Write(GUIEFFECT_NONE); - - DUMP(ScrollBarSize()); - - e.Pick(ParseQTF(LoadFile(FileName()))); -// e.SetQTF(LoadFile("U:\\xxx\\PainterBug.qtf")); -// e.ClipZoom(4, 1); -// Ctrl::ShowRepaint(50); - RichEdit::PosInfo f; - LoadFromFile(f, ConfigFile("pos")); - e.SetPosInfo(f); -// e.Pick(ParseQTF(AsQTF(CreateImageObject(CtrlImg::exclamation)) + " hahahaha")); - TopWindow w; - w.SetRect(0, 0, 700, 500); - w.Sizeable().Zoomable(); - w.Add(e.SizePos()); - w.Run(); -/* - String strQTF = e.GetQTF(CHARSET_ISO8859_1); - e.SetQTF(strQTF); - w.Run(); -*/ - String x = e.GetQTF(); - SaveFile(FileName(), x); - f = e.GetPosInfo(); - StoreToFile(f, ConfigFile("pos")); - LOG("Exit"); -} +#include + +using namespace Upp; + +String FileName() +{ +// return "d:/test.qtf"; + return GetExeDirFile("test.qtf"); +} + + +GUI_APP_MAIN +{ +// ChClassicSkin(); +// ChStdSkin(); +// SetLanguage(LNG_('P','L','P','L')); + +// InstallCrashDump(); + DUMP(GetStdFontCy()); + DUMP(GUI_PopUpEffect()); + +// PromptOK("[H20L1 &&&"); + + RichEditWithToolBar e; + e.SetPage(Size(6074, 3968)); + Vector h; + for(int i = 1; i < Font::GetFaceCount(); i++) + if((Font::GetFaceInfo(i) & Font::SCALEABLE) && !(Font::GetFaceInfo(i) & Font::SPECIAL)) + h.Add(i); + e.FontFaces(h); + +// GUI_PopUpEffect_Write(GUIEFFECT_NONE); + + DUMP(ScrollBarSize()); + + e.Pick(ParseQTF(LoadFile(FileName()))); +// e.SetQTF(LoadFile("U:\\xxx\\PainterBug.qtf")); +// e.ClipZoom(4, 1); +// Ctrl::ShowRepaint(50); + RichEdit::PosInfo f; + LoadFromFile(f, ConfigFile("pos")); + e.SetPosInfo(f); +// e.Pick(ParseQTF(AsQTF(CreateImageObject(CtrlImg::exclamation)) + " hahahaha")); + TopWindow w; + w.SetRect(0, 0, 700, 500); + w.Sizeable().Zoomable(); + w.Add(e.SizePos()); + w.Run(); +/* + String strQTF = e.GetQTF(CHARSET_ISO8859_1); + e.SetQTF(strQTF); + w.Run(); +*/ + String x = e.GetQTF(); + SaveFile(FileName(), x); + f = e.GetPosInfo(); + StoreToFile(f, ConfigFile("pos")); + LOG("Exit"); +}