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.

PB.Net resize

3 posts in General Discussion Last posting was on 2013-03-15 15:39:54.0Z
Eric Posted on 2013-03-13 13:30:07.0Z
From: Eric <pigexpert@agrisyst.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: PB.Net resize
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: <51407f5f@forums-1-dub>
Date: 13 Mar 2013 05:30:07 -0800
X-Trace: forums-1-dub 1363181407 172.20.134.152 (13 Mar 2013 05:30:07 -0800)
X-Original-Trace: 13 Mar 2013 05:30:07 -0800, vip152.sybase.com
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:249909
Article PK: 1308325

I have a WPF window with a datawindow and a commandButton on it.

If I resize the window I would like that the datawindow also resizes and
that the commandbuttons keeps its position in the right lower corner.

What should I do to get this done.

Thanks
Eric


Mark L Posted on 2013-03-15 12:58:36.0Z
From: Mark L <mlibner@yahoo.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: PB.Net resize
References: <51407f5f@forums-1-dub>
In-Reply-To: <51407f5f@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: <51431afc$1@forums-1-dub>
Date: 15 Mar 2013 04:58:36 -0800
X-Trace: forums-1-dub 1363352316 172.20.134.152 (15 Mar 2013 04:58:36 -0800)
X-Original-Trace: 15 Mar 2013 04:58:36 -0800, vip152.sybase.com
Lines: 36
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:249954
Article PK: 1308400

Hi Eric,

Set the HorizontalAlignment of the datawindow to Stretched
Set the HorizontalAlignment of the button to Right

Below is some xaml of a dw and button you could paste into a window to
get you started.

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<pbwpf:DataWindow Height="100" HorizontalAlignment="Stretch"
LiveScroll="True" Margin="5" Name="dw_1" TabOrder="10"
VerticalAlignment="Stretch" Width="525" PBHeight="1468" PBWidth="2354"
X="23" Y="20" />
<pbwpf:CommandButton Grid.Row="1" Height="28"
HorizontalAlignment="Right" Margin="5" Name="cb_1" TabOrder="20"
Text="none" TextSize="-10" VerticalAlignment="Center" Width="88"
PBHeight="112" PBWidth="402" X="1975" Y="20" />
</Grid>

hth,
Mark

On 3/13/2013 9:30 AM, Eric wrote:
> I have a WPF window with a datawindow and a commandButton on it.
>
> If I resize the window I would like that the datawindow also resizes and
> that the commandbuttons keeps its position in the right lower corner.
>
> What should I do to get this done.
>
> Thanks
> Eric


Eric Posted on 2013-03-15 15:39:54.0Z
From: Eric <pigexpert@agrisyst.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: PB.Net resize
References: <51407f5f@forums-1-dub> <51431afc$1@forums-1-dub>
In-Reply-To: <51431afc$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: <514340ca@forums-1-dub>
Date: 15 Mar 2013 07:39:54 -0800
X-Trace: forums-1-dub 1363361994 172.20.134.152 (15 Mar 2013 07:39:54 -0800)
X-Original-Trace: 15 Mar 2013 07:39:54 -0800, vip152.sybase.com
Lines: 48
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:249958
Article PK: 1308404

Hello Mark,

Thanks for the info.

Now we were able to resize the window.

Thanks
Eric


Op 15-03-13 13:58, Mark L schreef:

> Hi Eric,
>
> Set the HorizontalAlignment of the datawindow to Stretched
> Set the HorizontalAlignment of the button to Right
>
> Below is some xaml of a dw and button you could paste into a window to
> get you started.
>
> <Grid>
> <Grid.RowDefinitions>
> <RowDefinition Height="*" />
> <RowDefinition Height="Auto" />
> </Grid.RowDefinitions>
> <pbwpf:DataWindow Height="100" HorizontalAlignment="Stretch"
> LiveScroll="True" Margin="5" Name="dw_1" TabOrder="10"
> VerticalAlignment="Stretch" Width="525" PBHeight="1468" PBWidth="2354"
> X="23" Y="20" />
> <pbwpf:CommandButton Grid.Row="1" Height="28"
> HorizontalAlignment="Right" Margin="5" Name="cb_1" TabOrder="20"
> Text="none" TextSize="-10" VerticalAlignment="Center" Width="88"
> PBHeight="112" PBWidth="402" X="1975" Y="20" />
> </Grid>
>
> hth,
> Mark
>
> On 3/13/2013 9:30 AM, Eric wrote:
>> I have a WPF window with a datawindow and a commandButton on it.
>>
>> If I resize the window I would like that the datawindow also resizes and
>> that the commandbuttons keeps its position in the right lower corner.
>>
>> What should I do to get this done.
>>
>> Thanks
>> Eric