Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change font
Message
From
03/06/2014 02:44:53
 
 
To
03/06/2014 00:06:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01601059
Message ID:
01601173
Views:
77
This message has been marked as the solution to the initial question of the thread.
Did you ACTIVATEd the window in the process?
DEFINE WINDOW bm4b ;
FROM 24,76 TO 44,180;
FONT 'Arial Narrow ',7 ;
STYLE 'N' ; 
COLOR RGB (61,84,122,255,255,231)

ACTIVATE WINDOW bm4b

@ 0,0 SAY "This is in the font defined for the window"

@ 2,0 SAY "The same font, in bold" STYLE 'B'

@ 4,0 SAY "Now, with different font and style" FONT 'Times New Roman', 9 STYLE 'BI'
>>>>>i have a window open with font defined for the window- is it possible to have a portion of the text in that window appear in a different font?
>>>>>tnx
>>>>>k
>>>>>
>>>>>DEFINE WINDOW bm4b ;
>>>>>FROM 24,76 TO 44,180;
>>>>>FONT 'Arial Narrow ',7 ;
>>>>>STYLE 'N' ; 
>>>>>COLOR RGB (61,84,122,255,255,231)
>>>>>
>>>>
>>>>How are you putting the text into the window?
>>>>
>>>>Tamar
>>>
>>>old school:
>>>@12,5 say 'This is my text'
>>
>>The old school say command also has font clauses... don't remember the exact syntax, but try with the likely candidates... @xx,yy say "bla bla" font "Tahoma, 8, N" sounds about right.
>
>thanks dragan - good thought actually - however all I get is change out of windoe defined font into default VFP font - I guess backwards compatibility will only take you so far backwards. not to worry worth the try though.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform