Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about grid
Message
De
14/09/1999 12:10:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/09/1999 11:14:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00264478
Message ID:
00264532
Vues:
20
>It is possible to select multiple TextBoxes and modify the font size or whatever for all of the selected TextBoxes.
>
>Is it possible to do it for elements contained in a grid ?
>
>I mean can I select multiple column headers and modify all the properties for the selected headers like it can be done for TextBoxes ?


Yes and no. No because you can't select multipl controls in a grid. Yes, you can select the grid and use a small prg to do the process (select grid in form - go to Command window and run like SetHeaderFonts("1,3,5","Times New Roman",14)) :
*SetHeaderFonts.prg
lparameters tcColumnNumberList, tcFontName, tnFontSize
aselobj(aGrid)
with aGrid[1]
 for ix = 1 to .Columncount
   if inlist(ix, &tcColumnNumberList)
      with .Columns(ix).Header1
         .FontName = tcFontName
         .FontSize = tnFontSize
      endwith
   endif
 endfor
endwith
Also you could use setall too if don't want to be selective (ie:in command window):
aselobj(aGrid)
aGrid[1].Setall("Fontname","Wingdings","Header")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform