#include #ifdef flagGUI #define IMAGECLASS commonImg #define IMAGEFILE #include bool DropSelect(String& s, const char *title, const char *label, const Vector& lst) { int i; WithDropSelectPanel dlg; CtrlLayoutOKCancel(dlg, title); dlg.lbl = label; for (i = 0; i < lst.GetCount(); i++) { dlg.list.Add(AsString(lst[i])); } if(dlg.list.GetCount() > 0) dlg.list.SetData(s); if(dlg.Execute() == IDOK) { s = ~dlg.list; return true; } return false; } bool PromptPanelOKCancel(const String& tag, const String& text) { WithpromptPanel dlg; CtrlLayoutOKCancel(dlg, "Info"); dlg.Sizeable(); dlg.tag = tag; dlg.text.Set(text); if(dlg.Execute() == IDOK) { return true; } return false; } Zoom ZoomP(Ctrl &ctrl, int percent) { Zoom z; z.d = ctrl.GetSize().cx; z.m = (int)(((double)percent/1000)*z.d); return z; } void DirSel(EditField& f, FrameRight