Exemplo n.º 1
0
func New() *Imp {
	//
	x := new(Imp)
	x.Imp = mol.New()
	a := atom.New(enum.New(enum.Composer))
	a.SetColours(col.Yellow, col.Black)
	x.Ins(a, 0, 11)
	a = atom.New(text.New(lenWerk))
	a.SetColours(col.LightRed, col.Black)
	x.Ins(a, 1, 11)
	a = atom.New(text.New(lenOrch)) // Orchester
	x.Ins(a, 2, 11)
	a = atom.New(text.New(lenName)) // Dirigent
	a.SetColours(col.Cyan, col.Black)
	x.Ins(a, 3, 11)
	a = atom.New(text.New(lenName)) // Solist
	a.SetColours(col.LightBlue, col.Black)
	x.Ins(a, 4, 11)
	a = atom.New(text.New(lenName)) // Solist
	a.SetColours(col.LightBlue, col.Black)
	x.Ins(a, 5, 11)
	a = atom.New(enum.New(enum.RecordLabel))
	a.SetColours(col.LightCyan, col.Black)
	x.Ins(a, 6, 11)
	a = atom.New(enum.New(enum.AudioMedium))
	x.Ins(a, 7, 11)
	a = atom.New(enum.New(enum.SparsCode))
	x.Ins(a, 8, 11)

	var m *masks.Imp = masks.New()
	m.Ins("Komponist:", 0, 0)
	m.Ins("     Werk:", 1, 0)
	m.Ins("Orchester:", 2, 0)
	m.Ins(" Dirigent:", 3, 0)
	m.Ins(" Solist 1:", 4, 0)
	m.Ins(" Solist 2:", 5, 0)
	m.Ins("    Firma:", 6, 0)
	m.Ins("   Platte:", 7, 0)
	m.Ins("       ad:", 8, 0)
	x.SetMask(m)

	return x
}
Exemplo n.º 2
0
	LenCity   = 22
)

type Imp struct {
	street   *text.Imp
	postcode *bnat.Imp
	city     *text.Imp
	phonenumber,
	cellnumber *phone.Imp
}

var (
	bx                 *box.Imp   = box.New()
	pbx                *pbox.Imp  = pbox.New()
	cF, cB             col.Colour = col.LightCyan, col.Black
	mask               *masks.Imp = masks.New()
	cst, cpc, cci, cph uint
)

func (x *Imp) imp(Y Object) *Imp {
	//
	y, ok := Y.(*Imp)
	if !ok {
		TypeNotEqPanic(x, Y)
	}
	return y
}

func New() *Imp {
	//
	x := new(Imp)