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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calender OLE Control

Status
Not open for further replies.

crewchiefpro5

Programmer
Dec 17, 2004
33
0
0
US
I am distributing a calender control with may exe file and to my horror the fonts are all screwed up. The font size on my machine is 9.75 arial, and it works fine. I take the file move it to another machine without foxpro on it and the font size is 1.5?? This is VFP 7.0.

So I tried this in the INIT
with this
.Olecontrol1.DayFont=9.75
.Olecontrol1.GridFont=9.75
.Olecontrol1.TitleFont=12
endwith

and an error 0x80020005 type mismatch comes up on each line.

Thanks.



Don Higgins
Crew Chief Pro Racing Analysis Software
 
crewchiefpro5,

I'm asking again, what control are you using? MS Monthview?

Also, given whatever calendar control you are referring to, are you saying that the font displayed on the other machine in the calendar control is really displaying as 1.5? I mean are all the numbers and such on the calendar so small you can't even see them?

boyd.gif

 
Don,

I agree with Craig that it would be helpful to know which control you are referring to.

Many ActiveX controls and COM objects have a font property which is itself an object. That object in turn has properties for font name, size, bold, etc. If that applies here, the following should work:

.Olecontrol1.TitleFont.Size=12

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Sorry, it is the Month View. It has the drop down list for month, etc.

That is correct, the letters are so small that they cannot be read.

Why does the control change the font size by itself?

Mike, thanks that worked fine on my machine, I will test it on others also.

Don


Don Higgins
Crew Chief Pro Racing Analysis Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top