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 rte-control

2 posts in Objects Last posting was on 2002-09-16 17:39:01.0Z
Martin Posted on 2002-09-16 13:46:47.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Martin" <m.kaltenboeck@utanet.at>
Subject: font size in rte-control
Date: Mon, 16 Sep 2002 15:46:47 +0200
Lines: 19
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: services.fenzl.co.at 213.90.125.170
Message-ID: <364_dhBR3kYXCHA.293@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:928
Article PK: 713491

I try to set the fontsize in a rte-control programatically with the
following code
(its a code snippet from the rte_font.zip by Bruce Armstrong)

li_y = GetDeviceCaps(iul_handle, LOGPIXELSY)
is_colorlogfont.lf.lfheight = 12 * li_y / 72 * -1

li_rc = SetColorLogFont ( iul_handle, setlogfontmsg, setfont,
is_colorlogfont)

The problem is that GetDeviceCaps returns 0.
But even when I set lfheight to a fix value, nothing happens to the font
size

Has anybody done this ?


Bruce Armstrong [TeamSybase] Posted on 2002-09-16 17:39:01.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase [12.13.238.141]
X-Newsreader: AspNNTP 1.50 (C I Host)
Subject: Re: font size in rte-control
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Mon, 16 Sep 2002 13:39:01 -0400
Lines: 32
NNTP-Posting-Host: 66.221.40.1
Message-ID: <364_euLZxfaXCHA.293@forums.sybase.com>
References: <364_dhBR3kYXCHA.293@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:927
Article PK: 713488

The GetDeviceCaps call is a quick and drity way of populating the
DeviceCapacities structure, which is then passed into the SetColorLogFont
function. If the GetDeviceCaps call fails, then the structure won't be
populated correctly for the SetColorLogFont call. You can always populate
that yourself prior to the call (and leave the GetDeviceCaps call out).

On Mon, 16 Sep 2002 15:46:47 +0200,
in powersoft.public.powerbuilder.objects

Martin <m.kaltenboeck@utanet.at> wrote:
>I try to set the fontsize in a rte-control programatically with the
>following code
>(its a code snippet from the rte_font.zip by Bruce Armstrong)
>
>li_y = GetDeviceCaps(iul_handle, LOGPIXELSY)
>is_colorlogfont.lf.lfheight = 12 * li_y / 72 * -1
>
>li_rc = SetColorLogFont ( iul_handle, setlogfontmsg, setfont,
>is_colorlogfont)
>
>The problem is that GetDeviceCaps returns 0.
>But even when I set lfheight to a fix value, nothing happens to the font
>size
>
>Has anybody done this ?
>
>
>
>

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