<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Dynamically resize DataWindow with Application Window in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935557#M3572227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; In the window resize event you can code that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Something basic like:&lt;/P&gt;&lt;P&gt;dw_1.height = this.height * .9&lt;/P&gt;&lt;P&gt;cb_1 = dw_1.X + dw_1.height&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&amp;nbsp; the resize event has parameters newwidth, newheight&lt;/P&gt;&lt;P&gt;You can also use workspaceheight/width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the PFC if you want to see some advanced resizing options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 22:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-12-04T22:22:56Z</dc:date>
    <item>
      <title>Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaq-p/9935556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering if there was a way that I can set it so that my DataWindows and objects move and resize relative to the application window being resized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have the following which just has a few data windows and buttons on it.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/336607" height="412" width="507" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the user resizes the application window, the DataWindows and buttons etc stay static in their fixed position, widths and heights.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/336755" height="361" width="451" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make the buttons move and the DataWindows resize relative to the Application Window size?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 22:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaq-p/9935556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-04T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935557#M3572227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; In the window resize event you can code that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Something basic like:&lt;/P&gt;&lt;P&gt;dw_1.height = this.height * .9&lt;/P&gt;&lt;P&gt;cb_1 = dw_1.X + dw_1.height&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&amp;nbsp; the resize event has parameters newwidth, newheight&lt;/P&gt;&lt;P&gt;You can also use workspaceheight/width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the PFC if you want to see some advanced resizing options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 22:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935557#M3572227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-04T22:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935558#M3572228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use PFC, you should use the Resize service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, just code the window resize event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;integer liMargin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;liMargin = dw_1.x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// right datawindow stretch right and leave a margin&lt;/P&gt;&lt;P&gt;dw_2.width = newwidth - dw_2.x - liMargin&lt;/P&gt;&lt;P&gt;// right datawindow heighten but make room for buttons.&lt;/P&gt;&lt;P&gt;dw_2.height = newheight - dw_2.y - cb_1.height - liMargin * 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dw_1.height = dw_2.height&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// glue buttons to bottom&lt;/P&gt;&lt;P&gt;cb_1.y = newheight - cb_1.height - liMargin&lt;/P&gt;&lt;P&gt;cb_2.y = cb_1.y&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 23:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935558#M3572228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-04T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935559#M3572229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest that you use the PFC resize service even if your application is not PFC based. You can just extract the related objects from the PFC and use them in your application. That would save you a lot of time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 00:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935559#M3572229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-05T00:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935560#M3572230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed everyone mention PFC. All I was able to find on this was a codeplex download. (the wiki was not overly helpful)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it? and are there any good getting started guides or how-tos for it? I did stumble across a PowerBuilder Foundation Class (PFC) Introductory site but it stated:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #1c1c1c; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 13px;"&gt;Sybase may still have documentation on the steps needed to create the PFC layer (the last known location was moved).&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not heard of it before. Is it worth doing whatever I need to do in order to make my application use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might start with the window resize event as suggested by you and Terry, then go from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 00:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935560#M3572230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-05T00:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935561#M3572231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The PFC is a tightly coupled service oriented framework that has accompanied PowerBuilder since version 5. It is a bit of work converting an existing application to use PFC. You might find that you application already has a framework ( Set of ancestor classes you always inherit from and which handles frame, sheets, reminders to save before you close, maybe logical unit of works etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Neil is suggesting, you could consider re-using some of the PFC resize service for you re-sizing.&amp;nbsp; In my mind, unless you have many windows with many objects it might be simpler to hand code each resize event. It depends on you proficiency too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 01:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935561#M3572231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-05T01:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935562#M3572232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you thought about converting the app to WPF using PB.Net? The XAML features take care of the resizing for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935562#M3572232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-05T12:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resize DataWindow with Application Window</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935563#M3572233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you happen to have a copy of PB9, the documentation on the PFC was included in the online help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(have you looked here: &lt;A href="http://pfc.codeplex.com/documentation" title="http://pfc.codeplex.com/documentation"&gt;PFC - Documentation ?&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamically-resize-datawindow-with-application-window/qaa-p/9935563#M3572233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-05T13:01:01Z</dc:date>
    </item>
  </channel>
</rss>

