Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

font size in richtext-control

2 posts in Objects Last posting was on 2002-09-24 06:35:22.0Z
Martin Posted on 2002-09-17 08:02:01.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Martin" <m.kaltenboeck@ceo.co.at>
Subject: font size in richtext-control
Date: Tue, 17 Sep 2002 10:02:01 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: linzt1-196-107.utaonline.at 212.152.196.107
Message-ID: <364_f#Ct$IiXCHA.311@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:926
Article PK: 713493

Hi (Bruce Armstrong)

I still have the problem.

what is the absolute value for the colorlogfont structure
(the lfheight member). Let's say font size should be 24points. What
is the lfheight value.

Next is, i think that the second and third parameter of the SetcolorLogFont
function
needs the correct values for setting the font size. What are these values.

In the rte_font.zip-example the values are 1024 + 298 and 64 but that's for
setting the
fontface isn't it?

Thanks for another help


Bruce Armstrong [TeamSybase] Posted on 2002-09-24 06:35:22.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase [66.214.149.29]
X-Newsreader: AspNNTP 1.50 (C I Host)
Subject: Re: font size in richtext-control
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Tue, 24 Sep 2002 02:35:22 -0400
Lines: 44
NNTP-Posting-Host: 66.221.40.1
Message-ID: <364_38nIPS5YCHA.295@forums.sybase.com>
References: <364_f#Ct$IiXCHA.311@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:906
Article PK: 713470

Well, lfheight is in pixels, so you have to figure out how many pixels there are
per inch and how many points per inch and then do a little math. For what it's
worth, the HighEdit (the name of the control that PB is using) COLORLOGFONT is a
variation on the LOGFONT of the Windows API. Here's a few more resources on
using it, including some examples:

http://www.iiitb.ac.in/Documents/visual%20c++/special%20edition%20using%20visual
%20c++5/index06.htm

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_1wm
q.asp

On Tue, 17 Sep 2002 10:02:01 +0200,
in powersoft.public.powerbuilder.objects

Martin <m.kaltenboeck@ceo.co.at> wrote:
>Hi (Bruce Armstrong)
>
>I still have the problem.
>
>what is the absolute value for the colorlogfont structure
>(the lfheight member). Let's say font size should be 24points. What
>is the lfheight value.
>
>Next is, i think that the second and third parameter of the SetcolorLogFont
>function
>needs the correct values for setting the font size. What are these values.
>
>In the rte_font.zip-example the values are 1024 + 298 and 64 but that's for
>setting the
>fontface isn't it?
>
>Thanks for another help
>
>
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Not 1 - but 2 new books on developing with PowerBuilder
http://www.pb9books.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

NOTE: Please do NOT attempt to post to these newsgroups through news services
such as Google, as your messages will NOT appear on the server. Google is great
for searching, but if you want to use a web based newsreader to post, use the
one at my.sybase.com or
www.pfcguide.com.