Page 1 of 1

make user role mandatory in title bar

Posted: 15 Jun 2019 03:07
by yusef88
if xyplorer runs with admin rights, the title bar should show that automatically without need extra configuration
like many other programs do

Re: make user role mandatory in title bar

Posted: 15 Jun 2019 14:45
by RalphM
There's nothing that keeps you from adding this to your title bar template!

Re: make user role mandatory in title bar

Posted: 24 Jun 2019 14:36
by Leito
RalphM wrote: ↑15 Jun 2019 14:45 There's nothing that keeps you from adding this to your title bar template!
For those searching how to, add the following to Configuration → Colors and Styles → Templates → Titlebar

Code: Select all

<get userrole>

Re: make user role mandatory in title bar

Posted: 24 Jun 2019 17:09
by freddiking
Wow. Thank you so much for this tip. Very useful.

Re: make user role mandatory in title bar

Posted: 24 Jun 2019 17:14
by RalphM
Leito wrote: ↑24 Jun 2019 14:36 For those searching how to, add the following to Configuration → Colors and Styles → Templates → Titlebar

Code: Select all

<get userrole>
The following works as well:

Code: Select all

<get username>

Re: make user role mandatory in title bar

Posted: 28 Sep 2026 07:28
by GUIguy
You thank you very much.

Hey Don, this is a trivial thing that is not so trivial. Could you add this just as part of xy's normal operation and not necessarily make it a variable that someone has to adjust?

Of course, they should always be able to override it, but as a previous poster said it's a standard thing with most applications.

BTW, where is the list of all the variables that can be used in this position?

Thanks as always for the best application in the world...

Re: make user role mandatory in title bar

Posted: 28 Sep 2026 21:26
by GUIguy
OK. <get userrole> in the titlebar template Is fine and it works.

But now I'm going to get picky. Is there a way To only show the user role when it is admin and when its user just leave the userrole out? :?:

Re: make user role mandatory in title bar

Posted: 29 Sep 2026 09:10
by admin
Next beta:

Code: Select all

    + Title Bar: If you are an administrator, "[Administrator]" will now appear at the end 
      of the title bar caption.

Re: make user role mandatory in title bar

Posted: 29 Sep 2026 20:16
by GUIguy
IMHO, putting it at the far left side, that is, the beginning of the title bar is preferred. In left to right reading languages people would see that administrator indication first and frankly that's more important then the other information displayed on the title bar.

I don't know if it would make it more difficult in right to left reading languages but I can only opine on the one that I know

Re: make user role mandatory in title bar

Posted: 29 Sep 2026 20:25
by phred
GUIguy wrote: ↑29 Sep 2026 20:16 IMHO, putting it at the far left side, that is, the beginning of the title bar is preferred.
We all have our own way of working, but it's more important to me to see the path than to see the user/role.

If this were to implemented, perhaps it should be a tweak with 0 for leading and 1 for trailing. Or something like that.

Re: make user role mandatory in title bar

Posted: 29 Sep 2026 21:36
by GUIguy
Great idea, phred...

User options are ALWAYS best! And knowing Don, that should be easy to do... :biggrin:

Re: make user role mandatory in title bar

Posted: 30 Sep 2026 04:02
by phred
GUIguy wrote: ↑29 Sep 2026 21:36 And knowing Don, that should be easy to do... :biggrin:
Yes, Don is pretty good at implementing and fixing things.
But, two things I've learned in my long life of using software applications. Never tell a developer that something is easy to do. And never ask a developer when a feature (or release) will be available.

Re: make user role mandatory in title bar

Posted: 30 Sep 2026 04:56
by GUIguy
AMEN to that! in some 30 years of doing and teaching software design, there was never something that was "easy."

And two words that one should never use: temporary and permanent. :naughty: :lol:

BTW, I was just having some fun. I haven't needled him in a while, so it was long overdue...

Don is a rarity in this world, and despite what I say, he is to be valued and respected. :appl: It's one thing to have great ideas, which he has. It's another thing to be able to effectuate them in code, which he does.

Re: make user role mandatory in title bar

Posted: 30 Sep 2026 08:17
by admin
This here is definitely easy. I'll come up with something.