예제 #1
0
 public static IupHandle Dialog(IupHandle child)
 {
     return(IupHandle.Create(NativeIUP.IupDialog(IupHandle.GetCHandle(child))));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 public static CBResult LoopStepWait()
 {
     return((CBResult)NativeIUP.IupLoopStepWait());
 }
예제 #4
0
 public static IupHandle IupProgressDlg()
 {
     return(IupHandle.Create(NativeIUP.IupProgressDlg()));
 }
예제 #5
0
 public static int Alarm(string title, string message, string button1, string button2, string button3)
 {
     return(NativeIUP.IupAlarm(title, message, button1, button2, button3));
 }
예제 #6
0
 public static void TreeSetAttributeHandle(IupHandle ih, string name, int id, IupHandle ih_named)
 {
     NativeIUP.IupTreeSetAttributeHandle(IupHandle.GetCHandle(ih), name, id, IupHandle.GetCHandle(ih_named));
 }
예제 #7
0
 public static IupHandle ColorDlg()
 {
     return(IupHandle.Create(NativeIUP.IupColorDlg()));
 }
예제 #8
0
 public static IupHandle Val(bool horizontal)
 {
     return(IupHandle.Create(NativeIUP.IupVal(horizontal ? "HORIZONTAL" : "VERTICAL")));
 }
예제 #9
0
 public static IupHandle Tabs(params IupHandle[] children)
 {
     return(IupHandle.Create(NativeIUP.IupTabsv(PtrArrayOf(children))));
 }
예제 #10
0
 public static IupHandle Toggle(string title, string action = null)
 {
     return(IupHandle.Create(NativeIUP.IupToggle(title, action)));
 }
예제 #11
0
 public static IupHandle Clipboard()
 {
     return(IupHandle.Create(NativeIUP.IupClipboard()));
 }
예제 #12
0
 public static IupHandle Text(string action = null)
 {
     return(IupHandle.Create(NativeIUP.IupText(action)));
 }
예제 #13
0
 public static IupHandle Label(string title)
 {
     return(IupHandle.Create(NativeIUP.IupLabel(title)));
 }
예제 #14
0
 public static IupHandle User()
 {
     return(IupHandle.Create(NativeIUP.IupUser()));
 }
예제 #15
0
 public static IntPtr TreeGetUserId(IupHandle ih_tree, int id)
 {
     return(NativeIUP.IupTreeGetUserId(IupHandle.GetCHandle(ih_tree), id));
 }
예제 #16
0
 public static IupHandle Tree()
 {
     return(IupHandle.Create(NativeIUP.IupTree()));
 }
예제 #17
0
 public static int TreeGetId(IupHandle ih_tree, IntPtr userid)
 {
     return(NativeIUP.IupTreeGetId(IupHandle.GetCHandle(ih_tree), userid));
 }
예제 #18
0
 public static IupHandle Link(string url, string title)
 {
     return(IupHandle.Create(NativeIUP.IupLink(url, title)));
 }
예제 #19
0
 public static IupHandle MessageDlg()
 {
     return(IupHandle.Create(NativeIUP.IupMessageDlg()));
 }
예제 #20
0
 public static bool SaveImageAsText(IupHandle ih, string filename, SaveImageFormat format, string name)
 {
     return(NativeIUP.IupSaveImageAsText(IupHandle.GetCHandle(ih), filename, format.ToString().ToUpper(), name) != 0);
 }
예제 #21
0
 public static IupHandle FontDlg()
 {
     return(IupHandle.Create(NativeIUP.IupFontDlg()));
 }
예제 #22
0
 public static void TextConvertLinColToPos(IupHandle ih, int lin, int col, out int pos)
 {
     NativeIUP.IupTextConvertLinColToPos(IupHandle.GetCHandle(ih), lin, col, out pos);
 }
예제 #23
0
 public static void Message(string title, string message)
 {
     NativeIUP.IupMessage(title, message);
 }
예제 #24
0
 public static void TextConvertPosToLinCol(IupHandle ih, int pos, out int lin, out int col)
 {
     NativeIUP.IupTextConvertPosToLinCol(IupHandle.GetCHandle(ih), pos, out lin, out col);
 }
예제 #25
0
 public static void Close()
 {
     NativeIUP.IupClose();
 }
예제 #26
0
 public static int ConvertXYToPos(IupHandle ih, int x, int y)
 {
     return(NativeIUP.IupConvertXYToPos(IupHandle.GetCHandle(ih), x, y));
 }
예제 #27
0
 public static int MainLoop()
 {
     return(NativeIUP.IupMainLoop());
 }
예제 #28
0
 public static bool TreeSetUserId(IupHandle ih_tree, int id, IntPtr userid)
 {
     return(NativeIUP.IupTreeSetUserId(IupHandle.GetCHandle(ih_tree), id, userid) != 0);
 }
예제 #29
0
 public static IupHandle LayoutDialog(IupHandle dialog)
 {
     return(IupHandle.Create(NativeIUP.IupLayoutDialog(IupHandle.GetCHandle(dialog))));
 }
예제 #30
0
 public static IupHandle Canvas(string action = null)
 {
     return(IupHandle.Create(NativeIUP.IupCanvas(action)));
 }