2018-03-13, 22:46
Hi Gade,
...
---Edit---
Where is the Profile Login/Logout button?
...
---Edit---
Where is the Profile Login/Logout button?
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>
cpp:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>
(2018-03-23, 18:24)Angelinas Wrote: Edit:
Gade
Seams to be wrong code in wiki System.IsLoggedOn is always "false" ...yours working ?!?
Code:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>
(2018-03-23, 23:58)Karellen Wrote: @Angelinas
cpp:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>
I added your edits into DialogButtonMenu.xml and tested. It works. I now have the logoff option and am able to switch profiles.
Thank you!!
cpp:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
<visible>System.LoggedOn</visible>
</control>
cpp:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>System.HasLoginScreen + System.Loggedon</visible>
</control>
cpp:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>
CPP:<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
<visible>System.LoggedOn</visible>
</control>