<?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>topic Set/Change X, Y, Width and Height using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991524#M337818</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;can the position of an sheet object be parameterized using variables?&lt;/P&gt;&lt;P&gt;Or is there a work around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the reason why I want to do this:&lt;/P&gt;&lt;P&gt;On a sheet I have put several list boxes one on top of the other. Only one or none of the list boxes can be visible.&lt;/P&gt;&lt;P&gt;They are made visible with the use of buttons: if one button is clicked, the associated list box is made visible, using a variable that is set on 1 and the visible one is made invisible by setting it's variable to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the visible list box invisible without making an other list box visible using the buttons, I place a text box (with e.g. the letter X in it) over the header of the list boxes.&lt;/P&gt;&lt;P&gt;I want to use only one of those text boxes to close any of the visible list boxes.&lt;/P&gt;&lt;P&gt;By clicking on the text box all the variables associated with the several list boxes are set to 0: non of the list boxes are visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good, but there is one layout problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could place the X on the very left side of the list boxes and add extra spaces in the list box header text so the X is not over the header text. In developer this works, but in WebView, the spaces are eliminated and the X hangs over the header text anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could place the textbox on the right side of the header of the list boxes, but not all the list boxes have the same width.&lt;/P&gt;&lt;P&gt;So can I calculate it's position depending on the list box that is visible: TextBox.X = ListBox.X + ListBox.Width - OffsetFromRight&lt;/P&gt;&lt;P&gt;In other words, can I parameterized the positionof the textbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2015 12:46:49 GMT</pubDate>
    <dc:creator>rudywelvaert</dc:creator>
    <dc:date>2015-11-26T12:46:49Z</dc:date>
    <item>
      <title>Set/Change X, Y, Width and Height using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991524#M337818</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;can the position of an sheet object be parameterized using variables?&lt;/P&gt;&lt;P&gt;Or is there a work around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the reason why I want to do this:&lt;/P&gt;&lt;P&gt;On a sheet I have put several list boxes one on top of the other. Only one or none of the list boxes can be visible.&lt;/P&gt;&lt;P&gt;They are made visible with the use of buttons: if one button is clicked, the associated list box is made visible, using a variable that is set on 1 and the visible one is made invisible by setting it's variable to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the visible list box invisible without making an other list box visible using the buttons, I place a text box (with e.g. the letter X in it) over the header of the list boxes.&lt;/P&gt;&lt;P&gt;I want to use only one of those text boxes to close any of the visible list boxes.&lt;/P&gt;&lt;P&gt;By clicking on the text box all the variables associated with the several list boxes are set to 0: non of the list boxes are visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good, but there is one layout problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could place the X on the very left side of the list boxes and add extra spaces in the list box header text so the X is not over the header text. In developer this works, but in WebView, the spaces are eliminated and the X hangs over the header text anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could place the textbox on the right side of the header of the list boxes, but not all the list boxes have the same width.&lt;/P&gt;&lt;P&gt;So can I calculate it's position depending on the list box that is visible: TextBox.X = ListBox.X + ListBox.Width - OffsetFromRight&lt;/P&gt;&lt;P&gt;In other words, can I parameterized the positionof the textbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 12:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991524#M337818</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2015-11-26T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set/Change X, Y, Width and Height using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991525#M337819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without macros whose using isn't recommended (and which didn't work with webview) there is no way to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I'm not sure if it's best way to get a certain usability in using a lot of variables/buttons/actions to control the visibility of multiple listboxes. Maybe the use of dimension-groups or the use of listboxes within a container is easier to develop and better to understand from the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 18:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991525#M337819</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-11-26T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set/Change X, Y, Width and Height using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991526#M337820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally we used a multi box, but our customers were not happy with that.&lt;/P&gt;&lt;P&gt;Also a container gave us serious layout problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end we chose to use the same button to make the list boxes visible to make it invisible again.&lt;/P&gt;&lt;P&gt;We left the the "close button" (100% transparent text box with e.g. S in Wingdings 2) out of scoop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Change-X-Y-Width-and-Height-using-variables/m-p/991526#M337820</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2015-12-01T14:26:39Z</dc:date>
    </item>
  </channel>
</rss>

