Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13013
| From | "Glen Townsley" <coogee.2015@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: How to get the Font TypeFace and the Family |
| Date | 2020-07-06 04:48 +1000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rdt77k$j39$1@gioia.aioe.org> (permalink) |
| References | <db73fd60-845d-427d-86e9-43f73f32d1bfo@googlegroups.com> |
Juan,
This should get you going
METHOD BtnAxisFont( ) AS VOID PASCAL CLASS TabGraph_Titles
LOCAL oSFD AS StandardFontDialog
LOCAL cFont AS STRING
oSFD := StandardFontDialog{ SELF }
oSFD:EnableEffects( TRUE )
oSFD:Show()
IF !Empty( oSFD:Font:__FontFaceName ) .AND. oSFD:Font:__PointSize != 0
cFont := oSFD:Font:__FontFaceName - ',' - AllTrim( AsString(
oSFD:Font:__PointSize ) ) - ','
IF oSFD:Font:Normal
cFont -= 'N'
ELSE
IF oSFD:Font:Bold
cFont -= 'B'
ENDIF
IF oSFD:Font:Italic
cFont -= 'I'
ENDIF
IF oSFD:Font:Underline
cFont -= 'U'
ENDIF
IF oSFD:Font:Strikethru
cFont -= '-'
ENDIF
ENDIF
SELF:oCCBtnAxisFont:Caption := cFont
Cheers
Glen Townsley
"Juan Chavarría" wrote in message
news:db73fd60-845d-427d-86e9-43f73f32d1bfo@googlegroups.com...
Greetings:
I'd apreciate somebody showing me a way to know a Font object TypeFace and
it's Family constant.
For example:
If I create a font using StandardFontDialog class, I'd like to know what
TypeFace and Family the user selected.
Thanks,
Juan
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to get the Font TypeFace and the Family Juan Chavarría <juan.chavarria.grillo@gmail.com> - 2020-07-02 08:00 -0700
Re: How to get the Font TypeFace and the Family "Glen Townsley" <coogee.2015@gmail.com> - 2020-07-06 04:48 +1000
Re: How to get the Font TypeFace and the Family Juan Chavarría <juan.chavarria.grillo@gmail.com> - 2020-07-11 20:02 -0700
csiph-web