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.

Change DW column font size in script

2 posts in DataWindow Last posting was on 2008-11-19 19:17:19.0Z
janice Posted on 2008-11-19 18:58:57.0Z
Sender: 35c4.49245e7d.1804289383@sybase.com
From: Janice
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Change DW column font size in script
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <492461f1.3622.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Nov 2008 10:58:57 -0800
X-Trace: forums-1-dub 1227121137 10.22.241.41 (19 Nov 2008 10:58:57 -0800)
X-Original-Trace: 19 Nov 2008 10:58:57 -0800, 10.22.241.41
Lines: 18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88200
Article PK: 417454

In PB script, I would like to change the font size of all
columns in a DW. Is there a font property to do this? First
I tried using:
this.Object.Data.Font.Size = 10
and get the message:
Error accessing external object property font
So I figured my syntax was incorrect for attempting to set
all of the columns at once. So I tried just specifying a
particular column as follows:

this.Object.column_name.Font.Size = 10
(where column_name is the actual name of the cilumn in the
DW)
and get the message
Error accessing external object property size.

Any suggestions?
Thanks!


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-11-19 19:17:19.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <492461f1.3622.1681692777@sybase.com>
Subject: Re: Change DW column font size in script
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4924663f$1@forums-1-dub>
Date: 19 Nov 2008 11:17:19 -0800
X-Trace: forums-1-dub 1227122239 10.22.241.152 (19 Nov 2008 11:17:19 -0800)
X-Original-Trace: 19 Nov 2008 11:17:19 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88201
Article PK: 417456

That would be font.height. To specify in points, use a negative number. You
need to do it for each column.

<Janice> wrote in message news:492461f1.3622.1681692777@sybase.com...
> In PB script, I would like to change the font size of all
> columns in a DW. Is there a font property to do this? First
> I tried using:
> this.Object.Data.Font.Size = 10
> and get the message:
> Error accessing external object property font
> So I figured my syntax was incorrect for attempting to set
> all of the columns at once. So I tried just specifying a
> particular column as follows:
>
> this.Object.column_name.Font.Size = 10
> (where column_name is the actual name of the cilumn in the
> DW)
> and get the message
> Error accessing external object property size.
>
> Any suggestions?
> Thanks!