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.

Dynamically Creating vcr-control against datawindow-control

4 posts in Objects Last posting was on 2004-03-02 19:16:32.0Z
Odon Schoofs Posted on 2004-03-01 21:28:10.0Z
Reply-To: "Odon Schoofs" <nospam@replytogroup.com>
From: "Odon Schoofs" <nospam@replytogroup.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Dynamically Creating vcr-control against datawindow-control
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: d5e0974b.kabel.telenet.be
X-Original-NNTP-Posting-Host: d5e0974b.kabel.telenet.be
Message-ID: <4043aaea@forums-1-dub>
Date: 1 Mar 2004 13:28:10 -0800
X-Trace: forums-1-dub 1078176490 213.224.151.75 (1 Mar 2004 13:28:10 -0800)
X-Original-Trace: 1 Mar 2004 13:28:10 -0800, d5e0974b.kabel.telenet.be
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7806
Article PK: 735082

Hi all,

I've got following problem:

On a DW-control, i want to have a uo-function of_set_vcr(true/false) which,
when param=true automatically creates vcr-control on left side of
dw-control.

I allready discovered i could do something like that by using something
like this:

window.openuserobject(iuo_vcr,"uo_vcr",x,y)

but this works fine when you can create object directly onto window.

In my case i've a window with a tab-control(with 2 tabpages) onto it. A
dw-control is included on tabpage 2.

So when calling of_set_vcr(true), i want to appear uo_vcr only to appear on
tabpage 2 (against dw-control).

It should not be visible onto other tabpages, window itself,...

Anybody has an idea?


Thanks,

Odon


DT Posted on 2004-03-01 21:52:16.0Z
From: "DT" <david.taylor@integritycompanies.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043aaea@forums-1-dub>
Subject: Re: Dynamically Creating vcr-control against datawindow-control
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: integritycompanies.com
Message-ID: <4043b0b4$1@forums-2-dub>
X-Original-Trace: 1 Mar 2004 13:52:52 -0800, integritycompanies.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Mar 2004 13:51:08 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Mar 2004 13:52:16 -0800
X-Trace: forums-1-dub 1078177936 10.22.108.75 (1 Mar 2004 13:52:16 -0800)
X-Original-Trace: 1 Mar 2004 13:52:16 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7807
Article PK: 735079

I see two options
1) If you want to stick with tab pages of a tab control, you'll need to write
logic that hides the vcr user object with another tab page is selected. I think
you can do this kind of logic in the selectionchanging event of the tab control.

Something like this in the selectionchanging event
IF oldindex = 2 AND IsValid(iuo_vcr) THEN iuo_vcr.Hide()
IF newindex = 2 AND IsValid(iuo_vcr) THEN iuo_vcr.Show()

Then you may want to put something similar in the tab losefocus/getfocus events
depending if you want the vcr object to show/hide if something else on the
window has focus besides your tab control.

2) Instead of using tab pages of the tab control, create user objects and use
them instead of tab pages (insert userobject instead of insert tab page on the
tab control.. Then the user object controls the open/closing of the vcr user
object. This would be my approach because you can encapsulate your logic for
each tab page into separate objects, but it sounds like that's alot of recoding
to do so that may not be the best option.

"Odon Schoofs" <nospam@replytogroup.com> wrote in message
news:4043aaea@forums-1-dub...
> Hi all,
>
> I've got following problem:
>
> On a DW-control, i want to have a uo-function of_set_vcr(true/false) which,
> when param=true automatically creates vcr-control on left side of
> dw-control.
>
> I allready discovered i could do something like that by using something
> like this:
>
> window.openuserobject(iuo_vcr,"uo_vcr",x,y)
>
> but this works fine when you can create object directly onto window.
>
> In my case i've a window with a tab-control(with 2 tabpages) onto it. A
> dw-control is included on tabpage 2.
>
> So when calling of_set_vcr(true), i want to appear uo_vcr only to appear on
> tabpage 2 (against dw-control).
>
> It should not be visible onto other tabpages, window itself,...
>
> Anybody has an idea?
>
>
> Thanks,
>
> Odon
>
>
>
>


Scott Morris Posted on 2004-03-01 22:19:27.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043aaea@forums-1-dub>
Subject: Re: Dynamically Creating vcr-control against datawindow-control
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: ip31-gadivinv-a8.atl1.exsbs.net
X-Original-NNTP-Posting-Host: ip31-gadivinv-a8.atl1.exsbs.net
Message-ID: <4043b6ef$1@forums-1-dub>
Date: 1 Mar 2004 14:19:27 -0800
X-Trace: forums-1-dub 1078179567 65.205.162.31 (1 Mar 2004 14:19:27 -0800)
X-Original-Trace: 1 Mar 2004 14:19:27 -0800, ip31-gadivinv-a8.atl1.exsbs.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7808
Article PK: 735081

http://www.pbinfo.be/index.php?file=tips&seq=1

"Odon Schoofs" <nospam@replytogroup.com> wrote in message
news:4043aaea@forums-1-dub...
> Hi all,
>
> I've got following problem:
>
> On a DW-control, i want to have a uo-function of_set_vcr(true/false)
which,
> when param=true automatically creates vcr-control on left side of
> dw-control.
>
> I allready discovered i could do something like that by using something
> like this:
>
> window.openuserobject(iuo_vcr,"uo_vcr",x,y)
>
> but this works fine when you can create object directly onto window.
>
> In my case i've a window with a tab-control(with 2 tabpages) onto it. A
> dw-control is included on tabpage 2.
>
> So when calling of_set_vcr(true), i want to appear uo_vcr only to appear
on
> tabpage 2 (against dw-control).
>
> It should not be visible onto other tabpages, window itself,...
>
> Anybody has an idea?
>
>
> Thanks,
>
> Odon
>
>
>
>


Odon Schoofs Posted on 2004-03-02 19:16:32.0Z
Reply-To: "Odon Schoofs" <nospam@replytogroup.com>
From: "Odon Schoofs" <nospam@replytogroup.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043aaea@forums-1-dub> <4043b6ef$1@forums-1-dub>
Subject: Re: Dynamically Creating vcr-control against datawindow-control
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: d5e0974d.kabel.telenet.be
Message-ID: <4044ddb7$1@forums-2-dub>
X-Original-Trace: 2 Mar 2004 11:17:11 -0800, d5e0974d.kabel.telenet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 11:15:19 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 11:16:32 -0800
X-Trace: forums-1-dub 1078254992 10.22.108.75 (2 Mar 2004 11:16:32 -0800)
X-Original-Trace: 2 Mar 2004 11:16:32 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7818
Article PK: 735090

Thanks!!Thanks!!Thanks!!
I think this will do!!!

"Scott Morris" <bogus@bogus.com> wrote in message
news:4043b6ef$1@forums-1-dub...
> http://www.pbinfo.be/index.php?file=tips&seq=1
>
> "Odon Schoofs" <nospam@replytogroup.com> wrote in message
> news:4043aaea@forums-1-dub...
> > Hi all,
> >
> > I've got following problem:
> >
> > On a DW-control, i want to have a uo-function of_set_vcr(true/false)
> which,
> > when param=true automatically creates vcr-control on left side of
> > dw-control.
> >
> > I allready discovered i could do something like that by using something
> > like this:
> >
> > window.openuserobject(iuo_vcr,"uo_vcr",x,y)
> >
> > but this works fine when you can create object directly onto window.
> >
> > In my case i've a window with a tab-control(with 2 tabpages) onto it. A
> > dw-control is included on tabpage 2.
> >
> > So when calling of_set_vcr(true), i want to appear uo_vcr only to appear
> on
> > tabpage 2 (against dw-control).
> >
> > It should not be visible onto other tabpages, window itself,...
> >
> > Anybody has an idea?
> >
> >
> > Thanks,
> >
> > Odon
> >
> >
> >
> >
>
>