Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13012 > unrolled thread
| Started by | Juan Chavarría <juan.chavarria.grillo@gmail.com> |
|---|---|
| First post | 2020-07-02 08:00 -0700 |
| Last post | 2020-07-11 20:02 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Juan Chavarría <juan.chavarria.grillo@gmail.com> |
|---|---|
| Date | 2020-07-02 08:00 -0700 |
| Subject | How to get the Font TypeFace and the Family |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Glen Townsley" <coogee.2015@gmail.com> |
|---|---|
| Date | 2020-07-06 04:48 +1000 |
| Message-ID | <rdt77k$j39$1@gioia.aioe.org> |
| In reply to | #13012 |
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
[toc] | [prev] | [next] | [standalone]
| From | Juan Chavarría <juan.chavarria.grillo@gmail.com> |
|---|---|
| Date | 2020-07-11 20:02 -0700 |
| Message-ID | <e573bf83-3638-406f-a01f-062fbe32fdb4o@googlegroups.com> |
| In reply to | #13013 |
Thank you very much Glen.
I'm going to try it. :)
Godby,
Juan
El domingo, 5 de julio de 2020, 12:47:21 (UTC-6), Glen Townsley escribió:
> 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web