Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Font selecting combo/listbox GPFs
Message
 
 
To
27/07/1998 16:28:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00121443
Message ID:
00121779
Views:
11
Dragan,

42 is well under the limit. It might be a corrupted font file? Might be a localization problem. I just dropped a cbo on a form and altered it's FontName and FonstSize via the dropdown list on the property sheet and it runs just fine.

I also added a button with this click:
local lcStr

lcStr = getfont()
if ( ! empty( lcStr ) )
   thisform.combo1.FontName = left( lcStr, at( ',', lcStr ) - 1 )
endif
and the cbo changes fonts at runtime. I'm using Win95 OSR2 on this machine. VFP5 SP3.

>Well, the answer is 42 (sounds familiar?); some of them are just aliases to the same fonts for other codepages (like Courier New CE and Courier New Cyr for Central European and Cyrillic scripts, though they are actually one file). Having tested this further today, it seems that it's just the drop down action of the combo that triggers the GPF - if I type the first chars of the font name and proceed to the fontsize spinner, it's OK. I've even changed the combo type from dropdown combo to dropdown list (or vice versa - still don't know which is which - no user entry now, anyway), changed the rowsourcetype from array to none and ran additem() for all the fonts. It all works, except that it GPFs when I click the drop arrow. Beats me.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform