From e7be67686a546ec359e73acde5aa38233e27ac77 Mon Sep 17 00:00:00 2001 From: Armando Rivera Date: Sun, 25 Jul 2021 18:50:44 -0400 Subject: [PATCH] Updated --- doc/NimCocoa GUI Objects.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/doc/NimCocoa GUI Objects.md b/doc/NimCocoa GUI Objects.md index e3b30a3..8185f50 100644 --- a/doc/NimCocoa GUI Objects.md +++ b/doc/NimCocoa GUI Objects.md @@ -1,6 +1,6 @@ # NimCocoa GUI Objects -### newWindow +### NSWindow ##### proc newWindow*(title: cstring, width, height: int, style: int): ID @@ -18,7 +18,7 @@ var mainWin = newWindow("GUI", 800, 600, NSWindowStyleMaskTitled or NSWindowStyl ##### -### **newLabel** +### **NSLabel** ##### proc newLabel*(parent: ID; txt: cstring, left, top, width, height: int): ID @@ -38,7 +38,7 @@ var myLabel = newLabel(mainWin,"This is a label", 20,20,120,24) ### -### newButton +### NSButton ##### proc newButton*(parent: ID; caption: cstring; left: cint; top: cint; width: cint; height: cint; callback: ACTION): ID @@ -59,7 +59,7 @@ var btn = newButton(win, "OK", 385, 17, 81, 24, nil) ### -### **newTextField** +### **NSTextField** ##### proc newTextField*(parent: ID; txt: cstring; left: cint; top: cint; width: cint; height: cint): ID @@ -79,7 +79,7 @@ var myTextEntry = newTextField(mainWin,"", 20,20,320,24) ##### -### newTextEdit +### NSTextEdit ##### proc newTextEdit*(parent: ID; txt: cstring, left, top, width, height: int): ID @@ -99,7 +99,7 @@ var editor = newTextEdit(mainWin,"", 20, 40, 500, 500) ##### -## newListbox +## NSListbox ##### proc newListBox*(parent: ID, left, top, width, height: cint): ID @@ -118,7 +118,7 @@ var lbList = newListBox(mainwin, 16, 100, 508, 140) ##### -### newLine +### NSLine ##### proc newLine*(parent: ID, left, top, width: cint): ID @@ -136,7 +136,7 @@ var line = newLine(mainWin, 20, 100, 500) ##### -### newComboBox +### NSComboBox ##### proc newComboBox*(parent: ID; left: cint; top: cint; width: cint; height: cint; `callback`: ACTION): ID @@ -156,7 +156,7 @@ var combo = newComboBox(mainWin, 16,54,210,26, comboCallback) ##### -### newCheckBox +### NSCheckBox ##### proc newCheckBox*(parent: ID, caption: cstring, left, top, width, height:int): ID @@ -176,7 +176,7 @@ var chkbox = newCheckBox(mainWin,"Check Box 1", 240, 54, 100, 24) ##### -### newSlider +### NSSlider ##### proc newSlider*(parent: ID; left, top, width, height: int, callback: ACTION): ID @@ -196,7 +196,7 @@ var slide = newSlider(mainWin, 20, 20, 300, 24, [callback_proc or nil]) ### -### newOpenDialog +### NSOpenDialog ##### proc newOpenDialog*(parent: ID, types: cstring): cstring @@ -212,7 +212,7 @@ var filename = newOpenDialog(mainWin, "nim:c:m") ##### -### newSaveDialog +### NSSaveDialog ##### proc newSaveDialog*(parent: ID, types: cstring): cstring @@ -228,7 +228,7 @@ var filename = newSaveDialog(mainWin, "nim:c:m") ### -### newDialog +### NSDialog ##### proc newDialog*(title, message: cstring, height: cint): cint @@ -245,7 +245,7 @@ var retVal = newDialog("Hello", "Greetings from somewhere", 50) ##### -### newMessageBox +### NSMessageBox ##### proc newMessageBox*(title, message: cstring, height: cint): cint @@ -263,7 +263,7 @@ var retVal = newMessageBo("Info", "Today is Monday", 100) ##### -### newMenu +### NSMenu ##### proc newMenu*(title: cstring): ID @@ -279,7 +279,7 @@ var fileMenu = newMenu(mainWin,"File") ##### -### newMenuItem +### NSMenuItem ##### proc newMenuItem*(parent: ID, caption, key: cstring, `callback`:ACTION) @@ -295,7 +295,7 @@ var fileMenu = newMenu(mainWin,"File") ##### -### newMenuSeparator +### NSMenuSeparator ##### proc newMenuSeparator*(parent: ID)