Windows Properties and users

3 Posts
3 Users
0 Likes
26 Views
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

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.

 
Posted : 28/10/2014 10:03 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

I don't know if there is a trick to do that.
Thisproject.DisplaySettings.Maximize = True !!!!

Ask Manu E just in case.

 
Posted : 28/10/2014 10:52 pm
(@e.ecochard@arcinfo.com)
Posts: 0
New Member Guest
 

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

 
Posted : 28/10/2014 11:26 pm