Problem mit LinkTo Property
Sascha Balke
Hallo Zusammen,in meinem ersten coresuite Framework Projekt habe ich das Problem, dass ich den weißen Strich nicht unter die Labels bekomme.
Habe schon mehrere Varianten getestet, jedoch bekomme ich es nicht hin.
Hier der Code-Bereich:
.
..
...
const string ITEM_STATIC_BELEGDATUM = "86";
const string ITEM_TEXTEDIT_BELEGDATUM = "46";
Item i = Item.GetFromUID(pVal.Form, ITEM_TEXTEDIT_BELEGDATUM);
TextEdit t = TextEdit.CreateNew("EIUD0001");
t.Left = i.Left;
t.Width = i.Width;
t.Height = i.Height;
t.Top = i.Top + i.Height + 1;
t.Enabled = false;
Item l = Item.GetFromUID(pVal.Form, ITEM_STATIC_BELEGDATUM);
Label label = Label.CreateNew("MeinFeld");
label.Value = "Mein Feld";
label.Left = l.Left;
label.Width = l.Width;
label.Height = l.Height;
label.Top = l.Top + l.Height + 1;
label.Enabled = false;
label.LinkTo = t.UniqueID; /*weißer Strich*/
// label.LinkTo = "EIUD0001";
pVal.Form.AddItem(t);
pVal.Form.AddItem(label);
pVal.Form.Update();
...
..
.
Hoffe jemand von euch sieht die Ursache und hat eine passende Lösung für mich.
Besten Dank schon mal im Voraus!
Anders Olsson
Hi Sascha,I have noticed that the line visibility depends on the height of the "linked" items. If you don't set the height property on the textbox and label for example, the line will be shown. I don't know why this is the case.
Kind regards,
Anders Olsson
0
Please sign in to leave a comment.
Comments
0 comments