Re: User id on bottom line of Magic window.
I think I prefer: StatusBarSetText('Ingelogd als: '&User(0))
Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io]
Namens Frederik Soete
Hi,
You can indeed add the username via some dot net snippet, e.g. like this, assuming a dot net invoke with the an expression of 'User(0)' as parameter: using System; using F = System.Windows.Forms;
public static class Snippet { public static void func(System.String user) { var form = F.Form.ActiveForm; while (form != null && form.Parent != null) { form = form.Parent as F.Form; } if (form != null) { foreach (var ssc in form.Controls) { if (ssc.GetType().ToString().Equals("com.magicsoftware.controls.MgStatusStrip")) { var ss = (F.StatusStrip)ssc; var ssi = new F.ToolStripStatusLabel(user); ssi.BorderSides = F.ToolStripStatusLabelBorderSides.Left | F.ToolStripStatusLabelBorderSides.Top; ss.Items.Insert(1, ssi); } } } } }
Op 1 jun. 2017 03:07 schreef "Heidi Schuppenhauer" <heidis13@...>:
|
||||
|