{"id":784,"date":"2011-06-09T20:20:02","date_gmt":"2011-06-10T01:20:02","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=784"},"modified":"2021-03-10T20:27:43","modified_gmt":"2021-03-11T01:27:43","slug":"powerbuilder-gotcha-datawindow-column-alignments","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-datawindow-column-alignments\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; Datawindow Column Alignments"},"content":{"rendered":"<p>I&#8217;ve been working quite a bit lately on the &#8216;tooltip&#8217; type of functionality for datawindows.  I encountered an issue today which gave me a bit of hassle until I worked it out.  My technique looks at the width of the column and it&#8217;s position within the datawindow control to decide whether or not all the text is visible to the user.  If the text is not visible I want a tooltip to display with the text so the user does not have to scroll or make the column larger.<\/p>\n<p>When I am comparing the column and it&#8217;s contained string to the right or left of the datawindow controls size I also take into account whether or not the column is Aligned left or right.  The issue is when dealing with a dropdowndatawindow I really need to look at the alignment of the column displayed from the dddw object, not the parent column.  In my case, once I set the parent column to have the same alignment as the column from it&#8217;s associated dddw, my functionality worked as I expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working quite a bit lately on the &#8216;tooltip&#8217; type of functionality for datawindows. I encountered an issue today which gave me a bit of hassle until I worked it out. My technique looks at the width of the column and it&#8217;s position within the datawindow control to decide whether or not all the&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[21,12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/784"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":3,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":1955,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/784\/revisions\/1955"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}