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.

insert New Text Objects into a datawindow programmically

3 posts in DataWindow Last posting was on 2009-05-14 19:07:54.0Z
ScotS Posted on 2009-05-14 17:38:10.0Z
Sender: 790d.4a0c54f5.846930886@sybase.com
From: ScotS
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: insert New Text Objects into a datawindow programmically
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a0c5702.7945.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 14 May 2009 10:38:10 -0700
X-Trace: forums-1-dub 1242322690 10.22.241.41 (14 May 2009 10:38:10 -0700)
X-Original-Trace: 14 May 2009 10:38:10 -0700, 10.22.241.41
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89291
Article PK: 418543

I'm trying to create a datawindow that would look like a
seating chart. Where there would be so many rows and
columns specified by the user... I thought there would be a
way to insert a text item with a box around it, in the open
event of a window... then allow them to turn off certain
seats by right clicking. Guess my starting point is this...
Is there a way to insert new text items, into a datawindow..
on the open event of a window?
trying to make it flexible enough to be modified by a end
user, and not have the programmer create a separate dw for
each chart


fisher <fisher_NO Posted on 2009-05-14 17:44:12.0Z
From: fisher <fisher_NO@SPAM_star.wckp.lodz.pl_PLEASE>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: insert New Text Objects into a datawindow programmically
References: <4a0c5702.7945.1681692777@sybase.com>
In-Reply-To: <4a0c5702.7945.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 090513-0, 05/13/2009), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a0c586c$1@forums-1-dub>
Date: 14 May 2009 10:44:12 -0700
X-Trace: forums-1-dub 1242323052 10.22.241.152 (14 May 2009 10:44:12 -0700)
X-Original-Trace: 14 May 2009 10:44:12 -0700, vip152.sybase.com
Lines: 35
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89292
Article PK: 418544

DWSyntax Tool is your helper:

<DW Control Name>.Modify(&
"create text(band=<Detail, Footer, Header, Header.<group #>, Summary,
Trailer.<group #>, Background, Foreground>" + &
" color='<a long>' alignment='<0 - Left, 1 - Right, 2 - Center>'
border='<0 - None, 1- Shadow, 2 - Box, 3 - Resize, 4 - Underline, 5 - 3D
Lowered, 6 - 3D Raised>'" + &
" height.autosize=<Yes or No> pointer='<Arrow!, Cross!, HourGlass!,
IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!,
or cursor filename (with path)>' moveable=<0 - False, 1 - True>
resizeable=<0 - False, 1 - True> x='<an integer>' y='<an integer>'
height='<an integer>' width='<an integer>' text='<string>' + &
" name=<string> tag='<string>' font.face=<name of type face (i.e.,
SYSTEM, COURIER)> font.height='<negative number for points, positive
number for PBUs (i.e., -10 = 10 points, 10 = 10 PBUs>' font.weight='<400
- Normal, 700 - Bold>' font.family=<0 - AnyFont, 1 - Roman, 2 - Swiss, 3
- Modern, 4 - Script, 5 - Decorative> font.pitch='<0 - default, 1 -
Fixed, 2 - Variable>' font.charset='<0 - Ansi, 1 - default, 2 - Symbol,
128 - Shift JIS, 255 - OEM>' font.italic='<0 - False, 1 - True>'
font.strikethrough='<0 - False, 1 - True>' font.underline='<0 - False, 1
- True>' background.mode='<0 - Opaque, 1 - Transparent>'
background.color='<a long>')")

ScotS wrote:
> I'm trying to create a datawindow that would look like a
> seating chart. Where there would be so many rows and
> columns specified by the user... I thought there would be a
> way to insert a text item with a box around it, in the open
> event of a window... then allow them to turn off certain
> seats by right clicking. Guess my starting point is this...
> Is there a way to insert new text items, into a datawindow..
> on the open event of a window?
> trying to make it flexible enough to be modified by a end
> user, and not have the programmer create a separate dw for
> each chart


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-05-14 19:07:54.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a0c5702.7945.1681692777@sybase.com> <4a0c586c$1@forums-1-dub>
Subject: Re: insert New Text Objects into a datawindow programmically
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a0c6c0a@forums-1-dub>
Date: 14 May 2009 12:07:54 -0700
X-Trace: forums-1-dub 1242328074 10.22.241.152 (14 May 2009 12:07:54 -0700)
X-Original-Trace: 14 May 2009 12:07:54 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89294
Article PK: 418546

It could also be useful to add one in the painter, then go to edit source
and copy the piece you need.

--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"fisher" <fisher_NO@SPAM_star.wckp.lodz.pl_PLEASE> wrote in message
news:4a0c586c$1@forums-1-dub...
> DWSyntax Tool is your helper:
>
> <DW Control Name>.Modify(&
> "create text(band=<Detail, Footer, Header, Header.<group #>, Summary,
> Trailer.<group #>, Background, Foreground>" + &
> " color='<a long>' alignment='<0 - Left, 1 - Right, 2 - Center>'
> border='<0 - None, 1- Shadow, 2 - Box, 3 - Resize, 4 - Underline, 5 - 3D
> Lowered, 6 - 3D Raised>'" + &
> " height.autosize=<Yes or No> pointer='<Arrow!, Cross!, HourGlass!,
> IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or
> cursor filename (with path)>' moveable=<0 - False, 1 - True>
> resizeable=<0 - False, 1 - True> x='<an integer>' y='<an integer>'
> height='<an integer>' width='<an integer>' text='<string>' + &
> " name=<string> tag='<string>' font.face=<name of type face (i.e., SYSTEM,
> COURIER)> font.height='<negative number for points, positive number for
> PBUs (i.e., -10 = 10 points, 10 = 10 PBUs>' font.weight='<400 - Normal,
> 700 - Bold>' font.family=<0 - AnyFont, 1 - Roman, 2 - Swiss, 3 - Modern,
> 4 - Script, 5 - Decorative> font.pitch='<0 - default, 1 - Fixed, 2 -
> Variable>' font.charset='<0 - Ansi, 1 - default, 2 - Symbol, 128 - Shift
> JIS, 255 - OEM>' font.italic='<0 - False, 1 - True>'
> font.strikethrough='<0 - False, 1 - True>' font.underline='<0 - False, 1 -
> True>' background.mode='<0 - Opaque, 1 - Transparent>'
> background.color='<a long>')")
> ScotS wrote:
>> I'm trying to create a datawindow that would look like a
>> seating chart. Where there would be so many rows and
>> columns specified by the user... I thought there would be a
>> way to insert a text item with a box around it, in the open
>> event of a window... then allow them to turn off certain
>> seats by right clicking. Guess my starting point is this...
>> Is there a way to insert new text items, into a datawindow..
>> on the open event of a window?
>> trying to make it flexible enough to be modified by a end
>> user, and not have the programmer create a separate dw for
>> each chart