Panel enabled

rossati

Active Member
Licensed User
Longtime User
Hello

the property Enabled of panels enable the wiews contained?

John Rossati
 
Thanks to all, in particular to JonPM: in effect whit, view, which is "generic" widget, I can disable/enable all panel’s views.
J.R.
 
Upvote 0
Yes, this is an example:
Code: Copy
For Each V As View In PnScreenCodi.GetAllViewsRecursive
      If OpGestione Then 'disabilito ogni view del pannello del "codice" se sono in gestione
          V.Enabled = False
      Else
           V.Enabled = True
      End If
Next
 
Upvote 0
Another trick to make the panel and its views "read-only" could be that of superimposing a same-sized transparent panel over it. The latter will consume any eventual touch event so the former behaves like it has been disabled.

udg
 
Upvote 0
Back
Top