Namaste,
Do you think it's possible to change Windows properties (styles for example) according to the User logged ?
A customer want to access to maximize, change the size,... when he is logged with admin right but not with operator right.
Thanks.
I don't know if there is a trick to do that.
Thisproject.DisplaySettings.Maximize = True !!!!
Ask Manu E just in case.
Be careful to whom your are bowing in front of...
It is possible to change the window style properties using VBA (see the VBA "Window" class). The trick is to get the current user-rights: There is VBA object "UserRights" but unfortunately it was developed for FrontVue and and all the properties are not correctly updates in the case of PcVue. However, one of them is correctly updated and could work for your customer. It is the "Design" right.
Here is a sample, authorizing or not the use of the maximize button of all the windows when a user login/off:
Private Sub fvProject_UserChanged()
Dim m As Mimic
Dim w As Window
For Each m In Mimics
For Each w In m.Windows
w.MaxButton = UserRights.DesignRight
Next
Next
End Sub


