Hi Gertjan
Can you please provide more information around this solution. I cannot see how you can change the visibility property of this check-box (or anything else for that matter) of the panel-reference.
I need a solution to auto-login and auto-select of screen. But at the same time I'd need the possibility of having a setting (in the config-file) that can allow the user to select what screen to use (if more than one is available)
To do this I have modified the initialize script of the login.pnl (and made everything in the panel invisible). After the original initialize this is added:
Code: Select all
int showScreenSelector;
paCfgReadValue(getPath(CONFIG_REL_PATH)+"config", "MySettings", "showScreenSelector", showScreenSelector);
if (showScreenSelector==1))
chkParaMm.state(0,true);
// Setting thes to -1 forces OA to choose default resolution
g_diXRes[myUiNumber()] = -1;
g_diYRes[myUiNumber()] = -1;
setMultiValue("name","text","root",
"password","text","");
logincheck(bAllowRemoteLogin);
This used to work, but with the latest patches of 3.15 (at least p14 & p15) it doesn't anymore. But if I remove my custom login.pnl, start up and select(enable) a screen on the remove running DesktopUi, reinserts my custon panel.pnl, and restart the remote running DesktopUi. Everything seems to work ok.
Why is this? And what is the good solution to this problem (as editing login.pnl isn't a good way) ?
Best regards, Dag-Are Trydal