summary refs log tree commit diff stats
path: root/tests/rodfiles
Commit message (Expand)AuthorAgeFilesLines
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-3/+0
* updated test caseAraq2016-08-271-2/+2
* next steps in getting symbol files to work againAraq2016-08-163-7/+6
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-047-24/+24
* nimrod -> nim in some filenamesdef2015-02-141-0/+0
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-163-0/+0
* pragma statements in rodfiles -- couldn't reproduceAraq2012-09-181-0/+3
* fixed the rodfiles testsZahary Karadjov2012-07-201-0/+2
* attempt to make tests greenAraq2012-04-171-1/+1
* re-enable rodfiles tests; fixes #91Zahary Karadjov2012-04-112-2/+0
* the test suite is mostly green againZahary Karadjov2012-03-162-1/+3
* compilation cache: fixed recently introduced bug (lazy loading of bodies)Araq2011-11-062-0/+26
* splicing tested and documentedAraq2011-10-284-8/+4
* compilation cache: tests now part of test suiteAraq2011-10-2715-30/+194
* rod files: next trivial examples workingAraq2011-10-221-0/+30
{ color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Example IUP program

# IupTabs: Creates a IupTabs control.

import iup

discard iup.Open(nil, nil)

var vbox1 = Iup.Vbox(Iup.Label("Inside Tab A"), Iup.Button("Button A", ""), nil)
var vbox2 = Iup.Vbox(Iup.Label("Inside Tab B"), Iup.Button("Button B", ""), nil)

Iup.SetAttribute(vbox1, "TABTITLE", "Tab A")
Iup.SetAttribute(vbox2, "TABTITLE", "Tab B")

var tabs1 = Iup.Tabs(vbox1, vbox2, nil)

vbox1 = Iup.Vbox(Iup.Label("Inside Tab C"), Iup.Button("Button C", ""), nil)
vbox2 = Iup.Vbox(Iup.Label("Inside Tab D"), Iup.Button("Button D", ""), nil)

Iup.SetAttribute(vbox1, "TABTITLE", "Tab C")
Iup.SetAttribute(vbox2, "TABTITLE", "Tab D")

var tabs2 = Iup.Tabs(vbox1, vbox2, nil)
Iup.SetAttribute(tabs2, "TABTYPE", "LEFT")

var box = Iup.Hbox(tabs1, tabs2, nil)
Iup.SetAttribute(box, "MARGIN", "10x10")
Iup.SetAttribute(box, "GAP", "10")

var dlg = Iup.Dialog(box)
Iup.SetAttribute(dlg, "TITLE", "IupTabs")
Iup.SetAttribute(dlg, "SIZE", "200x100")

discard ShowXY(dlg, IUP_CENTER, IUP_CENTER)
discard MainLoop()
Close()