Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent resizing grid controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00210163
Message ID:
00210182
Vues:
100
>>>How can I lock down the row height and column width properties so users cannot resize them during runtime ?
>>
>>Grid.AllowRowSizing = .F.
>>Grid.Column.Resizable = .F.
>
>AllowRowSizing must have been added after VFP 3.0; I cannot find it. I did find Column.Resizable -- thanks.

Didn't know it was for VFP3.

In that case, what you may want to try is to dynamically create a shape on the form that is transparent and align it over the top/left of the grid, just large enough to cover the row divider line that allows a user to resize it.

ex: In the Grid Init()
Thisform.AddObject( "GridCover", "shape" )
With Thisform.GridCover
  .top  = This.Top
  .left = This.Left
  .Height = This.Height
  .Width = 20  
  .BackStyle = 0
  .Visible = .T.
  .ZOrder(0)
  && or some other number, based on if the delete mark,
  && or record mark positions are visible... This should 
  && just go over 1 or 2 pixels within the first column.
EndWith
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform