Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about grid
Message
From
14/09/1999 12:10:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/09/1999 11:14:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00264478
Message ID:
00264532
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform