Re: User id on bottom line of Magic window.


Florian Groothuis
 

I think I prefer: StatusBarSetText('Ingelogd als: '&User(0))

 

Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Namens Frederik Soete
Verzonden: donderdag 1 juni 2017 7:07
Aan: main@magicu-l.groups.io
Onderwerp: Re: [magicu-l] User id on bottom line of Magic window.

 

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@...>:

I've heard of it being done using .Net objects. Actually you can add all kinds of things to the status bar, including a nice little green "progress bar". 


Heidi.Schuppenhauer

 

 

 

 

On Wed, May 31, 2017 at 7:17 AM, Bren607 <bren607@...> wrote:

Having just converted a system from uniPaaS to XPA , I notice the user id. is missing from the bottom line of the Magic window. In uniPaaS it is normally to the left of the Modify/Query indicator. Is there an ini setting which has disabled this? 

 

Met vriendelijke groet - With kind regards,

Florian Groothuis
Analist/programmeur
+31 (0)6 21927914


meilink.eu

Meilink Beheer Borculo B.V. • Kamerlingh Onnesstraat 1
7271 AZ  Borculo • Nederland • +31 (0)545 253525
KvK 08009803 • Our general terms and conditions apply • Disclaimer


Join main@magicu-l.groups.io to automatically receive all group messages.