Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change display properties programatically 3

Status
Not open for further replies.

Docpro777

Programmer
Jul 1, 2003
105
US
Do any of you know how one might change display properties programatically, without affecting other windows' windows? Caption Font, color of title bar, etc.

Thought it might be interesting to play around with such (non-critical apps, etc.)

Thanks in advance,

Philip

Philip M. Traynor, DPM
 
Caption:

* form
Thisform.caption = "Hello"

* vfp app
_VFP.Caption = "Hello"

* label
THISFORM.lblName.caption = "Hello"

Color:
? getColor() to show the values or...
thisform.BackColor = getcolor()

* Fonts
thisform.label1.FontBold = .t.
thisform.label1.FontName = "Arial"

For font, you can also use the ? GETFONT() just like the colors.

There are more, but this should get you started.

Jim Osieczonek
Delta Business Group, LLC
 
Jim (and others) I'm familiar with most of the above...

But to change the color of the form(s) TITLE BAR, CAPTION COLOR, etc.

...This is my curiosity.

Thanks,
Phil

Philip M. Traynor, DPM
 
Phil,
Just be aware that both of Brian's links are to change the System colors, so it will affect ALL the applications currently running! This is usually not a good idea, unless you really have complete control of how the users configure their systems - otherwise you could make things quite un-useable!

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top