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.

Need to hide controls in a DW GroupBox

5 posts in DataWindow Last posting was on 2009-07-06 11:48:56.0Z
Anthony Posted on 2009-07-01 21:02:50.0Z
Sender: 7380.4a4bce3b.1804289383@sybase.com
From: Anthony
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Need to hide controls in a DW GroupBox
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a4bcefa.7430.1681692777@sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 1 Jul 2009 14:02:50 -0700
X-Trace: forums-3-dub.sybase.com 1246482170 10.22.241.188 (1 Jul 2009 14:02:50 -0700)
X-Original-Trace: 1 Jul 2009 14:02:50 -0700, forums-3-dub.sybase.com
Lines: 8
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89574
Article PK: 418762

Hello All,
I need to be able to hide/show all the controls that are
inside a DW GroupBox. I would like to be able to do this
without having to reference all the individual controls
separately. It would be nice if all I needed to do was
hide/show the GroupBox with just one line of code instead of
having to hide/show each control separately with their own
line of code. Any ideas as to how to do this? (PB11.2)


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-07-02 14:37:13.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a4bcefa.7430.1681692777@sybase.com>
Subject: Re: Need to hide controls in a DW GroupBox
Lines: 21
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; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a4cc619$2@forums-3-dub.sybase.com>
Date: 2 Jul 2009 07:37:13 -0700
X-Trace: forums-3-dub.sybase.com 1246545433 10.22.241.152 (2 Jul 2009 07:37:13 -0700)
X-Original-Trace: 2 Jul 2009 07:37:13 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89579
Article PK: 418768

AFAIK controls in a DW are not aware of being in a groupbox. You would have
to code a service to take the x, y, height, width of the groupbox and
determine which controls are in that real estate.

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

<Anthony> wrote in message news:4a4bcefa.7430.1681692777@sybase.com...
> Hello All,
> I need to be able to hide/show all the controls that are
> inside a DW GroupBox. I would like to be able to do this
> without having to reference all the individual controls
> separately. It would be nice if all I needed to do was
> hide/show the GroupBox with just one line of code instead of
> having to hide/show each control separately with their own
> line of code. Any ideas as to how to do this? (PB11.2)


Philip Salgannik Posted on 2009-07-04 16:32:47.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a4bcefa.7430.1681692777@sybase.com> <4a4cc619$2@forums-3-dub.sybase.com>
Subject: Re: Need to hide controls in a DW GroupBox
Lines: 28
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: <4a4f842f$1@forums-3-dub.sybase.com>
Date: 4 Jul 2009 09:32:47 -0700
X-Trace: forums-3-dub.sybase.com 1246725167 10.22.241.152 (4 Jul 2009 09:32:47 -0700)
X-Original-Trace: 4 Jul 2009 09:32:47 -0700, vip152.sybase.com
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89585
Article PK: 418773

Well, if they are placed there at design time, you can set their visibility
expressions to be based on the visibility of the groupbox control...

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:4a4cc619$2@forums-3-dub.sybase.com...
> AFAIK controls in a DW are not aware of being in a groupbox. You would
> have to code a service to take the x, y, height, width of the groupbox and
> determine which controls are in that real estate.
>
> --
> Report Bugs: http://case-express.sybase.com/cx/welcome.do
> Product Enhancement Requests:
> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>
>
> <Anthony> wrote in message news:4a4bcefa.7430.1681692777@sybase.com...
>> Hello All,
>> I need to be able to hide/show all the controls that are
>> inside a DW GroupBox. I would like to be able to do this
>> without having to reference all the individual controls
>> separately. It would be nice if all I needed to do was
>> hide/show the GroupBox with just one line of code instead of
>> having to hide/show each control separately with their own
>> line of code. Any ideas as to how to do this? (PB11.2)
>
>


Wheeley Posted on 2009-07-05 23:55:35.0Z
From: Wheeley <wheeley@ix.netcom.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Need to hide controls in a DW GroupBox
Message-ID: <6af255tgnfqss7bmb5dg5opi106oof97ht@4ax.com>
References: <4a4bcefa.7430.1681692777@sybase.com> <4a4cc619$2@forums-3-dub.sybase.com> <4a4f842f$1@forums-3-dub.sybase.com>
X-Newsreader: Forte Agent 5.00/32.1171
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 5 Jul 2009 16:55:35 -0700
X-Trace: forums-3-dub.sybase.com 1246838135 10.22.241.152 (5 Jul 2009 16:55:35 -0700)
X-Original-Trace: 5 Jul 2009 16:55:35 -0700, vip152.sybase.com
Lines: 36
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89586
Article PK: 418774

For example:

if(Describe("groupbox.visible")="1",1,0)

Wheeley

On 4 Jul 2009 09:32:47 -0700, "Philip Salgannik"

<philemaxNOSPAM@comcast.net> wrote:

>Well, if they are placed there at design time, you can set their visibility
>expressions to be based on the visibility of the groupbox control...
>
>"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
>news:4a4cc619$2@forums-3-dub.sybase.com...
>> AFAIK controls in a DW are not aware of being in a groupbox. You would
>> have to code a service to take the x, y, height, width of the groupbox and
>> determine which controls are in that real estate.
>>
>> --
>> Report Bugs: http://case-express.sybase.com/cx/welcome.do
>> Product Enhancement Requests:
>> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>>
>>
>> <Anthony> wrote in message news:4a4bcefa.7430.1681692777@sybase.com...
>>> Hello All,
>>> I need to be able to hide/show all the controls that are
>>> inside a DW GroupBox. I would like to be able to do this
>>> without having to reference all the individual controls
>>> separately. It would be nice if all I needed to do was
>>> hide/show the GroupBox with just one line of code instead of
>>> having to hide/show each control separately with their own
>>> line of code. Any ideas as to how to do this? (PB11.2)
>>
>>
>


Chris Pollach Posted on 2009-07-06 11:48:56.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a4bcefa.7430.1681692777@sybase.com>
Subject: Re: Need to hide controls in a DW GroupBox
Lines: 45
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: <4a51e4a8$3@forums-3-dub.sybase.com>
Date: 6 Jul 2009 04:48:56 -0700
X-Trace: forums-3-dub.sybase.com 1246880936 10.22.241.152 (6 Jul 2009 04:48:56 -0700)
X-Original-Trace: 6 Jul 2009 04:48:56 -0700, vip152.sybase.com
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89590
Article PK: 418778

Hi Anthony;

This can be made really easy by ....

1) Add an SQL Computed column - ie: 'N' cc_view
2) Add an expression to the GB and other DW controls that make them visible
if cc_visible = 'Y'
3) Now use a SetItem (row, cc_view, "Y/N") to make them all appear or
disappear as required!

OR

1) Add a Rectangle object to the DW object.
2) Make sure its in foreground
3) Resize it over top of the entire GB
4) Add an expression to the RT to make it visible if cc_visible = 'Y'
5) Now use a SetItem (row, cc_view, "Y/N") to make the RT hide/unhide the GB
as required.

OR

As above with the RT - but, use the Modify ( ) method to hide/unhide the RT
as required.

HTH

:-)

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<Anthony> wrote in message news:4a4bcefa.7430.1681692777@sybase.com...
> Hello All,
> I need to be able to hide/show all the controls that are
> inside a DW GroupBox. I would like to be able to do this
> without having to reference all the individual controls
> separately. It would be nice if all I needed to do was
> hide/show the GroupBox with just one line of code instead of
> having to hide/show each control separately with their own
> line of code. Any ideas as to how to do this? (PB11.2)