public static IupHandle Dialog(IupHandle child) { return(IupHandle.Create(NativeIUP.IupDialog(IupHandle.GetCHandle(child)))); }
/// <summary> /// Single select version of ListDialog. /// </summary> /// <param name="title">Text in dialogs title bar.</param> /// <param name="max_col">Number of columns in list.</param> /// <param name="max_lin">Number of lines in list.</param> /// <param name="list">A collection of string to be shown in the list.</param> /// <param name="selected">Index of the pre-selected item, starting with 0 for the first item.</param> /// <returns>The selected item index or -1 if canceled.</returns> public static int ListDialog(string title, int max_col, int max_lin, IEnumerable <string> list, int selected) { string[] opts = new List <string>(list).ToArray(); return(NativeIUP.IupListDialog(1, title, opts.Length, opts, selected + 1, max_col, max_lin, null)); }
public static CBResult LoopStepWait() { return((CBResult)NativeIUP.IupLoopStepWait()); }
public static IupHandle IupProgressDlg() { return(IupHandle.Create(NativeIUP.IupProgressDlg())); }
public static int Alarm(string title, string message, string button1, string button2, string button3) { return(NativeIUP.IupAlarm(title, message, button1, button2, button3)); }
public static void TreeSetAttributeHandle(IupHandle ih, string name, int id, IupHandle ih_named) { NativeIUP.IupTreeSetAttributeHandle(IupHandle.GetCHandle(ih), name, id, IupHandle.GetCHandle(ih_named)); }
public static IupHandle ColorDlg() { return(IupHandle.Create(NativeIUP.IupColorDlg())); }
public static IupHandle Val(bool horizontal) { return(IupHandle.Create(NativeIUP.IupVal(horizontal ? "HORIZONTAL" : "VERTICAL"))); }
public static IupHandle Tabs(params IupHandle[] children) { return(IupHandle.Create(NativeIUP.IupTabsv(PtrArrayOf(children)))); }
public static IupHandle Toggle(string title, string action = null) { return(IupHandle.Create(NativeIUP.IupToggle(title, action))); }
public static IupHandle Clipboard() { return(IupHandle.Create(NativeIUP.IupClipboard())); }
public static IupHandle Text(string action = null) { return(IupHandle.Create(NativeIUP.IupText(action))); }
public static IupHandle Label(string title) { return(IupHandle.Create(NativeIUP.IupLabel(title))); }
public static IupHandle User() { return(IupHandle.Create(NativeIUP.IupUser())); }
public static IntPtr TreeGetUserId(IupHandle ih_tree, int id) { return(NativeIUP.IupTreeGetUserId(IupHandle.GetCHandle(ih_tree), id)); }
public static IupHandle Tree() { return(IupHandle.Create(NativeIUP.IupTree())); }
public static int TreeGetId(IupHandle ih_tree, IntPtr userid) { return(NativeIUP.IupTreeGetId(IupHandle.GetCHandle(ih_tree), userid)); }
public static IupHandle Link(string url, string title) { return(IupHandle.Create(NativeIUP.IupLink(url, title))); }
public static IupHandle MessageDlg() { return(IupHandle.Create(NativeIUP.IupMessageDlg())); }
public static bool SaveImageAsText(IupHandle ih, string filename, SaveImageFormat format, string name) { return(NativeIUP.IupSaveImageAsText(IupHandle.GetCHandle(ih), filename, format.ToString().ToUpper(), name) != 0); }
public static IupHandle FontDlg() { return(IupHandle.Create(NativeIUP.IupFontDlg())); }
public static void TextConvertLinColToPos(IupHandle ih, int lin, int col, out int pos) { NativeIUP.IupTextConvertLinColToPos(IupHandle.GetCHandle(ih), lin, col, out pos); }
public static void Message(string title, string message) { NativeIUP.IupMessage(title, message); }
public static void TextConvertPosToLinCol(IupHandle ih, int pos, out int lin, out int col) { NativeIUP.IupTextConvertPosToLinCol(IupHandle.GetCHandle(ih), pos, out lin, out col); }
public static void Close() { NativeIUP.IupClose(); }
public static int ConvertXYToPos(IupHandle ih, int x, int y) { return(NativeIUP.IupConvertXYToPos(IupHandle.GetCHandle(ih), x, y)); }
public static int MainLoop() { return(NativeIUP.IupMainLoop()); }
public static bool TreeSetUserId(IupHandle ih_tree, int id, IntPtr userid) { return(NativeIUP.IupTreeSetUserId(IupHandle.GetCHandle(ih_tree), id, userid) != 0); }
public static IupHandle LayoutDialog(IupHandle dialog) { return(IupHandle.Create(NativeIUP.IupLayoutDialog(IupHandle.GetCHandle(dialog)))); }
public static IupHandle Canvas(string action = null) { return(IupHandle.Create(NativeIUP.IupCanvas(action))); }