p.Initialize (MainForm.RootPane, "Preferences Example")
'first parameter is the item key.
p.AddSeparator("Category #1")
p.AddBooleanItem("1", "Yes or No?")
p.AddBooleanItem("2", "Yes or No?")
p.AddColorItem("Favorite Color", "Color")
p.AddSeparator("Category #2")
p.AddDateItem("Birthday", "Birthday")
p.AddSeparator("Category #3")
p.AddOptionsItem("opt1", "Options example", Array("Red", "Green", "CCC"))
p.AddTextItem("fsf", "Something")
p.AddTextItem("fsf23", "Something")