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.

create inkpic

7 posts in DataWindow Last posting was on 2009-03-02 16:00:00.0Z
Bob Piskac Posted on 2009-02-27 19:49:04.0Z
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: create inkpic
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a843b0$1@forums-1-dub>
Date: 27 Feb 2009 11:49:04 -0800
X-Trace: forums-1-dub 1235764144 10.22.241.152 (27 Feb 2009 11:49:04 -0800)
X-Original-Trace: 27 Feb 2009 11:49:04 -0800, vip152.sybase.com
Lines: 2
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88882
Article PK: 418134

Can an inkpic dw control be created at run time with the dw_1.modify
function?


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-02-27 20:23:08.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49a843b0$1@forums-1-dub>
Subject: Re: create inkpic
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
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: <49a84bac@forums-1-dub>
Date: 27 Feb 2009 12:23:08 -0800
X-Trace: forums-1-dub 1235766188 10.22.241.152 (27 Feb 2009 12:23:08 -0800)
X-Original-Trace: 27 Feb 2009 12:23:08 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88883
Article PK: 418135

According to Help, the only type of control you can't create is OLE. Try it
and see!

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

"Bob Piskac" <bob@pbsoftware.com> wrote in message
news:49a843b0$1@forums-1-dub...
> Can an inkpic dw control be created at run time with the dw_1.modify
> function?


Bob Piskac Posted on 2009-02-27 20:30:29.0Z
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: create inkpic
References: <49a843b0$1@forums-1-dub> <49a84bac@forums-1-dub>
In-Reply-To: <49a84bac@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a84d65$1@forums-1-dub>
Date: 27 Feb 2009 12:30:29 -0800
X-Trace: forums-1-dub 1235766629 10.22.241.152 (27 Feb 2009 12:30:29 -0800)
X-Original-Trace: 27 Feb 2009 12:30:29 -0800, vip152.sybase.com
Lines: 6
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88884
Article PK: 418136

Do you have a working example?

Jerry Siegel [TeamSybase] wrote:
> According to Help, the only type of control you can't create is OLE. Try it
> and see!
>


Bob Piskac Posted on 2009-02-27 21:20:41.0Z
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: create inkpic
References: <49a843b0$1@forums-1-dub> <49a84bac@forums-1-dub> <49a84d65$1@forums-1-dub>
In-Reply-To: <49a84d65$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a85929$1@forums-1-dub>
Date: 27 Feb 2009 13:20:41 -0800
X-Trace: forums-1-dub 1235769641 10.22.241.152 (27 Feb 2009 13:20:41 -0800)
X-Original-Trace: 27 Feb 2009 13:20:41 -0800, vip152.sybase.com
Lines: 10
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88885
Article PK: 418137

After a lot of testing, it looks like inkpic control cannot be created
on just any datawindow.

Bob Piskac wrote:
> Do you have a working example?
>
> Jerry Siegel [TeamSybase] wrote:
>> According to Help, the only type of control you can't create is OLE.
>> Try it and see!
>>


Bob Piskac Posted on 2009-02-27 21:28:57.0Z
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: create inkpic
References: <49a843b0$1@forums-1-dub> <49a84bac@forums-1-dub> <49a84d65$1@forums-1-dub> <49a85929$1@forums-1-dub>
In-Reply-To: <49a85929$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a85b19$1@forums-1-dub>
Date: 27 Feb 2009 13:28:57 -0800
X-Trace: forums-1-dub 1235770137 10.22.241.152 (27 Feb 2009 13:28:57 -0800)
X-Original-Trace: 27 Feb 2009 13:28:57 -0800, vip152.sybase.com
Lines: 15
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88886
Article PK: 418140

I figured it out. I need another column along with the ink control.

column=(type=blob updatewhereclause=yes name=new_ink dbname="object_id" )

Bob Piskac wrote:
> After a lot of testing, it looks like inkpic control cannot be created
> on just any datawindow.
>
> Bob Piskac wrote:
>> Do you have a working example?
>>
>> Jerry Siegel [TeamSybase] wrote:
>>> According to Help, the only type of control you can't create is OLE.
>>> Try it and see!
>>>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-02-27 22:08:56.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49a843b0$1@forums-1-dub> <49a84bac@forums-1-dub> <49a84d65$1@forums-1-dub> <49a85929$1@forums-1-dub> <49a85b19$1@forums-1-dub>
Subject: Re: create inkpic
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
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: <49a86478$1@forums-1-dub>
Date: 27 Feb 2009 14:08:56 -0800
X-Trace: forums-1-dub 1235772536 10.22.241.152 (27 Feb 2009 14:08:56 -0800)
X-Original-Trace: 27 Feb 2009 14:08:56 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88888
Article PK: 418139

I hear and I forget. I see and I remember. I do and I understand.
Confucius

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

"Bob Piskac" <bob@pbsoftware.com> wrote in message
news:49a85b19$1@forums-1-dub...
>I figured it out. I need another column along with the ink control.
>
> column=(type=blob updatewhereclause=yes name=new_ink dbname="object_id" )
>
> Bob Piskac wrote:
>> After a lot of testing, it looks like inkpic control cannot be created on
>> just any datawindow.
>>
>> Bob Piskac wrote:
>>> Do you have a working example?
>>>
>>> Jerry Siegel [TeamSybase] wrote:
>>>> According to Help, the only type of control you can't create is OLE.
>>>> Try it and see!
>>>>


Bob Piskac Posted on 2009-03-02 16:00:00.0Z
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: create inkpic dynamic example
References: <49a843b0$1@forums-1-dub>
In-Reply-To: <49a843b0$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49ac0280$1@forums-1-dub>
Date: 2 Mar 2009 08:00:00 -0800
X-Trace: forums-1-dub 1236009600 10.22.241.152 (2 Mar 2009 08:00:00 -0800)
X-Original-Trace: 2 Mar 2009 08:00:00 -0800, vip152.sybase.com
Lines: 78
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88892
Article PK: 418143

release 9;
datawindow(units=0 timer_interval=0 color=33551344 processing=0
HTMLDW=no print.printername="" print.documentname="" print.orientation =
0 print.margin.left = 250 print.margin.right = 110 print.margin.top = 96
print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0
print.canusedefaultprinter=yes print.prompt=no print.buttons=no
print.preview.buttons=no print.cliptext=no print.overrideprintjob=no
print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=3744 color="536870912" )
table(column=(type=number updatewhereclause=no name=page_no
dbname="page_no" initial="1" )
column=(type=number updatewhereclause=no name=page_count
dbname="page_count" initial="1" )
)
bitmap(band=background filename="\Images\form_background.gif" x="14"
y="8" height="3840" width="3383" border="0" name=p_background visible="1" )
rectangle(band=header x="9" y="16" height="128" width="3278" name=r_1
visible="1" slideup=allabove brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="5" pen.color="0" background.mode="2"
background.color="0" )
text(band=header alignment="0" text="text" border="0" color="33554432"
x="41" y="40" height="80" width="2853" html.valueishtml="0"
name=as_title tag="coltype=text_title;" visible="1" font.face="Arial"
font.height="-12" font.weight="700" font.family="2" font.pitch="2"
font.charset="0" background.mode="1" background.color="553648127" )
line(band=footer x1="9" y1="0" x2="3351" y2="0" name=l_1 visible="1"
pen.style="0" pen.width="5" pen.color="0" background.mode="2"
background.color="1073741824" )
compute(band=footer alignment="0" expression="'Printed on
'+string(today(),'mmmm d, yyyy') "border="0" color="0" x="5" y="12"
height="60" width="1527" format="[general]" html.valueishtml="0"
name=c_printedon visible="1" font.face="Arial" font.height="-8"
font.weight="400" font.family="2" font.pitch="2" font.charset="0"
background.mode="1" background.color="536870912" )
compute(band=footer alignment="1" expression="'Page ' + page_no + ' of '
+ page_count"border="0" color="0" x="2747" y="8" height="64" width="608"
format="[general]" html.valueishtml="0" name=c_pages visible="1"
font.face="Arial" font.height="-8" font.weight="400" font.family="2"
font.pitch="2" font.charset="0" background.mode="1"
background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1"
clientformatting="0" clientscriptable="0" generatejavascript="1"
encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0
savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )


string ls_create, ls_result, ls_modstring;

ls_modString = 'table(column=(type=number updatewhereclause=no
initial="1" name=page_no dbname="page_no" ) column=(type=number
updatewhereclause=no initial="1" name=page_count dbname="page_count" )
column=(type=blob updatewhereclause=yes name=mark_ink
dbname="object_id" ))'
ls_result = dw_1.modify(ls_modString);
MessageBox("TRACE", ls_result);

ls_modstring = 'create inkpic (band=detail id=3 name=object_id
table="view_dms_objects"
keyclause="object_id=~'ec3cc882-a8ba-4202-91f6-1089c51aca94~'" x="315"
y="48" height="248" width="375" border="2" tooltip.backcolor="134217752"
tooltip.delay.initial="0" tooltip.delay.visible="32000"
tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0"
tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751"
tooltip.transparency="0" name=inkpic_1 visible="1" backimage="object"
inkpic.backcolor=16777215 inkpic.dynamicrendering=no
inkpic.highcontrastink=no enabled=yes inkpic.inkenabled=no
ink.antialiased=yes inkpic.eraserwidth=212 inkpic.picturesizemode=3
ink.height=1 ink.width=53)';
ls_result = dw_1.modify(ls_modString);
MessageBox("TRACE", ls_result);

dw_1.insertrow(0);